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  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  FCKeditor Provi...  Default Editor FckEditor does not support friendly urls
Previous Previous
 
Next Next
New Post 4/18/2007 4:12 AM
User is offline William Rawson
19 posts
www.wortechnologies.com
10th Ranked


Default Editor FckEditor does not support friendly urls 

It appears that the FckEditor in DNN 4.5.1 does not support friendly urls. This is a show stopper for my clients that are not html savy. When you add a link to a page on your site it always uses the linkclick.aspx anti-search engine and anti-friendly url link. There appears to be no setting to change this default behavior. When looking into the code for fcklinkgallery.aspx I can't see where the code can even right a user freindly url for internal page linking. Example    I want this "text" to link to my home page. With friendly urls on this link should be "/home/tabid/36/default.aspx"  instead it is "linkclick.aspx?some extra garbage querystring stuff&thereal link"   

How do I fix this? Is there a patch?

By default all internal links created in fckeditor should be friendly urls if freindly urls are on and if friendly urls are off then the link should be the real link, then if for some resean you need to track the linkclick then that should be an option not the default. As of right now you have to change the content source to use the correct link. 

I don't know how to tell you that for proper SEO links need to be friendly urls and actually link to the correct page not to the poor concept of linkclick.aspx which is going backword in technology instead of forward. (By the way with Ajax and all and PostBacks to track a link you just add an onclick event to the link so screen readers and spiders see the correct url and browsers with javascript are sent to the linkclick page. not change the link to something used 10 years ago in classic asp before people knew that web applications could be SEO freindly

Please Help as I love FckEditor and do not want to reimplement FreeTextbox

Thanks for any help

 
New Post 4/18/2007 10:47 AM
User is offline Mauricio Márquez
915 posts
dnn.tiendaboliviana.com
7th Ranked






Re: Default Editor FckEditor does not support friendly urls 

FCKeditor provider does not build links on its own. It uses the standard URL control provided by the DNN core. This control is used by most modules that need URLs (Internal or external)

As I remember, the control only uses a non friendly URL when it needs somekind of non public autorization (Secure folders or database folders)


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post 4/18/2007 2:37 PM
User is offline William Rawson
19 posts
www.wortechnologies.com
10th Ranked


Re: Default Editor FckEditor does not support friendly urls 

thanks for the quick response. But it does appear that the FCKeditor provider uses a dnn url control it does build the link when it returns the url here is example:

 

Private Sub cmdSelect_Click(ByVal sender As Object, ByVal e As EventArgs)
            Dim textArray As String() = Me.PortalSettings.Version.Split(New Char() { "."c })
            Dim num As Integer = IntegerType.FromString(textArray(0))
            Dim num2 As Integer = IntegerType.FromString(textArray(1))
            Dim str As String = Me.ctlURL.Url
            Dim flag As Boolean = False
            If (StringType.StrCmp(Strings.Left(str, 7).ToLower, "fileid=", False) = 0) Then
                If ((((num = 3) And (num2 >= 0)) And (num2 <= 2)) Or ((num = 4) And (num2 = 0))) Then
                    Dim controller As New FileController
                    Dim text2 As String = str.Substring(7)
                    Dim fileById As FileInfo = controller.GetFileById(IntegerType.FromString(text2), Me.PortalSettings.PortalId)
                    If (Not fileById Is Nothing) Then
                        str = (fileById.Folder & fileById.FileName)
                    End If
                Else
                    Dim controller2 As New FileController
                    Dim text3 As String = str.Substring(7)
                    Dim info2 As FileInfo = controller2.GetFileById(IntegerType.FromString(text3), Me.PortalSettings.PortalId)
                    If ((Not info2 Is Nothing) AndAlso (info2.StorageLocation = 0)) Then
                        str = (Me.PortalSettings.HomeDirectory & info2.Folder & info2.FileName)
                        flag = True
                    End If
                End If
            End If
            If ((((num = 3) And (num2 >= 0)) And (num2 <= 2)) Or ((num = 4) And (num2 = 0))) Then
                str = Globals.LinkClickURL(str)
            ElseIf Not flag Then
                str = Globals.LinkClick(str, Me.PortalSettings.ActiveTab.TabID, -1)
            End If
            Me.SendResultURL(str)
        End Sub
 
New Post 4/18/2007 2:40 PM
User is offline William Rawson
19 posts
www.wortechnologies.com
10th Ranked


Re: Default Editor FckEditor does not support friendly urls 

So in the code the linkgallery takes the string from the url control and returns a

str = Globals.LinkClickURL(str) or another combination of Globals.LinkClickUrl 

So maybe this is why linking to a page on your site returns the bad link of linkclick.aspx

 

Thanks again

 
New Post 4/18/2007 3:16 PM
User is offline William Rawson
19 posts
www.wortechnologies.com
10th Ranked


Re: Default Editor FckEditor does not support friendly urls 

I was unable to find the updated source for the provider that is current to dnn 4.5.1  is there a location that the source can be downloaded?  I checked the media module that uses dnn url control during page load it sets the url control to show track true and if you select not to track the link it places the correct link into the content. I see through reflector that the fckeditor link gallery.aspx page load sets show track to false. Does have something to do with link tracking always being on?

 

Thanks again

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  FCKeditor Provi...  Default Editor FckEditor does not support friendly urls
 


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.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

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