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, ...Attempting to use anchors in my DNN skinAttempting to use anchors in my DNN skin
Previous
 
Next
New Post
5/23/2008 9:48 AM
 

I have an anchor tag which looks like this in the .htm file for my skin:

<a name="tphp" id="tphp">

This anchor is located near the top of the page.  I have a hyperlink at the bottom of the page which should link to this, and it looks like this:

<a href="#tphp" title="Return to Top of Page">Top of Page</a>

After i parse the skin, it ends up looking like this and gives a "Directory Listing Denied" message when a user clicks it:

<a href="/DNN/portals/_default/skins/dnd/#tphp" title="Return to Top of Page">Top of Page</a>

I don't want to have to manually edit the ascx file each time i parse the skin.  How do I get around this?

 
New Post
5/26/2008 5:07 AM
 

The skin parser parses all the hrefs on a page.

The only workaround I can think of would be to use this:

<a h<%=""%>ref="#tphp" title="Return to Top of Page">Top of Page</a>

That way the parser doesn't see the href , the <%=""%> gets replaced by nothing before the page is rendered, but the link doesn't work anymore in the HTML skin.

I cannot garantee it will work in future versions of DNN...(but it might)

I'll add this in the "bug-tracker" since these kind of links should not be parsed IMO

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Attempting to use anchors in my DNN skinAttempting to use anchors in my DNN 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