ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Dictionary Tag to loop over all its items (like taxonomy tags)

Open JorisOrangeStudio opened this issue 1 year ago • 1 comments

Would love to see a tag to loop over all the possible dictionary items (augmented), like the taxonomy tag:

{{ dictionary type="file" from="dictionary.json" }}
    <li>{{ key }} - {{ value }}</li>
{{ /dictionary }}

This way you can use the Dictionary data outside of a Entry's scope, for example to populate dropdowns in a filter.

~~This is already possible to the pre-made Dictionaries like countries, but not for the File & Custom dictionaries.~~ Seems like it is not possible outside a Entry's scope (without countries field handle available)

JorisOrangeStudio avatar Aug 27 '24 12:08 JorisOrangeStudio

Good idea!

duncanmcclean avatar Aug 27 '24 12:08 duncanmcclean