All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Variables inside a Variable inside a Channel Entry

marc 2 Jul 2012 17:29 question, complete

I know this is a little complex, but curious if theres any potential solution. I have a Low Variable that I want to place inside of a text field in a channe entry. This works fine as the late parsing, stage 9, as Low explained here - https://getsatisfaction.com/low/topic...
picks it up and processes it properly.

However, inside of that low variable I have another variable {page_url:3078} which is helpful because it will automatically update the url in case the page moves. This does not work however because the low variable is getting parsed so late. When I normally call low variables from templates like this one, I just enable early parsing and everything works out fine, however, the channel entries is called after early parsing.

Is there any way this could work? I've tried {exp:low_variables:parse var="lv_myvar"} inside of {exp:allow_eecode} but that accomplishes the same thing, all of the variable parsed except the page url variable.

Any thoughts about wether this is possible or not are greatly appreciated.

Replies

  1. Low 2 Jul 2012 23:01

    If the variable contains other vars like {page_url:123}, then it would already need the {exp:low_variabes:parse} tag to process those anyway. Just using the variable syntax wouldn't work, as that would only swap the variable with its content without further processing.

    The tag syntax (in combination with the allow eecode plugin) should work, depending on what var type is used.