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

Support archive

LV no output

Sean 17 Sep 2012 14:54 problem, complete

Hi Low,

I've got a weird situation. Two low variables with matrix and one of them works, but the other does not. I've checked multiple times for typos and that the settings are exactly the same, but still one works and one does no.

The working code is here:

 
{exp:low_variables:parse var="lv-customers"}
<li>
<div class="rec_img">
{if link}<a href="{link}" rel="external">{/if}
<img src="{logo}" alt="">
{if link}</a>{/if}
</div>
</li>
{/exp:low_variables:parse}


and the non working code is here:

 
{exp:low_variables:parse var="lv-slider"}
<li>
<img src="{slide}" alt="" width="940" height="354" />

<div class="slider-text">
<h3><a href="#">{headline}</a></h3>
<p>{copy}</p>
</div>
</li>
{/exp:low_variables:parse}


both variables are set as type: matrix,
early parsing: no

The images are both going to the same upload directory.

The second one outputs EE code with curly braces and a broken image.

Any ideas?

Replies

  1. Low 17 Sep 2012 14:57

    Hi Sean,

    Are there more Low Variable tags in that same template, by any chance?

  2. Sean 17 Sep 2012 15:29

    Low yes there.

    {exp:low_variables:parse var="lv-header-slide-down"}

    {lv-header}

    {lv-page-slogan}

    {exp:low_variables:parse var="lv-footer"}

    {exp:low_variables:parse var="lv-footer-libs"}

  3. Low 17 Sep 2012 15:30

    Try and replace the Single Tags to the exp:low_variables:single syntax and the Tag Pairs to exp:low_variables:pair syntax.

  4. Sean 17 Sep 2012 15:56

    Low that worked.

    hadn't had this issue before. So is it better to use pair and single?

  5. Low 17 Sep 2012 16:08

    Yeah, no conflicts then. See this code:

    {exp:low_variables:parse var="var1"} 
    {exp:low_variables:parse var="var2"}
    ...
    {/exp:low_variables:parse}


    The template parser doesn't know the first tag is a single one and the second is a tag pair. Using the aliases solves that conflict:

    {exp:low_variables:single var="var1"} 
    {exp:low_variables:pair var="var2"}
    ...
    {/exp:low_variables:pair}