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

Support archive

What am i doing wrong? (Matrix related) ***Sanity check***

ivyone 2 Jul 2012 18:09 problem, active

Hi Low,

i need a sanity check because i'm slowly going creazy.

I have a LV Matrix field with 2 cells (1 file, 1 txt). Only the following code in a template

 
{exp:low_variables:parse var="lv_homepage_slideshow" multiple="yes"}
<ximg src="{file}">
{lv_homepage_slideshow:count}|{count}
{/exp:low_variables:parse}


Results in

 
<ximg src="zzzzzzzzzzz.jpg">
{lv_homepage_slideshow:count}|{count}

<ximg src="dddddddddd.jpg">
{lv_homepage_slideshow:count}|{count}

<ximg src="eeeeeeeeee.jpg">
{lv_homepage_slideshow:count}|{count}


Was expecting to have at least one count result in like a number.

Could you point me in the direction of the stupid mistake i'm making?

Thanks,
Bas

Replies

  1. Low 2 Jul 2012 23:05

    If lv_homepage_slideshow is a Matrix variable, then use all the parameters and variables you would normally use in a Matrix channel field.

    So, taking a look at the Matrix docs and say you have a variable called "speakers", the first code example of said docs in a Variable context would be:

    {exp:low_variables:parse var="speakers"} 
    <h2>{speaker_name}</h2>
    <img src="{speaker_photo}" alt="{speaker_name}"/>
    <p>{speaker_description}</p>
    {/exp:low_variables:parse}


    ...and so on.