Base Urls & web folders

3 posts, 1 answers
  1. Rob
    Rob avatar
    37 posts
    Member since:
    Apr 2008

    Posted 29 Apr 2008 Link to this post

    Just purchased RadControls for ASP.NET to use the Editor.

    But I am having trouble in that my secured "admin" for editing site content is in a folder called "~\admin\edit_content.aspx" and it can select and edit pages in any of the following locations:



    I have added the line:
    and I have mapped all the SiteMap links to the Custom Links drop down.

    But depending on the page being edited, its path context differs so its access to resources is problematic unless all links to all resources and pages are absolute.  That in itself is an issue to make the site (just an IP address right now) go live with a domain name as all the absolute links will be pointing to the soon to be changed IP address and can't point to the old site where the live domain is now...

    So long story short, is there any way to resolve URLs and fix them on entry and exit?
  2. Mac
    Mac avatar
    36 posts
    Member since:
    Nov 2006

    Posted 30 Apr 2008 Link to this post

    Not sure if this helps any but I've always found the following to be quite useful in making code portable between applications/domains




  3. Answer
    George avatar
    859 posts

    Posted 02 May 2008 Link to this post

    Hi Mac,

    "So long story short, is there any way to resolve URLs and fix them on entry and exit? " - at the moment there is no automatic way to resolve this links.

    Your current approach is good. The only thing left you need to do is get the editor's content on the server and replace the string "http://ip.address" with nothing(""). This way all the links will become relative to the server (e.g. "/content/image.jpg") and will work after you change the server's address. Note that you need to do the change on the server before you save the editor content (either in a page or in a DB).

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top