About {$module_result.content}

Author Message

Franck T.

Tuesday 17 August 2004 3:22:49 am

In my site, all content is displayed through {$module_result.content} like a unique block. What I'd like is a site with a various content (articles, photos, news) from different locations . For example something like thi:s http://www.barnimagen.com/
How to make this?
I don't know how to "play" with my pagelayout.tpl to achieve this. Thanks for your help.

Mark Marsiglio

Tuesday 17 August 2004 5:37:54 am

You would be more likely to play with full.tpl to do this - as this is the template that is used by the $module_result.content for display of a full node (i.e. not a list of nodes).

If you are wanting to do this on the home page, create a new file called full_home.tpl in the setup/templates section of the admin by copying the original full.tpl, then assign it to override for node 2 (home page in most installs).

Then add to that some fetches for news items, articles, photos as needed in that template. You could construct a fetch that collects the three most recent items that are class=news, etc.

Hope that helps,
Mark

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Franck T.

Tuesday 17 August 2004 6:12:18 am

Thanks Mark.
I'm not sure to be Ok with all this but why not try ?
I've found this article ( http://ez.no/ez_publish/documentation/customization/tips_tricks/improve_the_pagelayouttpl) but not clear for me.
Some examples would be helpfull if possible.
Thanks

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 19 2025 03:31:15
Script start
Timing: Jan 19 2025 03:31:15
Module start 'layout'
Timing: Jan 19 2025 03:31:15
Module start 'content'
Timing: Jan 19 2025 03:31:17
Module end 'content'
Timing: Jan 19 2025 03:31:17
Script end

Main resources:

Total runtime1.3637 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1563152.6250
Module start 'layout' 0.00530.0026 741.781339.4453
Module start 'content' 0.00791.3543 781.2266533.4688
Module end 'content' 1.36210.0015 1,314.695312.1641
Script end 1.3637  1,326.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2211160.0002
Check MTime0.00130.0923160.0001
Mysql Total
Database connection0.00120.088810.0012
Mysqli_queries1.318496.6753570.0231
Looping result0.00070.0484550.0000
Template Total1.333597.820.6668
Template load0.00200.148920.0010
Template processing1.331597.635420.6657
Template load and register function0.00020.013310.0002
states
state_id_array0.00090.062910.0009
state_identifier_array0.00090.063120.0004
Override
Cache load0.00170.1246190.0001
Sytem overhead
Fetch class attribute can translate value0.00350.258220.0018
Fetch class attribute name0.00100.072940.0002
XML
Image XML parsing0.00060.047320.0003
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00080.0611150.0001
String conversion0.00000.000640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs