Forums / General / Aggregate news on same page from different editors and sections
Ivan Švogor
Thursday 23 September 2010 1:14:16 pm
Hello,
I have an issue of aggregating news (articles) from different user roles and sections on a sigle page. I have two roles and two sections. Each of these roles are editors but with premissons on different sections of the site. They are adding news. Is there a way to present this news on same page, no matter from whom or where thay come? (filtering by tag, possible? how? )
Thank you
Marko Žmak
Sunday 03 October 2010 12:12:49 pm
Fetching the news doesn't depend on the users that created them. (and it is users, not roles)
I think that what you need is to fetch news from two different nodes. Have a look at the "list" and "tree" fetch functions:
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions/list
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions/tree
Notice that you can set an array of node ids for "parent_node_id".
Hope this helps.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth