Low variables with grid and structure
Hi,
I am trying to use structure with low variables and a grid field type to generate different menu's.
But I am only able to get the url for the structure entry. Any suggestions?
Working:
- Page
{exp:low_variables:parse var="main_navigation_left"}
{/exp:low_variables:parse}
Not working:
- {main_navigation_left:page:title}
{exp:low_variables:parse var="main_navigation_left"}
{/exp:low_variables:parse}
I have tried all kinds of combinations, none are working.
Replies
Low 24 Apr 2014 11:15
What's the variable type of the "main_navigation_left" variable? It's up to that variable to parse the content of it, so it's looking like LV itself isn't responsible for it...
Maarten 24 Apr 2014 11:19
"main_navigation_left" is of type "grid"
Maarten 24 Apr 2014 11:22
So what I mean is:
{main_navigation_left:page} is parsing the URL of the structure entry.
But I also need the title for instance. And I am not able to parse that (or any other field)
Low 24 Apr 2014 11:23
LV only calls the Grid functions, after which Grid should take care of the parsing. If the cell not being parsed is a Structure field, then even that cell is responsible for it. You'll have to ask either EllisLab about Grid, or the guys over at Structure; there's not much I can do from a LV perspective, I'm afraid.
Maarten 24 Apr 2014 11:36
Thanks Low for your reply. I already posted the question at the people at strucure. I will wait for their reply.
Thanks again for the quick reply.
Maarten 28 Apr 2014 08:56
To round this up. I got an answer of Travis (structure):
"Do you mean the Structure field? All it does it return the URL – that's
intended."