checking to see if a value exists inside a v:collection tag
  • I know you can check to see if a value exists using the v:if tag


    <v:repeat times="4">
    <v:collection path="/artists" groups="4">
    <v:if path="selected-works">
    <v:a><v=name></v:a>
    <v:divider><br /></v:divider>
    </v:if>
    </v:collection>
    </v:repeat>


    However, I need to filter at the v:collection level because the results are being divided into 4 equal groups.

    Can I do something similar to this?

    <v:repeat times="4">
    <v:collection path="/artists[isset(selected_works)]" groups="4" filter="isset(selected_works)">
    <v:a><v=name></v:a>
    <v:divider><br /></v:divider>
    </v:collection>
    </v:repeat>

  • 1 Answer sorted by
  • What about:

    <v:collection path="/artists[selected_works!='']">

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion