Link from one page to a specific place on another page?

H

Hartvig

I have created a link to a specific place on the same page using an anchor,
but what I actually need to make is a link from one page to a specific place
on another page! Is this possible? and if so how?
Thank you very much
 
D

DavidF

No problem...but it varies by version. It is a built-in feature in 2007.

With 2003 you have at least two choices. The first using code fragments:
Bookmarks aka Hyperlinking to a place on a page:
http://msmvps.com/blogs/dbartosik/archive/2006/01/09/81265.aspx

Alternatively you can write absolute links to the anchors on the current
page, or other pages on your site.

First insert your anchor using the insert html code fragment, on the page
where you want to go. This can be somewhere on the current page or another
page on your site. For this example use "READHERE", "READHERE1", etc for
your anchors. Avoid spaces and remember to be case sensitive.

Unless you custom name your page files, Publisher will choose a page number
when you Publish to the Web, so do a web page preview of the page where you
have inserted your anchors, and note the "Page###.htm" in the address field.
You will need this file name when you write the hyperlink to the anchor.

Then go to the text where you will insert the hyperlink to the anchor.
Select the text and insert a hyperlink to the anchor using the following
format:

http://yourdomain.com/index_files/Page352.htm#READHERE

This assumes that you are using the subfolder option, "index_files", and
that the anchor is on "Page352.htm", and of course change "yourdomain.com".

You will have to upload the pages to your host to test as you are using
absolute links.

DavidF
 
B

brelade

Hi David, been a while since asked my last question, but i am very interested
in finding out more about this topic, "Link from one page to a specific place
on another page?".

By the way I am using 2007.

I have tired your suggestion but as of yet cannot get it to work,
Here is what i have done:

1. Placed on target page at the specfic spot the following
"READHERE"

2. Via normal hyperlink on text inserted:

http://breladecockerspaniels.co.uk/index_files/cocker_spaniel_dogs.htm#READHERE

The above will take me to the correct page, but not to the specific spot on
that page.

Please can you point me in the right direction with this one, as it has been
a dseire of mine for a very long time to incorporate this in to my site.

Thanks in advance for any suggestions.

Cheers
 
D

DavidF

Sounds like you wrote the anchor incorrectly:

<A NAME="READHERE"></A>

And by the way, using 'READHERE' is totally arbitrary. You can use a more
descriptive text if you want, just make sure it matches up with the link.

DavidF
 
D

DavidF

I am sorry. Changing the way you write your anchor is correct, but I skipped
over that you are using Pub 2007...

In 2007 go to the page where you want to insert the "anchor", and go to
Insert > Bookmark (Bookmark = Anchor), and give it a name such as READHERE
or something more descriptive. Drag the bookmark to where you want the page
to open. Go to the page in your site where you want to write the link to the
bookmark/anchor. Select the text as you normally would, right click (or
insert) > hyperlink > Place in the Document and you will see the bookmark
you inserted on the other page. MSFT made it easier with 2007.

DavidF
 
B

brelade

David.

Have inserted as directed on the spot on the target page, but still no joy.

1. Via HTML Code Fragment:<A NAME="READHERE"></A>

2. From main page from text inserted via hyperlink (Existing file or web
page):
http://breladecockerspaniels.co.uk/index_files/cocker_spaniel_dogs.htm#READHERE

I have inserted the # sign as when i use " it shows an error page.

The only other possible thinkg i mat be doing wrong is i am trying the link
using web preview, you did mention uploading before the link will work, is
this the case?

Cheers
 
B

brelade

David.

"THANK YOU" once again for the clear and concise directions for this question.

Until the next time.

Thanks
 
D

DavidF

Yep...won't work in web page preview. Study the link again and where is it
pointing? Not at your computer. Had you uploaded the cocker_spaniel_dogs.htm
page with the anchor on it to your host, and then clicked the link in web
page preview, it would have gone from web page preview to the page on the
internet, and to the anchor. That is the problem, if you want to call it
that, with using absolute links. You gotta upload the thing to test.

By the way, every time I visit your site it looks a bit better to me. No
offense meant, but when you first started it seemed a bit garish with the
colors that you were using, and it seemed that you wanted to use every bell
and whistle possible. Now it seems like the pages are layed out better, much
cleaner and the focus is more on the dogs and the content rather than the
site itself....good job. It is funny how over time our vision of what our
sites should do and look like evolves...

DavidF
 
D

DavidF

Gotta chuckle...it is not often I get feedback about my "clear and concise"
directions...at least not the concise part. Thanks. Glad it worked out for
you.

DavidF
 

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