Aggregate news on same page from different editors and sections

Author Message

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

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

eZ debug

Timing: Jan 18 2025 01:56:14
Script start
Timing: Jan 18 2025 01:56:14
Module start 'layout'
Timing: Jan 18 2025 01:56:14
Module start 'content'
Timing: Jan 18 2025 01:56:15
Module end 'content'
Timing: Jan 18 2025 01:56:15
Script end

Main resources:

Total runtime0.8342 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.1641152.6563
Module start 'layout' 0.00790.0044 740.820339.5156
Module start 'content' 0.01230.8202 780.3359525.1094
Module end 'content' 0.83260.0016 1,305.44538.0938
Script end 0.8342  1,313.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4322160.0002
Check MTime0.00150.1787160.0001
Mysql Total
Database connection0.00080.092510.0008
Mysqli_queries0.771392.4571540.0143
Looping result0.00060.0717520.0000
Template Total0.796095.420.3980
Template load0.00220.259420.0011
Template processing0.793895.157220.3969
Template load and register function0.00020.021810.0002
states
state_id_array0.00110.126110.0011
state_identifier_array0.00090.108020.0005
Override
Cache load0.00180.2115140.0001
Sytem overhead
Fetch class attribute can translate value0.00090.108520.0005
Fetch class attribute name0.00140.172330.0005
XML
Image XML parsing0.00110.137520.0006
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00450.5382180.0002
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs