Creating dynamic content

Author Message

Carl Worswick

Wednesday 23 March 2005 3:16:19 pm

Having followed through the TSCM tutorial without any problems I now want to get my hands dirty but I've hit on a problem from the outset.

I want, like the TSCM, a banner, left menu and footer with some dynamic content in the middle. Creating the banner, menu and footer in the pagelayout.tpl has been no problem but I am a little confused on how the string {$module_result.content} will connect with my dynamic template which I have created in the overrides folder, can anyone clear this up for me?

What I don't want is to create an article and point the site.ini.append.php at it.

Thanks

Ɓukasz Serwatka

Tuesday 29 March 2005 1:03:57 am

{$module_result.content}  	

Contains information about the result (and the result itself) generated by the module/view that was executed.

View templates are mostly associated with the content views. The content view is actually a presentation of the content or page requested by the user throught the URL. For example, mysite.com/content/view/full/2 refers to viewing the content in the full view of node 2.

You can create new view for /view/full/2 in Design->Templates->/node/view/full.tpl

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

Main resources:

Total runtime0.0142 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1563152.6250
Module start 'layout' 0.00570.0023 741.781339.4453
Module start 'content' 0.00800.0044 781.226689.3516
Module end 'content' 0.01250.0017 870.578130.3047
Script end 0.0141  900.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.6473140.0002
Check MTime0.00117.4860140.0001
Mysql Total
Database connection0.00064.259910.0006
Mysqli_queries0.002316.078230.0008
Looping result0.00000.092610.0000
Template Total0.00139.410.0013
Template load0.00074.751610.0007
Template processing0.00074.632010.0007
Override
Cache load0.00043.177210.0004
General
dbfile0.00031.914480.0000
String conversion0.00000.050540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs