Extra field

The extra_field renders widget for custom metadata, provided as a key-value pair. It is used in the dataset page to render custom metadata fields, but can be used anywhere in the CKAN interface. The component accepts a dictionary with two keys: key and value.

This component may not work by itself, and usually is indirectly rendered by extra_fields_collection.

{%- call ui.util.call(show_example) -%} {%- raw %} {{ ui.extra_field(index=10, data={"key": "key value", "value": "value"}) }} {%- endraw %} {%- endcall %}