This is a migrated thread and some comments may be shown as answers.

Hyperlink URLs at Import/Export

1 Answer 74 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Axel
Top achievements
Rank 1
Axel asked on 22 Jan 2009, 04:44 PM
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

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 27 Jan 2009, 08:52 AM
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.


Greetings,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Axel
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or