Print this page

Tags in the core

There are plenty of tags included with the CMSMS core. Some of them are demonstrated here, for any questions as to the parameters they can take or anything else please see the Tags Help.

{anchor}

Syntax used
{anchor anchor='here' text='Scroll Down' class='myclass' title='mytitle' tabindex='1' accesskey='s'}
Display
Creates a link to an anchor on the same page. Used for example for the ^Top link at the bottom of this page.

{breadcrumbs}

Syntax used
{breadcrumbs delimiter='»' initial='1'}
Display
Breadcrumbs are a navigational technique displaying all visited pages leading from the home page to the currently viewed page. You find it under the header on this page.

{cms_module}

Syntax used
{cms_module module='somemodulename' param1='something' param2=true}
Display
This tag is used to insert modules into your templates and pages. Used for any module that you download. In the default templates, wrapper tags are used for inserting modules though. That is, a tag is made to insert a cms_module tag.

{cms_selflink}

Syntax used
{cms_selflink page="1"} or {cms_selflink page="alias"}
Display
Creates a link to another CMSMS content page inside your template or content. Can also be used for external links with the ext parameter.
Example
Link to the modules page
This is an external link to the CMS Made Simple website(external link)

{cms_version}

Syntax used
{cms_version}
Display
Displays current version number of CMS Made Simple.
Example
See the footer on this page.

{cms_versionname}

Syntax used
{cms_versionname}
Display
Displays current version name of CMS Made Simple.
Example
See the footer on this page.

{adsense}

Syntax used
{adsense ad_client="pub-random#" ad_width="125" ad_height="125" ad_format="125x125_as"}
Display
This tag will take the basic parameters that would be provided by the Google adsense program and puts them in a easy to use tag that makes your templates look much cleaner.
Example

{current_date}

Syntax used
{current_date format="%A %d-%b-%y %T %Z"}
Display
Prints the current date and time.
Example
Tuesday 19-Mar-24 02:54:02 GMT

{edit}

Syntax used
{edit}
Display
Creates a link to edit the page in the Admin Panel, this can only be seen if you are also logged into the backend.
Example

{embed}

Syntax used
{embed url="http://www.cmsmadesimple.org"}
Display
Enable inclusion (embeding) of any other application into the CMS. The most usual use could be a forum.

{googlepr}

Syntax used
{googlepr}
Display
Display's a number that represents your google pagerank.

{global_content}

Syntax used
{global_content name='footer'}
Display
Inserts a Global Content Block (previously known as HTML blob) into your template or page. The code for the footer of this page is in a Global Content Block.

{menu_text}

Syntax used
{menu_text}
Display
Prints the menu text of the page.
Example
Tags in the core

{modified_date}

Syntax used
{modified_date format="%A %d-%b-%y %T %Z"}
Display
Prints the date and time the page was last modified.
Example
Tuesday 12-May-09 20:56:54 BST

{print}

Syntax used
{print}
Display
Creates a link to only the content of the page.
Example
Print this page

{google_search}

Syntax used
{google_search}
Display
Searches your website using Google's search engine.
Example

{startExpandCollapse} {stopExpandCollapse}

Syntax used
{startExpandCollapse id="expandcontent" title="Click Here"}Text here {stopExpandCollapse id="expandcontent" title="Click Here"}
Display
Enables content to be expandable and collapsable.
Example
Click Here
Here is some text that displays when expanded. Click the "Click here" link to collapse it again.

{site_mapper}

Syntax used
{site_mapper}
Display
Prints out a sitemap.
Example

{valid_xhtml}

Syntax used
{valid_xhtml}
Display
Creates a link to the W3C HTML validation service.
Example
valid XHTML 1.0 Transitional

Previous page: Tags
Next page: User Defined Tags