Forums / Developer / Pagelayout variable / Comment66477
Greg McAvoy-Jensen
Tuesday 08 March 2011 12:16:53 pm
Fou,
The technique you describe is impossible. The two process are run serially. The content module is executed, running the full view of the home page, running homepage.tpl. When that module is finished running, it ends, leaving behind $module_result.
Then pagelayout.tpl is executed; all it can do with $module_result.content is display it.
So while it is not possible to pass a variable from pagelayout.tpl to the module which is running, it probably is in fact possible to achieve the end result you desire another way. This is, after all, Exponential. So feel free to ask your question again, but describing the end result/user experience needed rather than the coding technique.
Granite Horizon, Certified Developer of eZ Publish Web Solutions Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg Blog: http://granitehorizon.com/blog