I'm using an Object listview with a condition variable to display objects which have a field equal to the defined condition. However the listview returns an empty list?
The field I'm using for the condition is an Object type embedded in the class /shop-product (classID 7).
Class: /shop-brand (classID 10)
Field: companyName
Here's the code:
Code: Alles auswählen
<!-- Set var to Global -->
<we:setVar from="request" namefrom="myVar" to="global" nameto="myVar" />
<!-- Create condition -->
<we:condition name="myCondition">
<we:conditionAdd field="companyName" compare="=" var="myVar" type="global" />
</we:condition>
<!-- Condition validation -->
<p>Condition = <?php echo $myCondition; ?></p>
<!-- Condition listview -->
<we:listview type="object" classid="7" condition="$myCondition">
<we:repeat>
<h1><we:field name="product" /></h1>
</we:repeat>
</we:listview>
michael.