How can I disable the menu tabs from linking to pages but keep sub menus active?

Posted on 2008-11-13
Last Modified: 2012-05-05
I have a website I am testing with drupal. And I got a great theme working with the primary links having submenu items that drop down when the user hovers over the tab. But the tab (primary links) forces me to have a page linked to it. Is there some way to disable this?

Basically I would like the tab that has sub menus connected to it not to link to anything and require the user to click on one of the links that drop down.

Any ideas?
Question by:nichiaiinc
    LVL 9

    Expert Comment

    Hi I would say that it doesn't make sense to do this and you should create a page for each of the primary links.  These pages can be an overview, of all the sub pages, you can even have them automatically generated using views and/or panels.  It will make your life much easier and make more sense to your users and the search engines.

    Author Comment

    Really? I was thinking just the opposite, Like i don't want to see a summary and I just plan to go to the page that i want to view? Well, the other idea you proposed with a auto generated views or panels, how does one do this?

    I would still like to know if its possible to disable it, because some of my clients ask for it.

    LVL 9

    Accepted Solution

    They are both modules:

    Here are a couple of tutorials I found very useful:

    In my experience clients really don't know best.  It's always a good idea to go with your content management rather than manipulate it.  It will save you work, and you won't have unforseen issues in the future.

    However, I would suggest simply changing the cursor to text or default in the css for the primary links. (cursor:text; or cursor:default;) The link will still be clickable but won't look like it is, so you can just create a basic page that makes sense should someone still click on it.
    LVL 5

    Expert Comment

    Seconding what oliverpolden wrote. They are absolutely right. A visitor to your site expects that the menu items will behave in a predictable manner--that is to say that they can predict it without having ever been on your site, not that your site is internally consistent.

    I also highly recommend having a summary page if only from a user experience/usability standpoint.

    Author Comment

    Thank you guys for this information.
    oliverpolden, some excellent links. I really enjoyed them.

    thanks again

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ… provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now