Forums / Setup & design / disable left menu in the homepage

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!

eZ debug

Timing: Jan 18 2025 11:00:22
Script start
Timing: Jan 18 2025 11:00:22
Module start 'content'
Timing: Jan 18 2025 11:00:23
Module end 'content'
Timing: Jan 18 2025 11:00:23
Script end

Main resources:

Total runtime0.9527 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1641180.8281
Module start 'content' 0.00630.7992 769.9922602.8359
Module end 'content' 0.80550.1471 1,372.8281341.0859
Script end 0.9526  1,713.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4461210.0002
Check MTime0.00170.1803210.0001
Mysql Total
Database connection0.00060.067110.0006
Mysqli_queries0.858590.11412090.0041
Looping result0.00250.26612070.0000
Template Total0.919296.520.4596
Template load0.00260.274620.0013
Template processing0.916596.206520.4583
Template load and register function0.00090.091010.0009
states
state_id_array0.00120.126910.0012
state_identifier_array0.00130.138120.0007
Override
Cache load0.00210.2198460.0000
Sytem overhead
Fetch class attribute can translate value0.00200.209630.0007
Fetch class attribute name0.00230.243590.0003
XML
Image XML parsing0.00080.087030.0003
class_abstraction
Instantiating content class attribute0.00000.0031120.0000
General
dbfile0.00420.4401270.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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