How does {$module_result.content} work?

Author Message

Douglas Johnson

Friday 25 July 2003 7:39:36 am

I've been using {$module_result.content}, but don't really know how it works. Can someone please explain.

Thanks in advance.

Doug Johnson

Jan Borsodi

Saturday 26 July 2003 5:35:06 am

The content attribute returns the data (text) which the module generated. For instance when you run the module content/view/full/2 the module will fetch a template and set the result in module_result under the attribute content.
If you use
{$module_result|attribute(show)}
you'll see that there are other data that are generated from the module as well.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 19:29:02
Script start
Timing: Jan 18 2025 19:29:02
Module start 'layout'
Timing: Jan 18 2025 19:29:02
Module start 'content'
Timing: Jan 18 2025 19:29:02
Module end 'content'
Timing: Jan 18 2025 19:29:02
Script end

Main resources:

Total runtime0.0174 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.0066 591.2109152.6406
Module start 'layout' 0.00660.0030 743.851639.4609
Module start 'content' 0.00960.0056 783.312589.3203
Module end 'content' 0.01520.0021 872.632830.3047
Script end 0.0173  902.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002815.8867140.0002
Check MTime0.00126.6354140.0001
Mysql Total
Database connection0.00126.945710.0012
Mysqli_queries0.002614.940530.0009
Looping result0.00000.092010.0000
Template Total0.001710.010.0017
Template load0.00105.546410.0010
Template processing0.00084.423110.0008
Override
Cache load0.00073.923310.0007
General
dbfile0.00031.749580.0000
String conversion0.00000.052240.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