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

Support archive

P&T List not parsing tag correctly

AboutWout 6 Jan 2011 22:52 question, complete

Hi Low,

I'm having some difficulty when using P&T List as a variable type. I have a pretty simple tag pair set up like this:

<ul id="some_id"> 
{low_var_name}
<li>{item}</li>
{/low_var_name}
</ul>


You would expect a nicely outputted list, but instead I get:

<ul id="some_id"> 
All list items here...
<li>{item}</li>
{/low_var_name}
</ul>


But! When I use the 'long' syntax it does work as expected, but obviously I'm trying to keep my query load as slim as possible.

// Long syntax 
<ul id="some_id">
{exp:low_variables:parse var="low_var_name"}
<li>{item}</li>
{/exp:low_variables:parse}
</ul>


Any ideas?

Greetz,
Wouter

Replies

  1. Low 7 Jan 2011 08:50

    Actually, using the 'extra' parsing options like with P&T List, you'll always need to use the 'long' syntax. Don't worry about the query load too much -- Low Variables will only add 1 query when using the {exp} template tags, even when there are multiple in the template.

  2. AboutWout 7 Jan 2011 09:11

    Okay... couldn't find it in the docs, so I was kinda stumped when it didn't work.

    Thanks for the answer!

  3. Low 7 Jan 2011 09:41

    Yeah, I guess I should mention that there. I'll put it on the todo list. :)