Secondary global menu rooted off of a specific parent

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.
11/2/2011 4:54:30 PM
Gravatar
Total Posts 6

Secondary global menu rooted off of a specific parent

Hi,

First post to the forums and also very new to the .NET/mojoPortal world, so apologies in advance if I've missed something obvious.

What I'm trying to accomplish is essentially the same as using the portal:PageMenu control as a subMenu, but the parent would be fixed (one specific page), not the parent of the current page.  The idea is to create a second, independent menu that can be managed by the client.  There may be another way to accomplish this that I have not yet encountered, if so, please enlighten me. :)

I did see this post http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&mid=34&ItemID=9&thread=4914&postid=20803, but being new to .NET it came up a bit short of helping me.

Any help would be greatly appreciated!

11/3/2011 7:58:20 AM
Gravatar
Total Posts 18439

Re: Secondary global menu rooted off of a specific parent

Hi,

Take a look at the article Visual Partitioning.

Hope that helps,

Joe

11/3/2011 2:24:28 PM
Gravatar
Total Posts 6

Re: Secondary global menu rooted off of a specific parent

Hi Joe,

Thanks for the reply.  I'm not sure I did a great job of explaining what I'd like to accomplish, so I'll give it another shot.  Basically, we want two menus on every page.  One would be the standard SiteMenu listing the root level pages.  The second would be a few specific pages the client would like to call out.  What I'm struggling with is how to create that second menu and turn control of it over to the client via the admin.  Mostly, I'd like to avoid "hard-coding" the links into the Layout.Master.

Thanks!

11/3/2011 4:02:24 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Secondary global menu rooted off of a specific parent

If the secondary menu is specific to an individual page, and it doesn't have to have a hierarchy, you could try using the Links module on the page(s) that need these extra links. The client could edit each instance of the Links module to update it as needed.

If you need to keep track of a hierarchy of links though, or show the same set of links on every page (i.e. edit once, update everywhere), you'll probably need to develop your own custom feature to handle that. I was brand new to .NET programming when I started with mojoPortal too, but it was pretty easy to get started, especially when following the great documentation here, and looking at code samples within mojoPortal itself.

11/3/2011 4:09:15 PM
Gravatar
Total Posts 6

Re: Secondary global menu rooted off of a specific parent

I'm looking to do that latter of the two scenarios you've described. i.e. the secondary menu would be the same for all pages.  I will look into writing my own feature/control I suppose.  Thanks for the info and encouragement!

11/3/2011 5:58:45 PM
Gravatar
Total Posts 6

Re: Secondary global menu rooted off of a specific parent

I found a decent solution so I thought I'd post it here for anyone that stumbles across this thread. 

I ended up placing an unordered list of the links I wanted in my second menu into a new html feature instance.  Then, I included it in the layout.master via the ModuleWrapper.  I can see why it's "not recommended" , but I think in this case it works pretty well.

11/3/2011 6:20:15 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Secondary global menu rooted off of a specific parent

Good, I'm glad that's working for you. I always hesitate to recommend modulewrapper, since Joe is very conflicted about it and it's very much a "use at your own risk" solution (I don't use it myself).

Jamie

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