Forums / Setup & design / Hide rightmenu based on the class being viewed

Hide rightmenu based on the class being viewed

Author Message

Maarten Holland

Sunday 20 August 2006 8:50:07 am

Hi all,

I use the rightmenu on my site. Is it possible to hide that when someone views an object of class 'image' in 'full' view?

I like to show large images in real size, by hiding the menu, so there's more space for the image.

I know how to hide the menu based on node_id or section_id being viewed by using a select statement like

{switch match=$module_result.section_id}
	{case match='1'}

Is there something similar for class_id?

Thank you,

Maarten

Kristof Coomans

Sunday 20 August 2006 12:01:38 pm

Hello Maarten

You can use $module_result.content_info.class_id ( see http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_pagelayout/variables_in_pagelayout#module_result )

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Maarten Holland

Sunday 20 August 2006 12:15:11 pm

Kristof,

Again, thank you very much. That seems to be just what I need.

The system and documentation are so comprehensive that sometimes I just don't know where to look. But I'm getting the hang of it and loving it more each day!