behavior of variable $module_result.content

Author Message

tic 9

Thursday 17 April 2008 7:09:41 am

hello!

I would like to know the behavior of variable $module_result.content. Indeed, I developpe under ez now and I have a problem with the loading of my page; it is problem is which the data owing to lack of ez posts with the starting of the page except the rules that I defined.
what to make?

Kristof Coomans

Thursday 17 April 2008 7:36:16 am

Hi

I recommend you reading http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_pagelayout/variables_in_pagelayout#module_result. Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

tic 9

Friday 18 April 2008 1:46:13 am

Thank you with you for your answer!
But I think that my question was not also clear; I need to understand why $module_result.content posts as of the loading of the page the elements that me I is not defined

Kristof Coomans

Friday 18 April 2008 2:22:37 am

Hi

I'm afraid I still didn't understand the question :)

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

tic 9

Friday 18 April 2008 6:54:21 am

Hi!
my question is as follows: I work on a project with eZ but with each time I reload the page, there are elements which are posted I do not want. I know that $module_result.content posts the elements of the requete or the elements are in the course of execution. But why when I launch the page, the elements by defect are posted but the posting of its elements is made any rĂªquete in progres

André R.

Friday 18 April 2008 7:07:23 am

I'm also not sure what you mean, to make sure we talk about the same thing, here is some info on how modue_result is generated.

When you request a page in eZ Publish, it decides what module to run based on the url.
If the url isn't a system url ( aka index.php/<site_access>/<module>/<view>/<optional_params> ), it will assume it is a nice url ( aka index.php/<site_access>/Home/About_us ) and run the 'content' module and view 'view' ( in kernel/content/view.php ), if successful this module then returns a $Result hash with things like 'content' and 'path' witch eZ Publish uses as $module_result variable when it runs your pagelayout.tpl file (last step).

So $module_result.content is the generated content from the module, in the case of the content module it is generated by node templates. So if you want to change the $module_result.content content, you need to look into changing (preferably overriding ) node templates.

Modules and views:
http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/modules_and_views

Override system:
http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_template_override_system

Walkthrue on creating a eZ Publish site (touches node templates, overrides, classes and pagelayout):
http://ez.no/ezpublish/documentation/building_an_ez_publish_site

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 16:28:23
Script start
Timing: Jan 18 2025 16:28:23
Module start 'layout'
Timing: Jan 18 2025 16:28:23
Module start 'content'
Timing: Jan 18 2025 16:28:24
Module end 'content'
Timing: Jan 18 2025 16:28:24
Script end

Main resources:

Total runtime0.5567 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1797152.6406
Module start 'layout' 0.00570.0024 741.820339.4766
Module start 'content' 0.00810.5475 781.2969620.4609
Module end 'content' 0.55560.0011 1,401.757816.1250
Script end 0.5567  1,417.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6283160.0002
Check MTime0.00130.2250160.0001
Mysql Total
Database connection0.00060.108510.0006
Mysqli_queries0.507691.1840680.0075
Looping result0.00050.0851660.0000
Template Total0.533795.920.2668
Template load0.00200.358720.0010
Template processing0.531795.508320.2658
Template load and register function0.00020.029810.0002
states
state_id_array0.00070.119310.0007
state_identifier_array0.00070.129920.0004
Override
Cache load0.00170.2982320.0001
Sytem overhead
Fetch class attribute can translate value0.00040.080530.0001
Fetch class attribute name0.00160.285480.0002
XML
Image XML parsing0.00100.173330.0003
class_abstraction
Instantiating content class attribute0.00000.003290.0000
General
dbfile0.00080.1430230.0000
String conversion0.00000.001240.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs