Creating ‘Back to top’ links in CMSMS

If you don’t use CMSMS, skip this post.

In html, if you want to do a back to top link, you can just do <a href=”#top”>Back to top</a>, and it will take you to the top of the page no problems. Pretty simple.

But in CMSMS, if you do that, for one reason or another you’re taken back to the home page. Luckily, there’s a very simple solution.

At the top of your page, put <a name=”top”></a> as you normally would.

For your back to top link, use:

{anchor anchor='top' text='Top' class='whatever'}

That correctly keeps you on the same page.

There’s more info on the {anchor} tag by going to Extensions -> Tags in your CMSMS installation.

If you enjoyed this post, make sure you subscribe to my RSS feed!


Related posts:

Twitter Digg Delicious Stumbleupon Technorati Facebook Email

2 Responses to “Creating ‘Back to top’ links in CMSMS”

  1. Worked like a charm
    Tnx

  2. Great to hear