Share » Forums » Setup & design » topmenu and leftmenu

topmenu and leftmenu

topmenu and leftmenu

Saturday 23 October 2010 12:38:41 pm - 8 replies

Author Message

Romeo Antony

Sunday 24 October 2010 1:23:30 am

simple way->

login to admin site access

click on => setup

=> menu management (at left side)

=> chose the left menu radio button.

that is it.

And if you need to hide the topmenu only for frontpage class ,

my idea will be, in pagelayout .tpl take the current node , check whether the corrunt node id class , if current node id class is of not of frontpage type , only then show the topmenu.tpl in pagelayout.tpl

Is it work out?

Fátima Chapri

Sunday 24 October 2010 6:49:32 am

1. I already tried to setup with the menu management by the admin interface but didn't work. My leftmenu items don't appear in the frontpage yet. While, for the rest of the site they do.

2. I want to hide the topmenu for the entire site. One simple and quick solution I found was hiding it with CSS:

div#topmenu-position { display: none; }

or hiding the fetch function that calls the topmenu.

But i thing that there must be a more correct way do do that.

Romeo Antony

Sunday 24 October 2010 8:19:46 am

Fátima, try this thread http://share.ez.no/forums/developer/ezpagedata#comment60529

"

I found exactly the same problem as zurgutt -.... coudn't add the left menu to the frontpage and finally commenting the line

 

HideLeftMenuClasses[]=frontpage

 

on extension\ezwebin\settings\menu.ini.append.php the left menu appeared....

 

i'm just wondering if it is the right way or i may have problems in the future by doing that...

"

But to reove the topmenu.tpl you can try the other solution like check the current node of which kind of class . If that is of frontpage , then not include it using conditional statement

Fátima Chapri

Tuesday 26 October 2010 6:50:14 am

Hi Romeo,

Thanks for taking your time helping me.

I checked the link you gave me and comented HideLeftMenuClasses[]=frontpage at the menu.ini, but no luck. I still don't have my leftmenu at the frontpage.

Any other sugestions? I have spent hours looking for other solutions. Found some others but didn't work.

Ahh, I forgot to mention that I'm using ezpublish 4.3.

Fátima Chapri

Wednesday 27 October 2010 2:51:58 pm

Hi,

I'm desperately finding for a solution for my leftmenu problem without success.

I think it has something to do with ezpagedata().

Beside the forum topic Romeo suggested me, I also found this one: http://share.ez.no/forums/extensions/ezwebin-top-menu-set. I tasted the issue track that André suggested but didn't work.

Please, any other suggestion would be great.

Nicolas Pastorino

Thursday 28 October 2010 1:11:18 am

Hello Fátima,

After having modified the menu.ini file, have you cleared the caches ?

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Romeo Antony

Saturday 30 October 2010 1:02:13 am

Hi fatima , may be bez of override issue . Have u overrideen menu.ini in global override or site access access. if so. try it in first global override or in your site access. hope you will sort it out. It should work.

Fátima Chapri

Monday 01 November 2010 3:51:14 am

hi,

I cleared the caches and overrided the menu.ini, but no luck.

Analyzing flat_left.tpl, I found a variable $left_menu_depth that determines the root node for the left_menu. I overrided the flat_left.tpl with the flat_top.tpl just to test, and voila.... I got my leftmenu on the home on the homepage.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu