[Solved] Removing the Global Zone (displayed on right side)

Author Message

Hakim Bouras

Saturday 16 May 2009 10:23:10 am

Hi,

In a eZ Flow site, there is a zone on the right which is automatically filled with the content of the root global_layout object (named "global zone") and which appears for some time of objects such as folder or articles.

Is there an easy way to remove this "global zone" (for the whole site) or maybe to define for which class object it should show (since it does not for all) ?

I tried to remove the root global_layout object but it did not work.

Thanks for your help,
Hakim

Hakim Bouras

Sunday 17 May 2009 2:36:53 am

It can be change at the template level by adding :

{ezpagedata_set( 'extra_menu', false() )}

You can also control the left-menu and the path using the following:

{ezpagedata_set( 'left_menu', false() )}
{ezpagedata_set( 'show_path', false() )}

Neo Pixel

Monday 18 May 2009 3:50:00 am

What template do you put

{ezpagedata_set( 'extra_menu', false() )}

into?

pagelayout.tpl?

Asking stupid questions so you don't have to!

Hakim Bouras

Monday 18 May 2009 5:05:54 am

You should put it in the template used to view the node.

ie: if you want to remove the right panel when viewing a folder object, you will put it in the "full/folder.tpl" that you will override or that is already overriden in your config (http://ez.no/doc/ez_publish/technical_manual/4_0/templates/the_template_override_system)

Cheers,
Hakim

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 18 2025 19:31:24
Script start
Timing: Jan 18 2025 19:31:24
Module start 'layout'
Timing: Jan 18 2025 19:31:24
Module start 'content'
Timing: Jan 18 2025 19:31:25
Module end 'content'
Timing: Jan 18 2025 19:31:25
Script end

Main resources:

Total runtime0.6618 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0118 589.5859152.6563
Module start 'layout' 0.01180.0037 742.242239.5078
Module start 'content' 0.01560.6449 781.7500553.6094
Module end 'content' 0.66040.0014 1,335.359412.0938
Script end 0.6618  1,347.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.6245160.0003
Check MTime0.00200.3067160.0001
Mysql Total
Database connection0.00240.359610.0024
Mysqli_queries0.599790.6171600.0100
Looping result0.00050.0823580.0000
Template Total0.624194.320.3120
Template load0.00260.387720.0013
Template processing0.621593.905120.3107
Template load and register function0.00010.020110.0001
states
state_id_array0.00130.191310.0013
state_identifier_array0.00130.192920.0006
Override
Cache load0.00220.3330280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.089020.0003
Fetch class attribute name0.00110.161560.0002
XML
Image XML parsing0.00140.213620.0007
class_abstraction
Instantiating content class attribute0.00000.002880.0000
General
dbfile0.00110.1686230.0000
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs