Hide PageMenu control

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
9/11/2009 9:50:22 PM
Gravatar
Total Posts 190

Hide PageMenu control

Hi All,

I have a site design that requires a horizontal menu with dropdown subnavs and also a PageMenu control on selected pages. Does anyone know a good way to hide the page menu? There doesn't seem to be checkbox in the settings for that one.

Thanks,

John

9/12/2009 12:34:31 PM
Gravatar
Total Posts 18439

Re: Hide PageMenu control

Study the settings on existing skins like andreasvicklund02 which has 2 levels of horizontal menus and a vertical menu below that. Look in the layout.master file and the properties declared on the menus such as starting node offset.

Hope it helps,

Joe

9/12/2009 4:25:00 PM
Gravatar
Total Posts 190

Re: Hide PageMenu control

thanks, Joe. I was mainly just hoping for a confirmation that it was doable before I invested too much time. I will look into your suggestions.

9/14/2009 9:35:08 AM
Gravatar
Total Posts 190

Re: Hide PageMenu control

I did some digging through the andreasvicklund02 template. What I need to be able to do is arbitrarily choose to hide or display, through a page setting or some other means, the PageMenu control for each page (that has child pages.) But I think maybe I didn't make clear my dilemna or else I'm just not seeing the answer in this template. On this one, it would be that 3rd level nav on the left of the content area that I need to hide on certain pages. All of the links that will be on the horizontal menu have child pages, but there are some of those pages where I don't want the PageMenu to display and others where I do.

In a nutshell, the site IA will have 3 nav levels. The top level is in the horizontal menu globally with dropdown menus for 2nd and 3rd level pages. In addition, a few pages need to display the 2nd and 3rd level page links in a PageMenu type control on the left of the content. What I would need is a "Show Page Menu" checkbox option in the page settings like what is there for the menu and child page site map. I very briefly considered using the child page site map since it can be turned on and off by page, but of course that won't work because I would need for it to show 2nd and 3rd level page links at all levels and it doesn't work that way.

Might it be simple enough to wrap the PageMenu control as a feature and just add to the left panel where it's needed instead of putting it right on the Master Page?

Thanks again,

John

9/14/2009 9:41:15 AM
Gravatar
Total Posts 18439

Re: Hide PageMenu control

There is a setting in Page Settings for each page "Include In Menu" just set that to false on pages you don't want to appear in the menu and use the technique I mentioned.

There is no arbitrary way to show or hide specific menus on different pages other than all or nothing. You can enable hiding the menu on pages from site settings and then a new setting shows up in page settings for hiding the menu but it hides all of them.

Hope it helps,

Joe

9/15/2009 9:12:40 AM
Gravatar
Total Posts 190

Re: Hide PageMenu control

Problem solved. I put the PageMenu control in a feature and it works like a charm. So then all I did was publish it on a page then went in the Content Manager and added to the other pages where I wanted it. So far I've just been working with templates and learning the installation, configuration and administration of mojoPortal. This was my first attempt at any kind of feature development. I had no idea it was so simple. It took maybe five minutes to add this feature and solve my problem. mojo rocks!

You must sign in to post in the forums. This thread is closed to new posts.