How do I access the value of a 'choice' field from different custom modules in a template?
SOLVE
Hi BillOddie,
I'd suggest exporting the tag value to the template context from the head HTML, which you can do from the field labeled "Additional <head> markup". Then within each module you could access the exported value. So for example if you named your module myModule, you could add this code into the head HTML field:
How do I access the value of a 'choice' field from different custom modules in a template?
SOLVE
Hi BillOddie,
I'd suggest exporting the tag value to the template context from the head HTML, which you can do from the field labeled "Additional <head> markup". Then within each module you could access the exported value. So for example if you named your module myModule, you could add this code into the head HTML field: