disable left menu in the homepage

Author Message

Fernando Marinò

Tuesday 21 July 2009 3:13:40 am

hi,
as the title say, I want to hide the left menu in the homepage (that is a folder). How can I do that?

I searched in the menu.ini file, but it seems I don't find what I need.

Gaetano Giunta

Tuesday 21 July 2009 5:41:41 am

what design and siteaccess are you using? dis you install plain / ezwebin / ezflow packages?

Principal Consultant International Business
Member of the Community Project Board

Fernando Marinò

Tuesday 21 July 2009 5:56:24 am

i'm using the standard sitedesign. I've installed ezwebin but not ezflow.

Gaetano Giunta

Tuesday 21 July 2009 7:18:44 am

- enable debugging (alter site.ini;append.php and add these lines)

[ContentSettings]
ViewCaching=disabled

[DebugSettings]
DebugOutput=enabled
DebugRedirection=disabled

AlwaysLog[]=warning
AlwaysLog[]=debug
AlwaysLog[]=notice
AlwaysLog[]=strict

[TemplateSettings]
DevelopmentMode=enabled
ShowUsedTemplates=enabled
Debug=disabled
ShowXHTMLCode=enabled

[OverrideSettings]
Cache=disabled

- look up the templates used to render the homepage

- you will need to change the template used to render the homepage (a node of type folder). If you want other folders to show the left menu, you need to create an override template:
a -- create design/plain_site/override/templates/full/homepage.tpl, copying the code from the template you are currently using, and rip off the menu part
b -- set up an override rule in override.ini.append.php to use homepage.tpl for the root node

Principal Consultant International Business
Member of the Community Project Board

Fernando Marinò

Tuesday 21 July 2009 7:59:13 am

already done, I've posted this because the problem persist.

In the homepage I see this:

<!-- Side menu area: START -->

<!-- START: including template: extension/ezwebin/design/ezwebin/templates/page_leftmenu.tpl (extension/ezwebin/design/ezwebin/templates/page_leftmenu.tpl) -->

after the inclusion of the template, it start building the main area with my custom home template:

<!-- Main area content: START -->

<!-- START: including template: extension/ezwebin/design/ezwebin/override/templates/home.tpl (design:node/view/full.tpl) -->

i noticed that if I use a frontpage node everywhere in the site, I don't see the left menu. The question is, it's possible to obtain the same thing but only for one node? if not, it is possible to swap the root content node with a frontpage?

Gaetano Giunta

Wednesday 22 July 2009 1:24:54 am

Sorry, I misread you reply - I thought you where using the 'standard' design from 'plain' install.

For the 'ezwebin' design things are a bit different:
- the inclusion of the left menu is done from within the pagelayout template, not the node template (extension/ezwebin/design/ezwebin/templates/pagelayout.tpl)
- the ezpagedata() template operator is used in the pagelayout to decide whether the left menu should be displayed or not
- in turn, it gets its info from the 'HideLeftMenuClasses' param in menu.ini

So to resolve your problem you could
- create a new class: homepage_folder, and use it only for the homepage instead of your current folder class, adding it to HideLeftMenuClasses
- override the template for the pagelayout based on node_id = 2 and create a pagelayout template that is identical but does not include the left menu
- use as main design a custom one of your invention instead of the ezwebin one, then copy the ezwebin pagelayout in your own design and alter it adding an "if node_id != 2" around the inclusion of page_leftmenu.tpl

Principal Consultant International Business
Member of the Community Project Board

Gaetano Giunta

Wednesday 22 July 2009 1:26:27 am

ps: to swap the root node with another node, use the context menu on the root node icon in the navigation treemenu on the left in the admin interface: adnaced => swap object

Principal Consultant International Business
Member of the Community Project Board

Fernando Marinò

Wednesday 22 July 2009 2:47:22 am

tnx! it works!

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 16:17:16
Script start
Timing: Jan 18 2025 16:17:16
Module start 'layout'
Timing: Jan 18 2025 16:17:16
Module start 'content'
Timing: Jan 18 2025 16:17:16
Module end 'content'
Timing: Jan 18 2025 16:17:16
Script end

Main resources:

Total runtime0.7101 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 587.9375152.6250
Module start 'layout' 0.00410.0020 740.562539.4453
Module start 'content' 0.00610.7027 780.0078597.7578
Module end 'content' 0.70880.0013 1,377.765620.1563
Script end 0.7101  1,397.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4458160.0002
Check MTime0.00120.1739160.0001
Mysql Total
Database connection0.00050.066910.0005
Mysqli_queries0.637989.8297720.0089
Looping result0.00100.1389700.0000
Template Total0.680595.820.3403
Template load0.00210.291120.0010
Template processing0.678495.541420.3392
Template load and register function0.00020.022110.0002
states
state_id_array0.00080.116210.0008
state_identifier_array0.00150.206620.0007
Override
Cache load0.00180.2566460.0000
Sytem overhead
Fetch class attribute can translate value0.00070.094320.0003
Fetch class attribute name0.00140.197290.0002
XML
Image XML parsing0.00080.115720.0004
class_abstraction
Instantiating content class attribute0.00000.0044120.0000
General
dbfile0.00070.0947160.0000
String conversion0.00000.000640.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs