Aggregating news from different editors on same page

Author Message

Ivan Švogor

Thursday 23 September 2010 1:12:21 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

Nabil Alimi

Friday 24 September 2010 8:34:42 am

Hi Ivan,

How are these news stored ? I don't see any problems as long as you give visitors the correct policies on your new section.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Ivan Švogor

Friday 24 September 2010 9:49:23 am

Hello,

Thank you for your reply. It dont know how to do this. Lets say that i have users that are interested in sport, and users that are interested in movies. For those sections I assigned different editor. Each editor has rights to edit only on his section. There is no difficulty adding articles on either of those sections. But now I want one page that would display latest articles from all the editors. Something like "Latest content" from eZ Flow, but with multiple sources. Can you tell me how can this be done?

Steven E. Bailey

Saturday 25 September 2010 1:14:11 am

I'm not sure if it's exactly what you are asking, but I think what you want to do is a seperate fetch per section... assuming that each section is a different node and all of the contents for that section are in the subtree of that node.

There are other ways of doing it... like doing one tree fetch on the parent of the sections - but if you care about sorting the output into the different sections and having some sort of balance between the number of items per section, then I think the most efficient way of doing it is seperate fetches and then putting the output together whatever way you want.

Of course, this depends on your site structure... if you have everything dumped in one folder - or the content all over the place randomly, then - I guess you would have to still do multiple fetches with an attribute filter on whatever attribute determines what section the object belongs to.

Of course, then cache it per section so that the overhead of the fetches is minimized.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.