Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Can I get the Portal Home Page url in a skin?Can I get the Portal Home Page url in a skin?
Previous
 
Next
New Post
5/22/2007 4:04 AM
 

I can't believe there isn't a more elegant way of including a link to the portal home page in a skin, like you can with <%=SkinPath%> and the skin directory url.  You can set the Home Page in Site Settings so it would seem that DNN could easily return the correct URL for the home page.

My problem is that if I hard code a url for several skins then someone changes the home page I have to spend the morning fixing skins so that the home link works again, so I'd rather not hard code anything into the skins.

Any ideas would be great!

Thanks.

 
New Post
5/22/2007 9:12 AM
 

Follow the link below for an example of how to do this and more:

Some tricks for getting TabNames in your DNN Skins


DotNetNuke Modules from Snapsis.com
 
New Post
5/22/2007 10:55 AM
 

The easiest way to get a link to the home page is something along the lines of ~/Default.aspx.  The home page is the easy page to build a link because any time you dial up your website and want the home page you just go with http://www.website.com/Default.aspx.  Getting a link to any other page is a bit more complicated because you could be dealing with a child portal, or a parent portal, and many other combinations.  You can programatically extract the url for the site whether it is a child or parent portal and then build the link off of that but it takes a bit more effort to do and requires some work in the code behind. 

John, thanks for the tips they are extremely useful. 

 
New Post
5/22/2007 12:44 PM
 

 

You can also do a link to the name of tab like this:

Place a direct link to tab (page) in your DotnetNuke Skin

Thanks for the feedback nightsoul.

 


DotNetNuke Modules from Snapsis.com
 
New Post
5/23/2007 4:26 AM
 

I think you could use:

<%="http://" & PortalSettings.PortalAlias.HTTPAlias%>

This will not take you to the home page but to the first page that loads if you visit the site (which can be the splash page too)

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Can I get the Portal Home Page url in a skin?Can I get the Portal Home Page url in a skin?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out