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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 09:14:49
Script start
Timing: Jan 31 2025 09:14:49
Module start 'layout'
Timing: Jan 31 2025 09:14:49
Module start 'content'
Timing: Jan 31 2025 09:14:49
Module end 'content'
Timing: Jan 31 2025 09:14:49
Script end

Main resources:

Total runtime0.0199 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.2656151.2266
Module start 'layout' 0.00630.0030 739.492236.6953
Module start 'content' 0.00930.0088 776.187590.2188
Module end 'content' 0.01810.0018 866.406329.9922
Script end 0.0198  896.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002311.3750140.0002
Check MTime0.00105.0157140.0001
Mysql Total
Database connection0.00094.331910.0009
Mysqli_queries0.003718.742130.0012
Looping result0.00000.045610.0000
Template Total0.00136.510.0013
Template load0.00104.965310.0010
Template processing0.00031.419210.0003
Override
Cache load0.00063.085510.0006
General
dbfile0.003316.628380.0004
String conversion0.00000.031240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs