DotNetNuke Powered!
          
John Mitchell's (mostly DotNetNuke) Blog - Place a direct link to tab (page) in your DotnetNuke Skin
 Monday, May 08, 2006

Here is a quick and dirty way to add a link to a specifc Tab (page) by name directly into a skin.

<a href="?tabname=Home">Home</a>

The Tabname querystring variable will be processed by DotNetNuke and redirect to the TabId that coresponds to that name.

This could be useful if you wanted to create a clean and simple Navigation System, or if you are just typing some HTML text into a module and wanted to quickly insert a link to another tab.

5/8/2006 10:31:40 AM (Central Daylight Time, UTC-05:00)  #    Comments [6]
6/14/2006 5:07:52 PM (Central Daylight Time, UTC-05:00)
I was excited to find this method. But it does not work for me. Is it specific to a DNN version or should it work for all? Should you also be able to create a hyperlink with the tabid?
Thanks for your blog.
Ken
6/14/2006 5:13:49 PM (Central Daylight Time, UTC-05:00)

It should work on any version of DNN.

Yes, if you know the TabId you can create it with that also.
6/14/2006 5:14:57 PM (Central Daylight Time, UTC-05:00)
I think posting a comment helped open a door in my brain. I got it working with:
a href="Default.aspx/tabname/Home" or
a href="Default.aspx/tabid/38"
Sorry to waste pixels and thanks again.
1/19/2007 7:02:00 AM (Central Standard Time, UTC-06:00)
Thanks a lot for this, John. It's really a handy bit of code that I use all the time when converting static HTML sites to DNN skins. I have learned a lot from you!
Since I prefer to hand my clients HTML/XML packages, I just wish there was a way to stop the parsing engine from adding "<%= SkinPath %>" to it.
4/11/2007 6:58:03 PM (Central Daylight Time, UTC-05:00)
Thanks John,
Just one more question, how can I make it work with my child portal? Look like it take the users back to the parent portal.

Again thanks for sharing.
dinh
5/13/2008 11:55:39 PM (Central Daylight Time, UTC-05:00)
code was cool
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):