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

Support archive

How to pass parameters to variable pair of matrix field?

Lu 12 Dec 2012 16:05 question, complete

Hi!
I'm using a variable which is a matrix field.
I would like to use parameters such as "sort" or "limit", particularly I would like to show a random row, limited to 1.

Already tried this and didn't work:

<div class="banner">
{exp:low_variables:pair var="homepage_banner" limit="1" sort="random"}
<a href="{ban_link}"><img src="{ban_image}" width="285" /></a>
{/exp:low_variables:pair}
</div>


Can this be done?

Thanks!

Replies

  1. Low 12 Dec 2012 16:10

    You should be able to use any of the primary tag pair's parameters. If that's not working, you're probably better off asking Pixel & Tonic, as that's Matrix' responsibility.

  2. Lu 12 Dec 2012 16:12

    Great! Thanks for the quick response