Hyperlinks in a webpage on the D: drive

M

MDA

I have published a website to run on a CD. I then saved the website on a CD
with other folders There are links in the website that point to files located
within other folders on the CD.

Example:

href="file:///D:\layouts\5_1-2-2compHP.xls"

The problem I am encountering is that some of the people whom I have
distributed the CD to cannot access the hyperlinked files as written above
because their computers' CD drive is not the (D:) drive.... it varies, i.e
(F:) drive, or (E:) Drive.

How can I script the "href=" to point to the file on the CD regardles of
what the CD drive is named?
 
D

David Bartosik

You have absolute links instead of relative. All links should be relative and
will correct your issue. Publisher should always write relative links, if it
is writing them as absolute then I suspect you are using a Master Page in the
web publication. Remove the Master Page and resave the pub file as a web.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com
 
M

MDA

Dave,

You have helped me from the beginning, and I truly value your insight. But I
don't understand. I checked to see I f I had a MASTER PAGE by going to "View"
then "Master Page".... all that came up was a blank white page. So I gues I
don't have a MASTER PAGE.

I have tried pointing the hyper link to the file, but when I burn the
index.htm, index_files folder, layouts folder to the CD, the hyper link wants
to look for the file on my (C): drive. Here is an exampleof the hyper link
path:

C:\Documents and Settings\Donna Ree\My Documents\Miles'
Stuff\Lorillard\Planogram Website\Layouts\1_cube.xls

Any ideas?




David Bartosik said:
You have absolute links instead of relative. All links should be relative and
will correct your issue. Publisher should always write relative links, if it
is writing them as absolute then I suspect you are using a Master Page in the
web publication. Remove the Master Page and resave the pub file as a web.

David Bartosik - [MSFT MVP]
www.publishermvps.com
www.davidbartosik.com


MDA said:
I have published a website to run on a CD. I then saved the website on a CD
with other folders There are links in the website that point to files located
within other folders on the CD.

Example:

href="file:///D:\layouts\5_1-2-2compHP.xls"

The problem I am encountering is that some of the people whom I have
distributed the CD to cannot access the hyperlinked files as written above
because their computers' CD drive is not the (D:) drive.... it varies, i.e
(F:) drive, or (E:) Drive.

How can I script the "href=" to point to the file on the CD regardles of
what the CD drive is named?
 
M

MDA

I think I have it figured out with the following code:

href="../layouts/5_1-2-2compHP.xls"
 

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