page not displayed in menu cannot be parent page?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
10/1/2009 10:06:59 AM
Gravatar
Total Posts 67

page not displayed in menu cannot be parent page?

Hi, I noticed something strange. I added a page with a root parent, that I don't want to display in my navigation. However, I am unable to set that page as a parent for any other pages (which I need to do). Was this on purpose, or am I missing something? Thanks.

10/1/2009 10:16:24 AM
Gravatar
Total Posts 2239

Re: page not displayed in menu cannot be parent page?

I have had this issue before and they only way I found around it was to allow the page to be visible in the navigation, add the child pages, and then make the page not show in the navigation.

-Joe D.

10/1/2009 10:35:21 AM
Gravatar
Total Posts 67

Re: page not displayed in menu cannot be parent page?

That didn't quite work the way that I wanted it to, because the side navigation disappears when I switch it over to not be viewed in the menu. I guess I can include it, then just hide it with css. Thanks for responding though, how long have you been working with mojo?

10/1/2009 10:49:20 AM
Gravatar
Total Posts 2239

Re: page not displayed in menu cannot be parent page?

Hmm, I just created what I think you are looking to do and it worked pretty well. Check out http://demo.mojoportal.com/SiteMap.aspx, notice the "Hidden Root Page". If you click on this page in the SiteMap, it shows all the subsequent pages in the proper side navigation.

I've been working with mojoPortal since the beginning of this year. I really like it and I use it for a lot of sites.

-Joe D.

10/1/2009 12:27:05 PM
Gravatar
Total Posts 67

Re: page not displayed in menu cannot be parent page?

Nope, my navigation is not rendering at all. My control looks like this:

 <portal:PageMenu id="PageMenu1" runat="server" />

I had to remove the treeview attributes because I am displaying the root level page in the side nav, and they were making the nav go berserk.

10/1/2009 1:01:10 PM
Gravatar
Total Posts 18439

Re: page not displayed in menu cannot be parent page?

Hi Drew,

In my testing what happens is exactly what is expected to happen. If you remove a parent from the menu its children are also removed but it does not mess up the menu. Its only logical that in a hierarchy if you hide a node its child nodes will also be hidden, they cannot jump up to the parent level.

Different arrangements can be made to work when using multiple menus because by starting node offsets you can make a child page appear in a sub menu that starts beneath the level with the hidden page so the solution Joe Davis uses is like that with horizontal menu(s) and then a final vertical sub menu that can go as deep as needed.. A page knows its parent id but that is all it knows it does not know the properties of its parent such as if its hidden. So by binding it in a menu that starts immediately below its parent a child page can be shown even though its parent is not in the menu above it.

If you look at demo.mojoportal.com right now it is using the jsavard-mojoportal skin which has a vertical menu for the main menu. 

I created a root level page named parent and added some children to it then I made it not appear in the menu. So now neither it nor its children are visible in the menu but are visible in the site map.

Hope it helps,

Joe

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