Page 1 of 1

Link to top of page

Posted: Thu Oct 09, 2008 7:38 pm
by LouiseW
At the bottom of each page I have a link that should direct you to the top of that page.
The code for it is in the template.
Soon after I inserted this code
 

At the appropriate position at the bottom of the page I have this code
^ Top

On the first page it works fine.
The links ^ Top on the next pages should return me of the top of the actual page, however I get to the top of the first page of my site instead.

Check it out these sites (in Dutch)
http://www.edelsmidfrentz.nl/
http://www.loes-online.nl/lelyschool/

The problem occurs in IE7 and FF3
How do I solve this?

Re: Link to top of page

Posted: Thu Oct 09, 2008 7:45 pm
by RonnyK
Try...
{anchor anchor='main' text='Top^'}
Ronny

SOLVED! Link to top of page

Posted: Thu Oct 09, 2008 9:24 pm
by LouiseW
Hello Ronny
The problem is solved using your solution!

At the bottom I now have this anchor
{anchor anchor='pagetop' text='Top^'}

But that doesn't anything without a target at the top somewhere after the tag:
 

Thanks!!!

Re: Link to top of page

Posted: Thu Nov 27, 2008 9:42 am
by cameronj
the name attribute is deprecated.

Just reference to anything at the top of the page with an id attribute.

i.e if you have a div in the top like:

then where you want your "back to top link" insert a link as follows:

Return to top