Welcome to TalkGraphics.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2006
    Posts
    7

    Question absolute URL's for everything?

    Question:
    Is there a method to have the exported site use absolute URL's instead of relative URL's on everything including images/css links/javascript links?

    Problem:
    I am creating content for use on ebay, so I upload the site to my server (ends up just hosting the images). Then I am required to go into the html with an editor, and add the leading info for all the images and such then paste that code into ebays html section.

    possible solution: if I have entered a website location into the ftp web properties, just append that to the relative paths (optionally of course).

    is this already possible?

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,530

    Default Re: absolute URL's for everything?

    Welcome to TalkGraphics Jim

    I am not quite sure what you mean by an absolute URL. Do you mean using the URL instead of linking to a page in the links menu?

    If so, sure, just enter the link in the links section and link your buttons to the URLs instead of the page. For example, instead of linking to About Us in the Links To text entry box, enter, www.mysite.com/about_us.html

  3. #3
    Join Date
    Nov 2006
    Posts
    7

    Default Re: absolute URL's for everything?

    here's an example:

    <link rel="stylesheet" type="text/css" href="index_htm_files/xr_main.css"/>
    <link rel="stylesheet" type="text/css" href="index_htm_files/xr_text.css"/>
    <script type="text/javascript" src="index_htm_files/roe.js"></script>
    .
    .
    .
    <img class="xr_ap" src="index_htm_files/0.png" alt="" id="practice:32form" title="" style="left: 1px; top: 2px; width: 881px; height: 6630px;"/>
    <img class="xr_ap" src="index_htm_files/1.jpg" alt="" title="" style="left: 350px; top: 442px; width: 190px; height: 57px;"/>

    What I want is as follows:

    <link rel="stylesheet" type="text/css" href="http://mydomain.com/mySubflder/index_htm_files/xr_main.css"/>
    <link rel="stylesheet" type="text/css" href="http://mydomain.com/mySubflder/index_htm_files/xr_text.css"/>
    <script type="text/javascript" src="http://mydomain.com/mySubflder/index_htm_files/roe.js"></script>
    .
    .
    .
    <img class="xr_ap" src="http://mydomain.com/mySubflder/index_htm_files/0.png" alt="" id="practice:32form" title="" style="left: 1px; top: 2px; width: 881px; height: 6630px;"/>
    <img class="xr_ap" src="http://mydomain.com/mySubflder/index_htm_files/1.jpg" alt="" title="" style="left: 350px; top: 442px; width: 190px; height: 57px;"/>


    -------

    the reason I want to do this is to allow my sister to make changes to her listings on ebay, and then just publish, copy and paste the html without having to edit it.

  4. #4
    Join Date
    Sep 2000
    Location
    London, England
    Posts
    415

    Default Re: absolute URL's for everything?

    Hi you could try adding a bas ref tag to the head of your page.
    http://www.w3schools.com/tags/tag_base.asp

  5. #5
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,530

    Default Re: absolute URL's for everything?

    I have conferred with my expert advisor who says:

    He will have to do this manually every time after he exports of course, or use a different page creator.

    There's no way it can be done in Xara.

    the reason I want to do this is to allow my sister to make changes to her listings on ebay, and then just publish, copy and paste the html without having to edit it.
    If this means his sister has Xara and he is supplying her the .web / .xar file to edit and publish then SHE will have to manually edit the HTML after each time she exports.

    This is a similar problem to using Xara for HTML email templates. It's just the wrong tool for the job.

  6. #6
    Join Date
    Jan 2004
    Posts
    1,830

    Default Re: absolute URL's for everything?

    Are you sure Gary? Did anyone try adding a base href?

  7. #7
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: absolute URL's for everything?

    Quote Originally Posted by bb2 View Post
    Did anyone try adding a base href?
    It only influences <a> elements href attribute.
    John.

  8. #8
    Join Date
    Nov 2006
    Posts
    7

    Default Re: absolute URL's for everything?

    bb2: baseref isn't allowed on ebay.

    Solution:
    I wrote a php script on the server for her, she just enters the project/folder name, and it spits out the correctly modified code. If anyone is interested in the code, I would be happy to provide it, just message me.

  9. #9
    Join Date
    Dec 2006
    Posts
    12

    Default Re: absolute URL's for everything?

    Jim5272,

    I absolutely agree with you. We send email newsletters which have the same issue (see my post in 'Dear Xara' http://www.talkgraphics.com/showthre...ce-folder-path). It would be so easy for Xara to have a "Publish Web' option to specify the absolute path (e.g. URL) for the resources folder.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •