Forums / Extensions / eZ Flow / Module result as a block

Module result as a block

Author Message

Jon Staines

Monday 19 January 2009 1:41:33 am

Hi, is it possible to define a block to contain module_result.content?

I've only played around with eZ Flow so far, so the answer might be right in front of me and I haven't found it yet. The default layout seems to just control the right column through the flow layout and the main part comes from the usual module_result.content call in a template. But is there a way I could control everything through the flow layout? So I could have 3 columns, a left one with a menu block (I think I can do this one) plus some other blocks beneath it, a right one with some static content and fetch block, and a central column showing the content whether it is node content OR system (user/register etc).

Cheers
Jon

Gaetano Giunta

Monday 19 January 2009 8:01:29 am

module_result.content is 'just another var' to the pagelayout template and every other 'block template' included from it. Just try adding it 2 times in a row inside the pagelayout to see what happens.

Of course it is impossible to have it from within a template that is part (or included from a template that is part) of the module_result itself.

If you want flow to display menus, I think you might experiment with calling node_view_gui et/ou attribute_view_gui from within the pagelayout, pointing it to the ezflow node.
Beware: the number of sql requests done per page view is likely to skyrocket (bad for scalability)

Principal Consultant International Business
Member of the Community Project Board

Jon Staines

Tuesday 27 January 2009 8:57:53 am

Thanks. I had a chance to play around with it just now and it did seem to work. I haven't looked at menus or how it affects the load/SQL calls but I will play around with it some more.

eZ debug

Timing: Jan 18 2025 02:04:22
Script start
Timing: Jan 18 2025 02:04:23
Module start 'content'
Timing: Jan 18 2025 02:04:23
Module end 'content'
Timing: Jan 18 2025 02:04:23
Script end

Main resources:

Total runtime0.2604 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.8750180.7813
Module start 'content' 0.00780.1015 769.6563548.1406
Module end 'content' 0.10930.1510 1,317.7969332.7422
Script end 0.2603  1,650.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.6688210.0002
Check MTime0.00150.5941210.0001
Mysql Total
Database connection0.00070.256910.0007
Mysqli_queries0.191273.39621960.0010
Looping result0.00190.71511940.0000
Template Total0.225386.520.1127
Template load0.00200.770520.0010
Template processing0.223385.741720.1117
Template load and register function0.00010.045310.0001
states
state_id_array0.00110.405510.0011
state_identifier_array0.00080.321820.0004
Override
Cache load0.00170.6357170.0001
Sytem overhead
Fetch class attribute can translate value0.00140.544530.0005
Fetch class attribute name0.00140.543450.0003
XML
Image XML parsing0.00120.446530.0004
class_abstraction
Instantiating content class attribute0.00000.003860.0000
General
dbfile0.00441.6905330.0001
String conversion0.00000.003730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs