Thursday 12 April 2007 1:57:31 am
I'm afraid that's not quite possible, because eZ Publish works as the follows:
1. user access a URL
2. eZ Publish parses the URL and determines which module and view to execute in "index.php"
3. eZ Publish executes the module/view 4. The view script sets several tpl variables to a tpl, fetches the tpl, set the tpl result as $module_result.content and set module path as well.
$Result = array();
$Result['content'] =& $tpl->fetch( "design:foo.tpl" );
$Result['path'] = array( array( 'text' => TEXT,
'url' => URL ) );
Note: the module path was set after the tpl was fetched. So in the module template, you actually don't have the access to module path. 6. index.php finally fetch the pagelayout and register $Result variable as $module_result in pagelayout.
However, I guess there is a workaround, but I never tried that before. Maybe you try to include the toppath template in pagelayout but make it invisible and use ajax to copy the 'innerHTML' of the toppath template into other area.
Michael Lee | Managing Director | ZerusTech Ltd | www.zerustech.com
Skype: zerustech
|