anchor tag
Welcome to the official CMS Made Simple documentation pages. We make a continuous effort to keep the information here up to date! However, dear user, we highly value your assistance in the process.
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.
Purpose
The anchor tag makes a proper anchor link to an anchor on the same page
How to use?
Insert the tag into your template/page like:
- {anchor anchor='here' text='Scroll Down'}
In the pagesource you will get:
- <a href="/path/to/current/page#here">Scroll Down</a>
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.
Syntax examples
- {anchor anchor='here' text='Scroll Down' class='myclass' title='mytitle' tabindex='1' accesskey='s'}
- {anchor anchor='here' text='Scroll Down' onlyhref='true'}
- {anchor anchor='here' text='Scroll Down' assign='foo'}
Previous page: Tags in the CMSMS CoreNext page: breadcrumbs tag




