Hyperlink URLs at Import/Export

2 posts, 0 answers
  1. Axel
    Axel avatar
    1 posts
    Member since:
    Jan 2009

    Posted 22 Jan 2009 Link to this post

    Hello Everybody,

    it's nice to see that the editor is able to save relative URLs in a hyperlink. This makes content deployment much easier. But i got another problem when deploying a web to another zone. I use the export/import functionality to export a web at our site and import it to another site under DIFFERENT NAME! Sharepoint is smart enough to recognize this in hyperlink-webparts and images and changes the URL to the new web- and sub-webname. With the Editor Lite i had no luck: the URLs are not touched in the import-process. Is the a way to make the this happen or does anybody have an idea how to change this URL after the import. I tried with the sharepoint object model but couldn't find a way to change the content in a web part by code. I don't like the idea to make changes at database-level.

    Thanks, Axel
  2. Stanimir
    Stanimir avatar
    1654 posts

    Posted 27 Jan 2009 Link to this post

    Hi Axel,

    Telerik has employed a flexible mechanism based on regular expressions that strips absolute paths. For better performance the mechanism runs only when the user switches to HTML mode or submits the page. In order to enabled the editor absolute strip path filters you should open the ConfigFile.xml and ListConfigFile.xml files and set the StripAbsoluteImagesPaths and StripAbsoluteAnchorPaths properties to true, e.g.

      <property name="StripAbsoluteImagesPaths">true</property>
      <property name="StripAbsoluteAnchorPaths">true</property>

    But you should know that StripAbsoluteAnchorPaths and StripAbsoluteImagesPaths properties are not available in the ASP.NET AJAX version of the control.

    I hope this helps.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top