Use tree fetch with attribute_filter ( http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/tree ), then in loop display parent names.
Thank you, Lukasz. From my understanding in this case tree fetch will return child objects matching given criteria but not parent objects. Is it correct?
Extended attribute filter is still difficult for me. I'm trying to do it on template level.
Ok, if it's correct then it is not what i need.
How do you think which approach is better:
1) Get all child objects ($childs) filtered by a criteria attribute1 = 'a' . Then get a list of parent objects for this child objects $childs. Is it possible?
or
2) Get all parent objects ($parents). Then iterate through $parents getting childs for each item and filtering by criteria attribute1 = 'a'.
?
You must be logged in to post messages in this topic!