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, ...dynamically change the URL on a skindynamically change the URL on a skin's hardcoded link?
Previous
 
Next
New Post
8/20/2010 2:51 PM
 
I recently developed a very flexible skin that I'd like to use on multiple child portals that are almost identical, except for each being for a particular city.  For example: abc.com/newyork or abc.com/boston, etc.  The only problem I've hit is the client wants some static links in the bottom corner, like "Contact Us", that dynamically points to the proper page for that city.  I can't make a separate skin for each city...they are all the same.  

Is there a way to dynamically change the URL that hardcoded link in the skin points to?  Right now, I just put <a href="/ContactUs.aspx"> but it always sends me to the parent portal's page abc.com/ContactUs.aspx and NOT the one for the city's portal that I'm currently viewing...for example abc.com/boston/ContactUs.aspx.  I tried the "~" thing, but that didn't work either.  Am I just missing something really obvious?
 
New Post
8/20/2010 3:05 PM
 
Dynamic functionality in skins is usually provided by implementing a "skin object". This is basically a module which does not have a UI, but performs some computations and displays something. For example, presenting information about the logged in user. In this case, you'd want a skin object which figured out the appropriate link for the portal and returned that. Do you have any programming resources who could do this for you? Perhaps a generous community member would create a Forge project with a simple free skin object for you?

Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
8/20/2010 3:24 PM
 
I just tried this:  <a href="<%=PortalSettings.PortalAlias.HTTPAlias%>/ContactUs.aspx">Contact Us</a>  but it gave me a weird URL like abc.com/tabname/abc.com/contactus.aspx.  I think I'm on the right track though.
 
New Post
8/20/2010 3:52 PM
 
I think one of these would help:

<%="http://" & PortalSettings.PortalAlias.HTTPAlias & "/Contact.aspx" %>
OR
<%="http://" & PortalSettings.PortalAlias.HTTPAlias & "/?TabName=Contact" %>
 
New Post
8/20/2010 3:53 PM
 
And.. more examples here: http://dnnskinextensions.codeplex.com...
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...dynamically change the URL on a skindynamically change the URL on a skin's hardcoded link?


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