istview, object, condition

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

istview, object, condition

Beitragvon Michael_S » Di 8. Apr 2008, 00:04

Hi,

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>

Do I have to use the full path of the field used in the condition to make the listview work?

michael.
Production Area
London, UK
http://productionarea.com

Zurück zu „DB / Object Module“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 6 Gäste