More in this section

Forums / Developing with Sitefinity / Issues with "How to associate content items with files"

Issues with "How to associate content items with files"

2 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    13 Jan 2009
    Link to this post
    Hi,

    I have just implemented the knowledge base article "How to associate content items with files" and unlike the image in the article the control is returning the full url including the current domain of the document to the textbox not the absolutely url.

    Is there a way to change this? So i want it to return:

    /Libraries/Headers/banner-tilt-train.sflb.ashx

    But it is returning:

    http://www.myUATdomain.com//Libraries/Headers/banner-tilt-train.sflb.ashx

    Which is no good cause the domain will change

    Thanks

    Seth
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 Jan 2009
    Link to this post
    Hi Seth Cleaver,

    With this approach, you cannot return the relative path. Please check out this.returnValue.

    There are two options for you:
    1. Remove it it manually
    2. Wrap the ButtonSelector and the TextBox keeping the real value in a hidden field. Take a look at How to display filename instead of full path when selecting items from Images and Documents module


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered