Pub 2007 hard coding references

B

BillS

This is my first attempt to use Publisher for a web site. When I 'published'
to my hard drive and then uploaded via ftp to web host, the refernces to
pages and images referenced my hard drive. When I published directly to site
by mapping a drive to ftp site it uses refernces like
href="ftp://ftp.frontiernet.net/public_html/index_files/contactus.htm" which
do not work. Why isn't it using relative address from the first page and how
to I get this to work?
 
D

DavidF

At least one reason for this is that you are using the Master Page feature.
Unfortunately the MP should only be used in a print publication. Assuming
that you are using a Master page, move everything off the MP into the
scratch area, and then copy and paste to the regular pages.

DavidF
 
S

Spike

?

Spike


DavidF said:
At least one reason for this is that you are using the Master Page
feature. Unfortunately the MP should only be used in a print publication.
Assuming that you are using a Master page, move everything off the MP into
the scratch area, and then copy and paste to the regular pages.

DavidF
 
D

DavidF

Me thinks I was hasty in reading the question, and this has nothing to do
with the Master Page.

DavidF
 
D

DavidF

As Spike suggested I doubt that my first answer has anything to do with your
question...sorry. Please confirm that you are not using a Master Page
though.

Please provide a link to your site and tell us step by step how you are
publishing your site to your hard drive.

DavidF
 
B

BillS

Correct, I'm not using MP. I did have one graphic on the master page, but I
had never applied. I removed the one graphic and republished and no
difference.
 
D

DavidF

Your site is acting like you have used a Master Page, but as you have
confirmed that there are no elements on the Master Page, I would suggest
that you Publish to your hard drive and then drag and drop the new index.htm
file and index_files folder to the root directory of your site. You might
want to manually delete the old files rather than trust you overwrite them.

DavidF
 
B

BillS

I've verified the ignore master page is selected and I don't have any content
on the master page. When I publish to my hard drive, all href and src tags
reference to my hard drive. I deleted all files on the ftp site prior to
uploading the latest. Maybe I accidently had master page enabled one time
when I published and now I can't undo the damage?
 
D

DavidF

Bill S.,

I don't know what it is you are doing wrong. If you want upload your
publisher file to www.yousendit.com , send yourself a link to the file, and
then post the link to it here in the group. I am a bit time pressured, but
will download and take a look at it when I get a chance...and in the
meantime perhaps someone else can look at your file and see if they can
figure this out. The yousendit service is a freebie and you do not need to
register or sign up...

I suspect it has to do with how you are writing your links, but would like
to see the file.

And would you clarify. Right now the link to your home page is:
http://www.frontiernet.net/~sommersb/index.htm
please specify what the full path is...

DavidF
 
D

DavidF

Bill S.,

I am not sure what it is about your file, but I suspect that in mapping the
ftp drive directly from the Publisher file, you some how made some changes
in the base file that I have not seen before. If you can remember what you
did, would you describe what steps you took? I ask because I want to
understand how you managed to change the file.

I downloaded your Pub file, opened it with Pub 2007, did a web page preview,
and Published the files to my own server, etc. In each case the source code
continued to reference your URL:

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<base href="http://www.frontiernet.net/~sommersb/index.htm">
<link rel=File-List...

and I simply don't know how that is possible. I don't know of any setting in
Publisher that would make it possible to have this included in the source
html files when they are produced from my machine. I simply have not seen
this before and thus your comment about mapping the network drive seems the
only logical reason for this.

With that being said, not being able to change that in your file, I created
a new Publisher file and copied and pasted your content into the new file,
and it works as expected. Here is a link to that file:
http://www.yousendit.com/download/MnFqbUpVdkdubVYzZUE9PQ
You will probably have to adjust the layout of the navbars a bit because I
had to create new ones, but basically this file should work correctly.

I would suggest that you Publish to the web to your local hard drive and
then upload your files via ftp from there, and do not try to use the mapped
drive approach. Somehow I think that is what created this problem.

DavidF
 
D

DavidF

Yep...and that is the source of the problem, but I sure don't understand how
that ends up in the html code...

DavidF
 
E

Eric James

You've got an erroneous base url specified for the web site. Go to
File->Properties->Summary and clear the 'Hyperlink base' box.
It isn't usually necessary to specify this, and if it is the entry should be
a directory, not a file as you currently have.
There will probably be other issues with your pages which David can probably
help with - particularly concerning the navigation bar.
 
B

BillS

Cleared Hyperlink Base and problems went away - thanks so much! I didn't have
time to look at too much, but I'm much farther than previously. All images
and links appear to be working.
 

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