How to call a module from template?

Author Message

Nicklas Lundgren

Wednesday 19 November 2003 11:28:22 am

Hi,
I have just finished my first db-driven module.
It works fine calling it with url from the browser.

But now I want to show the result of the module as part of a more complex design.
Thus, I need to call the module from for example pagelayout.tpl.

How would I accomplish this, if at all possible?

Any suggestions greatly appreciated!

Regards,
Nicklas Lundgren

Eirik Alfstad Johansen

Friday 21 November 2003 2:52:25 am

Hi Nicklas,

Not sure if I understand your question, but have you tried passing the output of your module to the variable $Result['content']? This should make it available in the template variable $module.content.

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 08:54:32
Script start
Timing: Jan 19 2025 08:54:32
Module start 'layout'
Timing: Jan 19 2025 08:54:32
Module start 'content'
Timing: Jan 19 2025 08:54:33
Module end 'content'
Timing: Jan 19 2025 08:54:33
Script end

Main resources:

Total runtime0.8076 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.0060 589.1641152.6250
Module start 'layout' 0.00600.0028 741.789139.4609
Module start 'content' 0.00880.7971 781.2500523.5000
Module end 'content' 0.80600.0016 1,304.75008.1563
Script end 0.8075  1,312.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4567160.0002
Check MTime0.00170.2127160.0001
Mysql Total
Database connection0.00100.118510.0010
Mysqli_queries0.754093.3570540.0140
Looping result0.00060.0736520.0000
Template Total0.776196.120.3880
Template load0.00280.341520.0014
Template processing0.773395.749420.3866
Template load and register function0.00020.025210.0002
states
state_id_array0.00120.143410.0012
state_identifier_array0.00170.215920.0009
Override
Cache load0.00180.2177200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.062020.0003
Fetch class attribute name0.00210.262130.0007
XML
Image XML parsing0.00500.618720.0025
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00490.6067160.0003
String conversion0.00000.001040.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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs