How to create a top level menu item without linking to a page where you have child pages?

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.
7/11/2010 8:29:12 AM
Gravatar
Total Posts 19

How to create a top level menu item without linking to a page where you have child pages?

Hi all,

I've been playing with different skins and created some within Artisteer with different menu types (horizontal and vertical). What I would like to do is settle on using a horizontal menu but I would like to stop users being able to click on a top menu item if there are child pages.

For instance, assume we have a News Top Level section which has a Blog and Events child pages, then what I want in the News item to appear in the top level menu but I do not want this to link to a page, and rather only expose the child pages a clickable to the user.

 

Can this be done?

7/12/2010 3:10:23 AM
Gravatar
Total Posts 47

Re: How to create a top level menu item without linking to a page where you have child pages?

i needed this feature too, but couldn't work it out :(

7/12/2010 11:14:28 AM
Gravatar
Total Posts 19

Re: How to create a top level menu item without linking to a page where you have child pages?

Although I haven't found a solution, I have ended up removing all content on the main page, then setting the "Show Child Pages Site Map?", so just the child pages show on the page. Bit rubbish, but the best I can do.

7/13/2010 6:49:38 AM
Gravatar
Total Posts 18439

Re: How to create a top level menu item without linking to a page where you have child pages?

People have asked about this enough over time that I will look into implementing a solution in the near future. I've put it on my to do list so I won't forget about it.

Best,

Joe

7/13/2010 9:22:03 AM
Gravatar
Total Posts 47

Re: How to create a top level menu item without linking to a page where you have child pages?

thanks for the update :)

7/31/2010 6:16:20 AM
Gravatar
Total Posts 55

Re: How to create a top level menu item without linking to a page where you have child pages?

I am looking forward to this update also :)

11/5/2010 11:49:44 AM
Gravatar
Total Posts 40

Re: How to create a top level menu item without linking to a page where you have child pages?

Maybe not an ideal solution to this problem, but in my situation, it was easiest to use jQuery to accomplish this task:

<script type="text/javascript">
      $(document).ready(function() {
                    $('.AspNet-Menu-Horizontal a.static').attr("href", "#") //disable top-level links by replacing with #s
            });
</script>

If your menu isn't using the "static" class name for top-level links you could easily adapt the above jQuery to select only those links you need to change.

11/5/2010 12:35:06 PM
Gravatar
Total Posts 2253

Re: How to create a top level menu item without linking to a page where you have child pages?

This was made possible with release 2.3.5.1. You can read how to make a menu item unclickable here: http://www.mojoportal.com/unclickable-menu-items.aspx.

HTH,
Joe D.

11/5/2010 12:40:45 PM
Gravatar
Total Posts 40

Re: How to create a top level menu item without linking to a page where you have child pages?

Thanks Joe.  I had a vague recollection that this was done earlier but couldn't find out how to do it at first attempt, so I really appreciate your response. 

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