This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » 'same_classattribute_node' template...

'same_classattribute_node' template fetch function equivalent

'same_classattribute_node' template fetch function equivalent

Wednesday 21 December 2011 8:20:20 am - 4 replies

Hey guys,

Is there a method in the PHP API which would work like the 'same_classattribute_node' template fetch function?

I need to be able to fetch objects using an object attribute's value via PHP.

Any ideas?



Wednesday 21 December 2011 10:21:53 am

Hi Josh

Sounds a job for eZ Find (at least for now), as eZ Find lets you make a subtree search filtering on content objects having the same attribute identifier. It's a bit advanced, but you'll find an example in this nice tutorial by Gilles Guirand.

And if you don't know how to use fetch functions in PHP, check this other tutorial about fetch functions.

Thursday 22 December 2011 2:00:49 am

Thanks Jerome! Using the eZFunctionHandler to call template fetch functions from PHP works like a charm!

Much appreciated, Merry Christmas!

Thursday 22 December 2011 10:50:45 am

You're very welcome happy.gif Emoticon

Merry Christmas to you too !

Saturday 24 March 2012 3:53:19 am

The reply has been removed because of violation of forum rules.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from