Object listview condition problem

michaels

Object listview condition problem

Beitragvon michaels » Mo 10. Aug 2009, 05:35

Hi, I'm having problems displaying a list of objects using a condition block. The variable is set correctly and is checked with the PHP echo however the list will not display when I use the condition attribute?

Code: Alles auswählen

tool_category (Class)
--- WE_ID = 7
--- tool_category_name

tool (Class)
--- WE_ID
--- tool_category => tool_category (Object)


URL... /index.php?cat=/tool_category/7


<we:setVar to="global" nameto="tool_cat_id" from="request" namefrom="cat" />
<we:condition name="condition">
	<we:conditionAdd field="tool_category" var="tool_cat_id" compare="="/>
</we:condition>


PHP echo: = <?php echo $condition; ?>
Result: = ( (tool_category = '/tool_category/7') )


<we:listview type="object" rows="5" order="tool_category" desc="false" classid="3" condition="\$condition">
......
</we:listview>

Thanks in advance,

Michael.

Zurück zu „DB / Object Module“

Wer ist online?

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