Forums / General / Aggregating news from different editors on same page

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

eZ debug

Timing: Jan 18 2025 00:00:05
Script start
Timing: Jan 18 2025 00:00:05
Module start 'content'
Timing: Jan 18 2025 00:00:06
Module end 'content'
Timing: Jan 18 2025 00:00:06
Script end

Main resources:

Total runtime1.0454 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0139 587.8594180.8281
Module start 'content' 0.01390.8660 768.6875595.6563
Module end 'content' 0.87990.1654 1,364.3438337.3750
Script end 1.0453  1,701.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00500.4765210.0002
Check MTime0.00160.1555210.0001
Mysql Total
Database connection0.00320.302810.0032
Mysqli_queries0.919787.97461990.0046
Looping result0.00290.27581970.0000
Template Total0.992895.020.4964
Template load0.00270.257420.0013
Template processing0.990194.706820.4950
Template load and register function0.00050.046210.0005
states
state_id_array0.00190.183510.0019
state_identifier_array0.00250.241620.0013
Override
Cache load0.00210.2042190.0001
Sytem overhead
Fetch class attribute can translate value0.00200.189940.0005
Fetch class attribute name0.00200.190660.0003
XML
Image XML parsing0.01521.449540.0038
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.03203.0571340.0009
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs