Pathing Issues

Last post 05-25-2006, 8:03 PM by bbrennen. 2 replies.
Sort Posts: Previous Next
  •  05-25-2006, 10:54 AM 19500

    Pathing Issues

    My directory structure consists of the following:
    Root
       Dir1
       Dir2
       Dir3
       Images
     
    My editor is located on an aspx page in Dir1.
    The page I'm trying to edit is on the root and of course my images are in the Images folder.
    The page was originally created in Font Page, if that makes any differance.
    When I load the page.htm into the editor, all the image links are broken until I put ../ in front of the path.
    After I do that, then the image links are broken on the public view.
    Is there a setting to allow the editor to use the pathing relative to the page location and not where it being edited from?
    I don't want to use the full url because I have a development network and a live network and don't want the base url hardcoded.
    Thanks,
    Bill
     
  •  05-25-2006, 11:12 AM 19503 in reply to 19500

    Re: Pathing Issues

    Bill,
     
    >>When I load the page.htm into the editor, all the image links are broken until I put ../ in front of the path.
     
    Because you use relative path (images/some.gif) and page.htm is under the root. 
     
    For example:
    <img src="images/som.gif"> This image is only visible when the current page is under your root.
     
    >>I don't want to use the full url because I have a development network and a live network and don't want the base url hardcoded.
     
    Please use absolute paths without the domain name.  For example: <img src="/images/som.gif">

    To use absolute paths without the domain name, you need to set Editor.RemoveServerNamesFromUrl property to true (by default).
    Example:
    <CE:Editor id="Editor1" RemoveServerNamesFromUrl="true" runat="server"></CE:Editor>
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-25-2006, 8:03 PM 19534 in reply to 19503

    Re: Pathing Issues

    Sorry, that didn't work.
    In the editor, when I put the /images/som.gif the editor still can't find the picture until I put the ../.
    Also after putting the / in the path it breaks the image on the website.
    Why can't the editor simply edit the file from it's stored location like Front Page or any other html editor would.
    It doesn't matter where my Front  Page is being used from, the pathing is relative to the page not the editor.
    Thanks,
    Bill
View as RSS news feed in XML