eZContentObjectTreeNode::subTree AttributeFilter problem!

Author Message

Siniša Šehović

Wednesday 13 December 2006 2:25:56 am

Hi

I have one strange problem and really need some help!

ez 3.8.6

I have this code that works:

$nodes =& eZContentObjectTreeNode::subTree(  array( 'Depth' => 0, 'ClassFilterType' => 'include', 'ClassFilterArray' => array( 16 ), 'MainNodeOnly' => true, 'Limitation' => array() ), 60 );

But if I try this:

$nodes =& eZContentObjectTreeNode::subTree(  array( 'Depth' => 0, 'ClassFilterType' => 'include', 'ClassFilterArray' => array( 16 ),'AttributeFilter'=>array(array('197','=',220)), 'MainNodeOnly' => true, 'Limitation' => array() ), 60 );

AttributeFilter is not working.
Variable $nodes is empty?

What is wrong?
Please help!

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Siniša Šehović

Wednesday 13 December 2006 7:17:17 am

Hi

SOLVED!

I was using wrong id!

That was my mistake!:-(

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.