We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

global variables witihn channel field entries

Development and Programming

Matt Harris's avatar
Matt Harris
95 posts
13 years ago
Matt Harris's avatar Matt Harris

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.

       
allgood2's avatar
allgood2
427 posts
13 years ago
allgood2's avatar allgood2

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.