Forums / Developer / MenuSettings per class

MenuSettings per class

Author Message

Erik Weinmaster

Tuesday 11 January 2011 2:35:23 pm

Is there anyway to have menu settings available on a per class basis for the ezwebin extension? More specifically, I want the flat_left menu to display for one class, but I want just a TopOnly design for most other classes. The settings I see in menu.ini I believe are mostly for the admin interface. Thus, what exists for the ezwebin interface?

Thanks,

Erik

André R.

Wednesday 12 January 2011 2:50:20 am

you can customize this from your class's node template by using persistent variables which ezpagedata looks for.

See how other templates in webin/flow uses it, for instance frontpage.tpl in webin:

{set scope=global persistent_variable=hash('left_menu', false(),
'extra_menu', false(),
'show_path', false())}

This needs to be on the top of the node temaplte, if you use persistent_variable for other stuff, then consider using ezpagedata_set | ezpagedata_append functions from webin which does any merging needed for you on this variable.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom