Page 1 of 1
[solved] Back to Top link in template
Posted: Sun Jun 13, 2010 5:53 am
by lightfoot
How do I create a "Back to Top" link in the template? A link with the name "#" goes back to the main URL with set. I made a custom tag with "echo $_SERVER['PHP_SELF'] ;" but it picks up index.php.
Re: Back to Top link in template
Posted: Sun Jun 13, 2010 12:41 pm
by Peciura
Usually $_SERVER['REQUEST_URI'] works ok.
You might want to check plugins {anchor} and {cms_selflink} on Extensions ยป Tags
Re: Back to Top link in template
Posted: Sun Jun 13, 2010 1:08 pm
by kermit
assuming you have something at the beginning of your in your template with the css id="top" such as ...
simply use {anchor anchor='top' text='Top of Page'}
Re: Back to Top link in template
Posted: Sun Jun 13, 2010 6:02 pm
by lightfoot
Thanks. The {anchor} tag worked with