Variable Prefix Parameter not working?
Low,
I have a low_reorder set (being used for sidebar navigation) within a channel entries tag. My {title} variable within the reorder is returning the page title instead of the reorder page title. Does the prefix parameter work on the main reorder tag? If so, how?
Thanks!
Matt
Replies
Low 20 Aug 2012 15:15
Hi Matt,
The prefix option is for the previous/next entry tags only. You'd have to use an embed to work around the variable name conflicts. If you're using Low Variables too, you can use a var and the {exp:low_variables:single} tag.
astuteo 20 Aug 2012 15:38
Sounds good. I managed to get the reordered sidebar navigation outside of the main entry so all is well. Thanks, dude.
maodiddy 1 Dec 2015 20:29
Searching for why the parameter isn't working and happened upon this topic - in the documentation (http://gotolow.com/addons/low-reorder...) prefix is listed as a parameter on the low_reorder:entries tag. If this isn't a valid parameter, please update the documentation to be accurate.
Thanks,
-md
Low 1 Dec 2015 20:34
The parameter is valid since Low Reorder v2.1.2. However, the prefix in the parameter needs to be as is, so including the underscore. Eg. prefix="foo:" will let you use {foo:variable}. Similarly, prefix="foo_" will let you use {foo_variable}.
maodiddy 1 Dec 2015 21:52
I see - that wasn't clear to me, thanks for the reply!