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 We have a link in skin which will open my portal home pageCan We have a link in skin which will open my portal home page
Previous
 
Next
New Post
5/14/2009 6:19 AM
 

You cannot do that in an HTML skin because it adds the skinpath to every HREF if the skin gets parsed to ASCX

unless you use this dirty trick:

<a hr<%=""%>ef="<%= NavigateUrl(PortalSettings.HomeTabId) %>">Home</a>

 
New Post
5/14/2009 11:53 AM
 

So what would be the preferred method for doing this? The links I'm talking about are links to the home page, the user's account page and a page for the store front. Should I be editing the ASCX skin instead of using the HTML skin? Or is the a skin object that can be used?

 
New Post
5/14/2009 3:48 PM
 

You can use the hack I showed you , which prevents the skin parser from seeing the "href".

Or you can simply edit the ascx skin, but do not forget to remove the HTML skin or you will lose your changes to the ascx if you or someone else accidentally parses the skin.

 
New Post
5/15/2009 3:48 AM
 

Timo, 

wouldn't it be helpful to have an "escape" option for the parser to prevent it modifying the path?


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/15/2009 4:11 AM
 

Yes Sebastian, it would.

But I think this is quite difficult to achieve, without any XHTML issues, or downwards compatibility issues.

We could not  add the skinpath if the path is a full path (http://....) or starting from the root (/.........)

In these cases you can be quite sure the skinner does not want the skinpath added.

In case of inline code it is difficult to be sure what the skinners wants.

You could use <%=somefunction%> for anything... also inside the skinpath folder...

Or we check for a css class "NoParse" for the containing element and not parse it...?
Not sure that is easy to do in the current skin parser..

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Can We have a link in skin which will open my portal home pageCan We have a link in skin which will open my portal home page


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