Link to top of page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
LouiseW
Forum Members
Forum Members
Posts: 83
Joined: Tue Jun 10, 2008 6:59 pm
Location: the netherlands

Link to top of page

Post 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?
Last edited by LouiseW on Thu Oct 09, 2008 7:43 pm, edited 1 time in total.
Thanks for your help
I use CMS Made Simple 1.6 "New Caledonia"
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Link to top of page

Post by RonnyK »

Try...
{anchor anchor='main' text='Top^'}
Ronny
LouiseW
Forum Members
Forum Members
Posts: 83
Joined: Tue Jun 10, 2008 6:59 pm
Location: the netherlands

SOLVED! Link to top of page

Post 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!!!
Last edited by LouiseW on Wed Jul 29, 2009 11:04 pm, edited 1 time in total.
Thanks for your help
I use CMS Made Simple 1.6 "New Caledonia"
cameronj
New Member
New Member
Posts: 2
Joined: Thu Nov 27, 2008 9:34 am

Re: Link to top of page

Post 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
Post Reply

Return to “Modules/Add-Ons”