[ckan-dev] FW: Accessing Group Custom Fields

Trenton Manson tmanson at onipaa.org
Mon Nov 25 20:51:31 UTC 2019


Aloha,

I am writing in reguard to guidance on accessing the group object’s custom field key value fields. The purpose to add the field to a theming extension. I am overwriting the template:
lib/default/src/ckan/ckan/templates/group/snippets/group_item.html

Repacing blocks such as:
{% block title %}
    <h3 class="media-heading">{{ group.display_name }}</h3>
  {% endblock %}

With:
{% block title %}
    <h3 class="media-heading">{{ group.custom_field_key }}</h3>
  {% endblock %}

Appreciate any guidance.

Mahalo nui,
[/var/folders/hx/np81c8v9461db4wp5r1_6qrr0000gn/T/com.microsoft.Outlook/Content.MSO/3155E392.tmp]
Trenton Manson | Data Science Manager
1100 Alakea Street  | Honolulu, HI 96813
Cell: 808.421.9832 | Website:  www.onipaa.org<http://www.onipaa.org/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20191125/fd303185/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9983 bytes
Desc: image001.png
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20191125/fd303185/attachment.png>


More information about the ckan-dev mailing list