Design and CSS styles
Version 6.x > Design and CSS styles > Where to set MenuItemGroup='foot'? View modes: 
User avatar
Member
Member
steven4733-gmail - 12/20/2011 11:47:02 AM
   
Where to set MenuItemGroup='foot'?
I want to show the menu item in foot part, after reviewing the corporate site, I found Hierarchical viewer web part has a where condition of MenuItemGroup = 'footer'. Where to set it for each menu item?

User avatar
Kentico Support
Kentico Support
kentico_janh - 12/21/2011 12:47:15 AM
   
RE:Where to set MenuItemGroup='foot'?
Hello,

You can set this property on the Form tab of each Page Menu item. This property is called Menu group and is represented by a dropdown list.

Best regards,
Jan Hermann

User avatar
Member
Member
steven4733-gmail - 12/21/2011 8:45:12 AM
   
RE:Where to set MenuItemGroup='foot'?
Thank you very much.

User avatar
Member
Member
steven4733-gmail - 12/21/2011 11:38:03 AM
   
RE:Where to set MenuItemGroup='foot'?
I just found if I set the menu group to footermenu, then the menu items disappear from top menu. However, I want it display on both. How to resolve this issue?

User avatar
Kentico Support
Kentico Support
kentico_janh - 12/22/2011 2:35:30 AM
   
RE:Where to set MenuItemGroup='foot'?
Hello,

You can notice, that the where condition of the top menu contains MenuItemGroup <> 'footer'. It means, that when you change menu group to footer one, it disappears from the top menu, so if you want to display your menu item in both (top menu and footer menu), you will need to add a new menu group for it. Please go to the Site Manager -> development -> Document types -> (edit) Page menu item -> Fields (tab) -> MenuItemGroup -> Data source and add there the following code:
;{$general.empty$}
top;{$menugroup.top$}
footer;{$menugroup.footer$}
left;{$menugroup.left$}

both;Both

Now please select this menu group for the document to be displayed in both of the menus and edit the where condition of the footer menu as it is shown below:

MenuItemGroup = 'footer' OR MenuItemGroup = 'both'


Best regards,
Jan Hermann

User avatar
Member
Member
steven4733-gmail - 12/22/2011 9:48:09 AM
   
RE:Where to set MenuItemGroup='foot'?
Thanks, I did the same as you advise. I use a Hierarchical viewer web part to display all the menu item which MenuItemGroup = 'both', how come the lay out messed up? I mean whenever I added "OR MenuItemGroup = 'both'" to the where condition of the footer menu, the layout messed up. Any idea?

User avatar
Member
Member
steven4733-gmail - 12/22/2011 9:51:58 AM
   
RE:Where to set MenuItemGroup='foot'?
And, if I continue to add another web part after the "Hierarchical viewer" web part, it will just place on the top of "Hierarchical viewer", do you know the reason?

User avatar
Kentico Support
Kentico Support
kentico_janh - 12/28/2011 4:40:54 AM
   
RE:Where to set MenuItemGroup='foot'?
Hello,

We are probably talking about a hierarchical viewer on the bottom of the sample Corporate site, aren't we? The layout is messed up, because the transformations of this viewer expect at least one child menu item under that new main menu item. So please set a "both" menu group property to some child of the previous set menu item or rewrite appropriate transformation to prevent layout coruption. You will need also redefine a footer menu css class and decrease its width, because you are adding one more column in the footer layout. This will also solve the issue with a wrong order of web parts, because it was caused by wrong floated elements, when the design was messed up.

Best regards,
Jan Hermann

User avatar
Member
Member
steven4733-gmail - 12/28/2011 8:15:11 AM
   
RE:Where to set MenuItemGroup='foot'?
Yea, it needs at least one child menu. Thanks a lot.