Monday 17 December 2007 9:32:13 pm
Felix wrote: <i>If you want to have another leftnavigation you (...) create a new override template</i> As distributed as eZ Publish'es template system is, pagelayout somehow remains this one, comparatively big file with lots of stuff in it, which means it generally has greater chances of being updated/upgraded ;). Making an extension dependent on admin's pagelayout override seems not very elegant to me, wouldn't you say? However, there's way around that, right below the switch you mentioned, there is (at least in eZ Publish 4.0) this extra part: {section show=is_set( $module_result.left_menu )}
{include uri=$module_result.left_menu}
{/section}
So it is enough to place in your own module/view.php file something like this: $Result['left_menu'] = 'design:parts/customnavigationpart/menu.tpl';
And we're home ;)
--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu
|