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
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.
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
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.
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.
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.
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!