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?
Thanks,
Josh
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.
You must be logged in to post messages in this topic!