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, ...adding links to skinsadding links to skins
Previous
 
Next
New Post
5/14/2007 9:09 AM
 

The base problem to all of this is that DNN always serves the same file, Default.aspx.  It's the TabID that determines what content is displayed, and what "page" is shown.  The TabID may or may not be identical in all portals.  I don't know of a way around this that is guaranteed to work in all cases, at least without writing a skin control that pulled the home page from the database in some way.

Jeff

 
New Post
5/14/2007 11:38 AM
 

You can do this but the only way I can think of doing it at the moment is to modify part of the core.  Each of the skin files includes skin.vb as the code behind.  I have a routine that I use that is used to find the url for the site and the get all of the files in an image folder for javascript to display.  The code could be easily adapted so it would just find the url to the website and then add /Default.aspx to pull up the home page.  If you think you would be comfortable with this type of modification then let me know and I can post the code for it.  I may be able to modify it so you would just have to copy the code and add something to the skin.  I don't know if it would be easier to write as a control but for now this is the only idea I have.  I have used it on both parent and child portals and haven't had it fail yet.  You can post back here if you are interested and I will post it. 

 
New Post
5/14/2007 3:21 PM
 

Read my post above...

 
New Post
5/15/2007 4:38 PM
 

Update...

I posted my skin to a remote server and lo and behold the links worked!  Skins are always stored in a folder at a predictable number of levels down from the site root... so a relative link works.  This gets around having to "hard" link.  The solutiuon from my earlier post...

 

The solution is this:  I put  a relative URL  into the href that targets the default page 4 folders up from the skin folder.  That hits the default.aspx "home" page for that portal.  href="../../../../default.aspx"
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...adding links to skinsadding links to skins


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