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.

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 04:20:46
Script start
Timing: Jan 18 2025 04:20:46
Module start 'layout'
Timing: Jan 18 2025 04:20:46
Module start 'content'
Timing: Jan 18 2025 04:20:47
Module end 'content'
Timing: Jan 18 2025 04:20:47
Script end

Main resources:

Total runtime0.1419 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.0625152.6250
Module start 'layout' 0.00690.0046 741.687539.4453
Module start 'content' 0.01150.1289 781.1328543.0625
Module end 'content' 0.14040.0015 1,324.195312.1563
Script end 0.1419  1,336.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.5764160.0002
Check MTime0.00141.0069160.0001
Mysql Total
Database connection0.00100.699710.0010
Mysqli_queries0.091264.2818590.0015
Looping result0.00070.5172570.0000
Template Total0.093966.220.0470
Template load0.00221.516920.0011
Template processing0.091864.645120.0459
Template load and register function0.00010.075310.0001
states
state_id_array0.00171.196410.0017
state_identifier_array0.00110.809320.0006
Override
Cache load0.00181.2399170.0001
Sytem overhead
Fetch class attribute can translate value0.00090.618920.0004
Fetch class attribute name0.00211.498850.0004
XML
Image XML parsing0.00090.633320.0004
class_abstraction
Instantiating content class attribute0.00000.010660.0000
General
dbfile0.00080.5888220.0000
String conversion0.00000.004940.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs