How to get a total row count from a Low Variables Matrix
Hello,
I am having trouble figuring out a way to output the total rows from a Low Variables Matrix field. Any help is appreciated.
Hello,
I am having trouble figuring out a way to output the total rows from a Low Variables Matrix field. Any help is appreciated.
Replies
Low 21 Aug 2012 20:03
Hi Chad,
You'd need to use the {total_rows} var inside a {exp:low_variables:pair} tag:
Chad Clark 5 Oct 2012 17:39
Hi Low,
Thank you!
Sean Delaney 19 Sep 2013 09:03
Hi guys
I have:
{exp:low_variables:pair var="lv_monday_pt_availability"}
{total_rows}
{/exp:low_variables:pair}
But the total rows value prints out twice. See Monday:
http://jamfitness.me/personal-trainer...
Low 19 Sep 2013 09:12
You can use a conditional like so:
Sean Delaney 19 Sep 2013 09:13
Fair enough. :)