1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Custom Links in RadEditor

Custom Links in RadEditor

3 posts, 0 answered
  1. viscious
    viscious avatar
    31 posts
    Registered:
    10 Aug 2006
    17 Jan 2008
    Link to this post
    I need to have the custom links drop down in the rad editor work with the sitemap so users can create links to internal pages.

    I know how to manually create custom links, but since the sitemap is dynamic i dont think thats going to work.

    I know how to create custom links from code behind, but since the editor is instantied from a template file, without a code behind, i don't think that is going to work either.

    In theory I could create a subclass, but the GenericContainer variable that holds the editor template is marked private and so I cant get access to the Container.Editor variable. 

    My boss is just about ready to fire me over this.  According to him being able to create inter site links is one of the most important features in a CMS.  To be honest, i kind of agree.  

    The crazy thing is, this feature works out of the box with the RadEditor for DotNetNuke ( a third party cms), but there doesnt seem to be an easy way to accomplish this using Teleriks own cms product with their own editor?

    One thing I was thinking is that I could set the EditorToolsFile property to something like EditorToolsFile.xxx,  then I could create an httphandler for .xxx that would dynamically create an xml file with the custom links nodes created based on the current sitemap?   Do you guys think this would work?



  2. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    17 Jan 2008
    Link to this post
    First off, let the record show that I had nothing to do with this post.  Telerik, check the IP address if you don't believe me.

    Second, visious, I think your boss needs to relax.  Just waltz into his office and tell him Gabe said to "relax".  Bring a flashlight with you and make some shadow puppets on the wall.  I find this is normally the best way to diffuse tense situations. 

    Third, have hope, Telerik is aware of the issue:  http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-hbacm.aspx  I don't believe they have announced when this is coming, but this has been acknowledged.

    Fourth, realize that this issue only impacts links that are put into a "Generic Content" control.  I realize that is significant issue, but you can still solve a lot of problems with various dynamic "Navigation" controls.  Sitefinity comes with several of these.  I posted a few more to www.goondocks.com.

    Fifth, your dynamc "EditorToolsFile" file idea is really innovative & cool.  If you get that working, I would love to know it.

    Gabe
    ==================
  3. viscious
    viscious avatar
    31 posts
    Registered:
    10 Aug 2006
    18 Jan 2008
    Link to this post
    Well using an HttpHandler to generate a dynamic EditorToolsFile is not going to work.  It appears the rad editor reads the file from the disk instead of making a web request to retrieve the file.   Which I guess makes sense.

    Adding the custom links could  be nearly trivial to implement with proper access to the code. 

    I really like working with sitefinity and have recomended it to many people, but not having this ability borders on being show stopper status.

Register for webinar
3 posts, 0 answered