Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Attempting to use anchors in my DNN skin
Previous Previous
 
Next Next
New Post 5/23/2008 6:48 AM
User is offline .Rod.
3 posts
10th Ranked


Attempting to use anchors in my DNN skin 

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 2:07 AM
User is offline Timo Breumelhof
1690 posts
5th Ranked




Re: Attempting to use anchors in my DNN skin 
Modified By Timo Breumelhof  on 5/26/2008 5:21:29 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

 


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Attempting to use anchors in my DNN skin
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com
DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP