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

You must specify a valid field value

7 Answers 94 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Ashar
Top achievements
Rank 1
Ashar asked on 22 Sep 2008, 02:49 AM
I am using StripAbsoluteAnchorPaths property to strip the absolute url into relative url.

When edit a page in sharepoint and create a link using RadEditor LinkManager for the page exists in the same web, it throws an error "You must specify a valid field value"
Links created for pages exist other than current web work fine.

This problem does not exist in Server Farm envrionment and only errors out in standalone configuration.

I have configured the following properties in configFile.xml
  <property name="StripAbsoluteAnchorPaths">True</property>
  <property name="StripAbsoluteImagesPaths">True</property>

I am using version 4.5.2 of RadEditor. The website is currently live and our customer is not happy with this bug.

How do I  fix this?

7 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 23 Sep 2008, 02:20 PM
Hi Ashar,

Note that the StripAbsoluteImagePaths and StripAbsoluteAnchorPaths are turned off by default in the MOSS editor. This is done to prevent validation errors in the WCM field editor. Some users reported that they are unable to check in a publishing page after they have inserted a hyperlink in a RadEditor page content field. The problem was that MOSS did not like the relative urls - e.g. "/pages/Default.aspx". After turning off the path stripping functions the content could be saved.

What we suggest is not to use the StripAbsoluteAnchorPaths and StripAbsoluteImagePaths prioperties, but to use the ImagesPathToStrip and AnchorPathToStrip ones. More information on this topic, can be found on the link bellow:
http://www.telerik.com/help/aspnet/editor/strippingimageandanchorpaths.html

I hope this helps.

Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gavin Pollock
Top achievements
Rank 1
answered on 29 Sep 2008, 01:56 PM
Hi there,

We have an issue related to this, and were using StripAbsoluteAnchorPaths as our SharePoint environment has multiple URLs that it is accessed from, hence having any server name in a URL was breaking the content.

So would you suggest I enable AnchorPathToStrip  instead and insert the multiple URLs of the environment? We are using 4.5.3, will this version support the multiple Anchor Paths?

Cheers
Gavin
0
George
Telerik team
answered on 30 Sep 2008, 03:29 PM
Hi Gavin,

Yes, RadEditor 4.5.3 supports the AnchorPathToStrip property. Please remove the StripAbsoluteAnchorPaths property and test the scenario using the AnchorPathToStrip one.


Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gavin Pollock
Top achievements
Rank 1
answered on 23 Oct 2008, 03:19 PM
Hi there,

I am having issues getting the AnchorPathToStrip  property to work correctly, but potentially it is because it is not designed to work this way.

I am editing content on http://servername/. The content itself was created on a different server http://originalserver/ and contains Anchors and Image paths with this full URL embedded as part of the content.

I have AnchorPathToStrip set to:
<property name="AnchorPathToStrip">http://servername http://originalserver</property>

If I go into edit mode on the content, and then resave the content, the original URLs with the incorrect server name are preserved.

Please don't tell me the Path to strip functionality only works when you actually enter or modify a link/image using the property box!! That would be bad for me :)

Cheers
Gavin 
0
George
Telerik team
answered on 24 Oct 2008, 12:41 PM
Hi Gavin,

The editor's AnchorPathToStrip property is applied every time when the editor's content is submitted.  the content is submitted. So, everything should be working fine on your side. Just, make sure that you have set the editor's StripAbsoluteAnchorPaths to true. If the problem is still observed, please send us the editor's configuration, along with your test content and a brief description what the desired result is. We will check the details and do our best to provide a solution.

Best regards,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gavin Pollock
Top achievements
Rank 1
answered on 24 Oct 2008, 01:39 PM
But George, the rest of this post specifically talks about having the StripAbsoluteAnchorPaths  set to false for a SharePoint environment otherwise there are issues....

Please could you clarify?
0
Lini
Telerik team
answered on 27 Oct 2008, 09:21 AM
Hi,

I don't think the issues with StripAbsoluteAnchorPaths set to false are going to matter if you use AnchorPathToStrip. I will try to explain a bit further - if you have StripAbsoluteAnchorPaths set to true and AnchorPathToStrip is not set, the editor will try to make the shortest path possible from all URLs. For example, you are on the page http://server/pages/default.aspx and you insert a link to http://server/pages/test.aspx. The editor will shorten the URL and make it just test.aspx, because the rest is the same as the current page. This works in normal ASP.NET sites but will fail in MOSS 2007, because the server will not be able to validate the URL "test.aspx". That is why we recommend that you set StripAbsoluteAnchorPaths to false - this way the editor will not change the original URL http://server/pages/test.aspx and the server will validate it.

When you have StripAbsoluteAnchorPaths set to true and AnchorPathToStrip is set to some value, e.g. "http://server", then the editor will use this value to modify the URL http://server/pages/test.aspx and will produce /pages/test.aspx, which will validate correctly on the server. I hope this explanation helps.



Sincerely yours,
Lini
the Telerik team

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