Author Topic

Bruce Morrison

Saturday 02 July 2005 7:16:36 pm

Comment43516

I think you'll find the answers here http://pubsvn.ez.no/doxygen/classeZContentObject.html#a24 and here http://pubsvn.ez.no/doxygen/classeZPersistentObject.html#a9

$liste = eZContentObject::fetchList( true, array( 'contentclass_id' => 305 ) )

Should do the trick, however if you may need to add additional conditions. What you are after is all the CURRENT PUBLISHED objects of this class right?

$liste = eZContentObject::fetchList( true, 
  array( 'contentclass_id' => 305,
         'status'          =>  EZ_CONTENT_OBJECT_STATUS_PUBLISHED) 
);

Should get you this.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish