• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple, the Netherlands

anchor tag

We need your assistance to make the documentation accurate, user friendly and understandable. Therefore we welcome any tips or suggestions regarding documentation. Thank you in advance for your contribution.

However, we will not respond to technical support questions submitted using this form. If you are having difficulty with CMSMS and cannot find the solution on this website, please submit your question appropriately on our support forum at: http://forum.cmsmadesimple.org. Please remember to follow the forum rules when posting.


This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net) Please confirm that you are not a script by entering the letters from the image

Open anchor to this point in the page Purpose

The anchor tag makes a proper anchor link to an anchor on the same page

Open anchor to this point in the page How to use?

Insert the tag into your template/page like:

  1. {anchor anchor='here' text='Scroll Down'}

In the pagesource you will get:

  1. <a href="/path/to/current/page#here">Scroll Down</a>

Open anchor to this point in the page Available parameters

  • anchor (required) - The name of the anchor where to link to. Is is the part after the #.
  • text (required) - The text to display in the link.
  • class - The class for the link.
  • title - The title to display for the link.
  • tabindex - The numeric tabindex for the link.
  • accesskey - The accesskey for the link.
  • onlyhref - Only display the href and not the entire link. No other options will work
  • assign - Assign the results to the named smarty variable.

Open anchor to this point in the page Syntax examples

  1. {anchor anchor='here' text='Scroll Down' class='myclass' title='mytitle' tabindex='1' accesskey='s'}
  1. {anchor anchor='here' text='Scroll Down' onlyhref='true'}
  1. {anchor anchor='here' text='Scroll Down' assign='foo'}