You must specify a valid field value

8 posts, 0 answers
  1. Ashar
    Ashar avatar
    1 posts
    Member since:
    Mar 2008

    Posted 21 Sep 2008 Link to this post

    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?
  2. George
    Admin
    George avatar
    859 posts

    Posted 23 Sep 2008 Link to this post

    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.

  3. Gavin Pollock
    Gavin Pollock  avatar
    62 posts
    Member since:
    Jan 2005

    Posted 29 Sep 2008 Link to this post

    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
  4. George
    Admin
    George avatar
    859 posts

    Posted 30 Sep 2008 Link to this post

    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.
  5. Gavin Pollock
    Gavin Pollock  avatar
    62 posts
    Member since:
    Jan 2005

    Posted 23 Oct 2008 Link to this post

    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 
  6. George
    Admin
    George avatar
    859 posts

    Posted 24 Oct 2008 Link to this post

    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.
  7. Gavin Pollock
    Gavin Pollock  avatar
    62 posts
    Member since:
    Jan 2005

    Posted 24 Oct 2008 Link to this post

    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?
  8. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 27 Oct 2008 Link to this post

    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.
Back to Top