Hi all, I am trying to use {homepage} in the “body” field of an entry but it doesn’t get parsed. The parse order doc seems to suggest it should work - #9. ‘Parse User Defined global variables’.
I’m assuming as this is the last stage of parsing the data currently includes the content of channel entry fields and which now gets parsed for global variables?
…is there a problem with this or just a misunderstanding on my part?
Can I use {homepage} within an entry’s field?
Thanks in advance.
Not unless you also use the
{allow_eecode}{/allow_eecode}option as well. EE fields will not process fields are variables, unless you the allow eecode plugin, on the template that will parse the field. My code above maybe off. It’s been awhile, since I’ve used, so download the plugin from EllisLab on GitHub then follow the steps. I believe on your template you’d add code like
{allow_eecode}{body}{/allow_eecode}and then it will or should work. Content normally doesn’t process variables because its a security risk.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.