Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 DotNetNuke Articles

In DotNetNuke Ver. 3.3.4 the FTB editor badly forms the path associated with creating a link. An example of the badly formed link URL is http://www.janetsystems.co.uk/Portals0docs/apples.zip

Looking at line 74 it can be seen that the value of HomeDirectory is replaced by ApplicationPath. In my tests I found that where the website does not use a directory for DotNetNuke, as on the Janet Systems website, typical values are:

ApplicationPath: /
HomeDirectory: /portals/0/docs

Thus giving:

portals0docs

To resolve this follow these steps (assuming you are familiar with Visual Studio 2003 and are able to edit and maintain the core DotNetNuke files):

  1. Add to the list of imports at the top of the file
    C:\Inetpub\wwwroot\DotNetNuke\Providers\HtmlEditorProviders\Ftb3HtmlEditorProvider\ftb3\ftb.createlink.aspx.vb
    Imports System.Text.RegularExpressions
  2. Replace line 74
    htmlhidden.Value = "http://" & DotNetNuke.Common.GetDomainName(Request) & Replace(_portalSettings.HomeDirectory, Request.ApplicationPath, "")
    by
    htmlhidden.Value = "http://" & DotNetNuke.Common.GetDomainName(Request) & Regex.Replace(_portalSettings.HomeDirectory, "^" & Request.ApplicationPath, "/", RegexOptions.IgnoreCase)
  3. Recompile.

A file is avaialble for download on our downloads page. It contains the originals, together with the replacement dll file (DotNetNuke.Ftb3HtmlEditorProvider.dll).

NAT August 2006


This article viewed: 535 times Back

Copyright © 2004-2007 Janet Systems Ltd.

 Print   

For DotNetNuke modules and skins take a look at:

Snowcovered

DotNetNuke Website design and hosting from £15.00 per month. More...

Looking for a website design company in the Thames Valley, call us on 01628 566178

DotNetNuke Modules
DotNetNuke Modules availalble from Janet Systems

DotNetNuke Skins
DotNetNukeSkins.gif

from Janet Systems

Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Saturday, May 17, 2008