Forums / Setup & design / behavior of variable $module_result.content

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

eZ debug

Timing: Jan 31 2025 00:40:14
Script start
Timing: Jan 31 2025 00:40:14
Module start 'content'
Timing: Jan 31 2025 00:40:14
Module end 'content'
Timing: Jan 31 2025 00:40:14
Script end

Main resources:

Total runtime0.1770 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.0703370.2734
Module start 'content' 0.00730.0126 958.34381,005.5781
Module end 'content' 0.01990.1570 1,963.92193,897.7891
Script end 0.1769  5,861.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00412.3180200.0002
Check MTime0.00120.6699200.0001
Mysql Total
Database connection0.00100.589410.0010
Mysqli_queries0.084447.70581410.0006
Looping result0.00130.71751390.0000
Template Total0.156788.510.1567
Template load0.00100.548010.0010
Template processing0.155787.964410.1557
Override
Cache load0.00060.345310.0006
Sytem overhead
Fetch class attribute can translate value0.00170.936810.0017
XML
Image XML parsing0.00030.191610.0003
General
dbfile0.00663.7560200.0003
String conversion0.00000.001830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

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

Time used to render debug report: 0.0003 secs