Display another nodes (folder) content?

Author Message

Charles Tanton

Tuesday 06 December 2005 10:43:25 pm

Is it possible to specify another node's (in this case a folder) content instead of its own? For example, instead of displaying the default home page content, I'd like to display all the news items within the news folder. I imagine I could do this by creating an override for the home folder which fetches the news folder content? Is there a built in way to do this?

Thanks,

Charles.

http://www.parkroad.co.za

Łukasz Serwatka

Tuesday 06 December 2005 11:00:50 pm

Charles, yes this is possible.

In your overridden site.ini.append.php for user siteaccess change:

[SiteSettings]
# Which page to show when the root index (/) is accessed
IndexPage=/content/view/full/2/

Where 2 in /content/view/full/2/ i main root node ID, set your news folder node ID instead of 2

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Charles Tanton

Tuesday 06 December 2005 11:10:20 pm

Thanks Lukasz. I really am grateful and really impressed be the quick responses I get on the ez forums, by the crew and others. Well done and keep up the good work!

http://www.parkroad.co.za

Łukasz Serwatka

Wednesday 07 December 2005 12:03:44 am

Yeah, we driving fast here ;) You are welcome Charles :)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 22:21:53
Script start
Timing: Jan 18 2025 22:21:53
Module start 'layout'
Timing: Jan 18 2025 22:21:53
Module start 'content'
Timing: Jan 18 2025 22:21:54
Module end 'content'
Timing: Jan 18 2025 22:21:54
Script end

Main resources:

Total runtime0.6963 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.0313152.6406
Module start 'layout' 0.00560.0027 740.671939.4766
Module start 'content' 0.00830.6865 780.1484547.0859
Module end 'content' 0.69490.0014 1,327.234412.1406
Script end 0.6962  1,339.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4655160.0002
Check MTime0.00140.2014160.0001
Mysql Total
Database connection0.00100.145310.0010
Mysqli_queries0.647192.9397600.0108
Looping result0.00060.0805580.0000
Template Total0.667895.920.3339
Template load0.00240.345420.0012
Template processing0.665495.567520.3327
Template load and register function0.00020.035310.0002
states
state_id_array0.00100.148910.0010
state_identifier_array0.00140.207020.0007
Override
Cache load0.00200.2855170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.101320.0004
Fetch class attribute name0.00120.172350.0002
XML
Image XML parsing0.00080.113820.0004
class_abstraction
Instantiating content class attribute0.00000.002560.0000
General
dbfile0.00080.1085180.0000
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs