Forums / Extensions / eZ Flow / Module result as a block
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).
CheersJon
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
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.