How do I create parent menu pages that are inactive
Last Post 08/01/2007 3:37 AM by Lee Sykes. 4 Replies.
Author Messages
Lori McDonald
Nuke Newbie
Nuke Newbie
Posts:5


--
07/31/2007 9:41 AM  

Hello -

 

In my navigational menu I would like to create an inactive parent page that can not be selected by itself.  Similar to the way 'Admin' and 'Host' listing are created.  When the user clicks on 'Parent Page' I would like nothing to happen.  I just want to offer them the submenu choices.

 

I looked in the page settings for the parent page and the redirect url is close to what I want but not exactly.  Any suggestions would be appreciated.

Thanks

 

 

Joseph Craig
DNN MVP
Posts:11667


--
07/31/2007 10:31 AM  
That's a very interesting question ...

I looked at the Tabs database table in a test site. There is a column named DisableLink, and it is set to true for Hosts and Admin but set to false for all of the other tabs.

So, I would guess that if you create a tab that you want to be inactive like Hosts and Admin you could then go into the database manually (use SQL Server Management Studio Express) and set that DisableLink value to true for that tab.

And the standard warning applies: do this on a test database and not a live one!

Joe Craig, Patapsco Research Group
Complete DNN Support
Jason Harlow
Nuke Active Member
Nuke Active Member
Posts:33


--
07/31/2007 1:42 PM  
You should be able to use a javascript void ( void(0)) in the url link.

thanks
jh
Lori McDonald
Nuke Newbie
Nuke Newbie
Posts:5


--
07/31/2007 2:47 PM  

Changing the Disable Link Column in the Tabs table did work to diable the link.  This was the solution I was looking for. 

Thanks,

Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
08/01/2007 3:37 AM  
Hello all,

You don't need to go into the database.

Create a new page and in the page settings / advanced settings / appearance - you will see a disabled tick box - tick this box for the page not to be accessible, but display in the menu.

Thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile


---