Structureframe variabele returns id, not the path
I've setup a variabele group and added a variabele with 'Variabele typ' set to Structureframe. My Structure hiearchy shows up when editing the variabele and I can select a page. No problem there. But when I output the variabele in my template {home-introduction-link}, I get the ID (like '8') instead of the full URL.
I use Structureframe fields in my channels as well and they return the URL of selected Structure page when used in my templates, so I expected the same behaviour in Low Variabeles.
I'm relatively new to both Low Variabeles and Structure. Everything else works very well so far and I've read through the documentation and search both support forums. I can't find an anwser to this question, so I hope you can help me out with this.
Thanks!
Roel
Replies
Low 28 May 2011 13:17
Hi Roel,
Try using the template tag instead of the variable itself:
{exp:low_variables:parse var="home-introduction-link"}
roelvangils 28 May 2011 13:21
Works! Bedankt! :)
Low 28 May 2011 13:23
Geen dank!
stinhambo 30 Jun 2011 08:04
Is there any way to also return the page Title?
Low 30 Jun 2011 08:13
That would depend on what the Structure lads do. But you could always use the Query module to fetch it yourself.