how to set image source from root directory

S

seeeker

I thought if I put ../ that meant that everything after the / would be
as if from the root directory. But it doesn't seem to work.

In other words, if I put ../images03, no matter where in the web this
appears, no matter how many folders within folders it's located
within, the picture will be gotten from the images03 folder that is
within the root directory.

But when I tried this, the page I put this on was within the root
directory/archive/2004 folder, and as published, the source was listed
as 2004/images03, not the images03 folder in the root directory.

Is there a way to do it?

Thanks!
 
T

Thomas A. Rowe

You would have to use a single / with no .. however FP will then not be able to manage your
hyperlinks.

But if you have a web / site open in FP, you really do not need to worry about paths, as FP will
adjust all hyperlinks as needed per folder/page, etc. as long as the links are not contained within
a script block or using Server-Side Includes.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
S

seeeker

You would have to use a single / with no .. however FP will then not be able to manage your
hyperlinks.

But if you have a web / site open in FP, you really do not need to worry about paths, as FP will
adjust all hyperlinks as needed per folder/page, etc. as long as the links are not contained within
a script block or using Server-Side Includes.

Thanks for your quick reply!

FP can't adjust it because I'm using this link in pages published
automatically by blogspot onto my ftp server, and blogspot uses the
same template for pages that are in a folder directly off the root
directory, as well as for pages that are one more folder level down.
That's why I wanted one way to write it that would cover both.

Could you clarify a bit please what you mean by FP won't be able to
manage my hyperlinks? I don't understand how that would be related to
using this single / in an image tag.
 
T

Thomas A. Rowe

FP can only manage relative hyperlinks (../)within a web.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
S

seeeker

I guess I don't understand what you mean by "manage."

Do you mean, that if I use a single /, that if I change the image
location, FP will not be able to adjust links to that image?

Is this the only negative aspect of using the / ?

Thanks for your continuing help!
 
T

Thomas A. Rowe

See inline below.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


seeeker said:
I guess I don't understand what you mean by "manage."

Do you mean, that if I use a single /, that if I change the image
location, FP will not be able to adjust links to that image?

Yes, it is also the same issue if you use absolute URLs (http://www.domain.com/images/image.jpg)
Is this the only negative aspect of using the / ?

Yes, as far as I am aware, but this can be a major issue in a large manully managed web site whether
it is used for images or pages.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top