Low Variables not displaying when working in others
I've created a blog with a 'Dynamic sidebar' where my client can use Playa with LV to choose which widgets appear in the sidebar.
I've used this on a previous site in MSM and it works fine.
It also works fine in all pages on my website apart from one, a Category Archive pages, which does not display anything within the LV tags. If I use the widget code directly in the page it woks okay.
The code below shows two examples of the side bar embed I am using.
The second example works as it should, the first doesn't. I've tried changing the variable name to 'pif_archives' to test it, and that doesn't work either.
Any ideas?
{if segment_2=="archive"}
{exp:low_variables:parse var="pif_categories"}
{/exp:low_variables:parse}
{/if}
{if segment_2=="archives"}
{exp:low_variables:parse var="pif_archives"}
{/exp:low_variables:parse}
{/if}
Replies
Low 30 Jul 2012 11:53
Hi Jon,
So, both vars are Playa vars? When posting lots of code like this, could you try and use http://pastie.org ? GetSat kind of messes things up a bit.
You can also try and enable Template Debugging to see what is going on. If you look up any lines starting with Low Variables, that might give some more insight.
jonwrightdesign 30 Jul 2012 12:26
Hi,
Sorted it!
It turns out it was the 'Use Category URL Titles In Links?' that wasn't 'Yes' that was causing it.
Low 30 Jul 2012 12:28
Cool. Glad it worked out. :)