CMSMS tags in the templates

Here we explain the tags that are used in the default templates that are specific to templates in CMS Made Simple. The rest of the templates is just pure HTML. You can read more about that in the documentation wiki(external link).

Page title

<title>{sitename} - {title}</title>

For each page using this template, these tags are replaced with the site name you specify in Site Admin/Global settings and the title you specify when you add/edit each page.

Read more about the {sitename} and {title} tags in Extensions/Tags in the Admin Panel.



This tag adds to your page any metadata that you have specified in Site Admin/Global settings and also page specific metadata that you can add under the Options tab when adding/editing a page.

It is also used for knowing the base folder for your site when using pretty URLs. So don't remove this if you use Pretty URLs!

Read more about the {metadata}tag in Extensions/Tags in the Admin Panel.



This tag links to all stylesheets that you have attached to a template. It means that you only have to add this tag once and all attached stylesheets will be linked to automatically.

Read more about the {stylesheet} tag in Extensions/Tags in the Admin Panel.

Relational links

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}

These are relational links for interconnections between pages, which is good for accessibility and Search Engine Optmization

Read more about the {cms_selflink} tag in Extensions/Tags in the Admin Panel.

Page width in Internet Explorer

<script type="text/JavaScript">
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
	var nw="auto",w=document.documentElement.clientWidth;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}

This isn't a tag really, but displays how to insert JavaScript in a CMSMS template.

The default templates use elastic page width. But Internet Explorer doesn't understand min-width and max-width, so for that browser the min and max page width is set with this JavaScript. For other browsers the page width is set in the stylesheets beginning with "Layout: ..."

Skip links for accessibility

{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}

Anchor links (links to an anchor in the same page) are inserted with the {anchor} tag. In the default templates this is used for skip links that are visible to screen readers, but hidden with CSS to visual browsers.

Read more about the {anchor} tag in Extensions/Tags in the Admin Panel.

Header with logo image that links to default page

{cms_selflink dir="start" text="$sitename"}

In the <h1> tag (hidden by CSS) is a link to the page that is selected as the default page. The dir="start" parameter in the {cms_selflink} tag is used for this. To get the site name as the text for the link, the $sitename variable is used.

Read more about the {cms_selflink} tag in Extensions/Tags in the Admin Panel.



To insert a search form on your site, simply use the {search} tag. Search is actually a module and should therefore be called as a parameter in the {cms_module} tag, like this: {cms_module module='search'}. But to simplify matters, we did a wrapper tag so that it's easier to remember.

Read more about the Search module in Extensions/Modules in the Admin Panel.


{breadcrumbs starttext='You are here' root='Home' delimiter='»'}

Breadcrumbs is a path to the current page. In the default templates we have chosen to put the text 'You are here' before the path and force 'Home' to always be the root in the path, even if it isn't. With the delimiter parameter you can select the delimiter that separates entries in the path.

Read more about the {breadcrumbs} tag in Extensions/Tags in the Admin Panel.


{menu template='simple navigation.tpl' collapse='1'}

This is how you insert a menu where you want it to appear. Like the {search} tag, this is actually just a wrapper tag, as the Menu Manager is a module.

In the default templates the menu manager template that is used for the menus are stored in files. That's why you see the .tpl extension in the templare parameter. But you can easily import menu templates to the database and edit them directly in the Admin Panel. Then you simply omit the .tpl extension in the tempalte parameter.

Read more about the Menu Manager module in Extensions/Modules in the Admin Panel.


{news number='3' detailpage='news'}

This tag will display the last three news articles. When clicking a news article to read the details, it is opened on the page with the page alias 'news'. That's what the detailpage parameter is doing.

Like all core modules there is a wrapper tag for the News module, to make it easier to use.

Read more about the News module tag in Extensions/News in the Admin Panel.

Print button

{print showbutton=true script=true}

The {print} tag is used to insert a print link. With the showbutton parameter set to true we have told the tag to output a button instead of text. The script parameter set to true means a the print dialog window opens when clicking the button, for immediate printing.

The {print} tag prints everything that is in your {content} tag, that is only the content for a page.

Read more about the {print} tag in Extensions/Tags in the Admin Panel.

Page content


Maybe the most important tag in your template. Where you put the {content} is where the content for your page will appear.

We have also chosen to put the page title on every page (the {title} tag), so that you don't have to put that in the content for every page.

Read more about the {content} and {title} tags in Extensions/Tags in the Admin Panel.

Previous/next links

{anchor anchor='main' text='^ Top'}
{cms_selflink dir="previous" label="Previous page: "}
{cms_selflink dir="next"}

Some more internal links. These are using the dir parameter to link to the previous and next pages in the page hierarchy (separators and section headers will be omitted as they are no pages).

Page footer

{global_content name='footer'}

Instead of bloating your template with lots of code you can put some code in a Global Content Block. Then call that Global Content Block with the {global_content} tag. It's also useful for content or HTML code that is reused on several pages or templates.

In the default templates we have put the footer text in a Global Content Block with the name 'footer'. You find the Global Content Blocks in the Content menu in the Admin Panel.

Read more about the {global_content} tag in Extensions/Tags in the Admin Panel.

Search Engines
Search in the website
Search in whole web


PubMed New and Noteworthy

Batch Citation Matcher Update

- Wed, 07 Apr 2021 16:00:00 EST

MeSH Updated

- Mon, 14 Dec 2020 09:00:00 EST

Legacy PubMed Retired

- Mon, 02 Nov 2020 15:00:00 EST

Clinical Queries Update

- Mon, 19 Oct 2020 15:00:00 EST

PubMed Updates and Retirement of the Legacy Site

- Wed, 07 Oct 2020 11:00:00 EST

Publication Date Custom Range

- Wed, 09 Sep 2020 14:00:00 EST

My NCBI Highlighting Preference

- Tue, 18 Aug 2020 14:00:00 EST

Abstract Related Information Update

- Tue, 11 Aug 2020 10:00:00 EST

Display format Update

- Tue, 11 Aug 2020 10:00:00 EST

Summary results without snippets

- Mon, 27 Jul 2020 16:00:00 EST

Updated Sort & My NCBI Alerts

- Tue, 21 Jul 2020 10:00:00 EST

RSS Feeds in PubMed

- Thu, 16 Jul 2020 09:00:00 EST

Send to Email Update

- Wed, 15 Jul 2020 10:00:00 EST

PubMed Related Information Links

- Fri, 12 Jun 2020 11:00:00 EST

New PubMed to Replace Legacy PubMed in Mid-May

- Fri, 17 Apr 2020 10:00:00 EST

New responsive PubMed site replaces PubMed Mobile

- Mon, 06 Apr 2020 08:00:00 EST

The New PubMed Updated: Summary Display with Full Author List, Send to: Citation manager, PubMed Format, and More

- Tue, 17 Mar 2020 10:00:00 EST

Thanks for Your Feedback on the New PubMed

- Thu, 27 Feb 2020 16:00:00 EST

New PubMed Features Added

- Fri, 17 Jan 2020 11:00:00 EST

MeSH Updated

- Mon, 16 Dec 2019 16:00:00 EST

The New PubMed is Here

- Mon, 18 Nov 2019 11:00:00 EST

Webinar Recording "A New PubMed: Highlights for Information Professionals"

- Wed, 09 Oct 2019 11:00:00 EST

New PubMed Updated: Homepage, User Guide, My NCBI Alerts and Collections, and More

- Tue, 08 Oct 2019 09:00:00 EST

Webinar Recording "An Updated PubMed is on its Way!"

- Tue, 20 Aug 2019 18:00:00 EST

PubMed Labs Update: Using Filters

- Tue, 06 Aug 2019 11:00:00 EST

Library LinkOut using Outside Tool

- Mon, 08 Jul 2019 09:00:00 EST

PubMed Update: MLA 2019

- Wed, 15 May 2019 10:00:00 EST

Biology News Net - Bioinformatics

Giraffes more speciose than expected

- Thu, 08 Sep 2016 19:41:13 -0500

Artificial intelligence expedites breast cancer risk prediction

- Mon, 29 Aug 2016 18:12:50 -0500

Warbler genomes look to be 99.97 percent alike

- Tue, 23 Aug 2016 18:09:19 -0500

Genomics solutions to the riddle of the tobacco hornworm sphinx moth

- Mon, 15 Aug 2016 18:29:45 -0500

Every grain of rice: Ancient rice DNA data provides new view of domestication history

- Wed, 27 Jul 2016 17:24:16 -0500

Quantitating the complete human proteome

- Mon, 25 Jul 2016 18:09:06 -0500

Genome of 6,000-year-old barley grains sequenced for first time

- Mon, 18 Jul 2016 18:59:16 -0500

How do you turn a mosquito's genes on and off?

- Mon, 11 Jul 2016 17:01:30 -0500

A 'big data' approach to developing cancer drugs

- Fri, 08 Jul 2016 18:38:05 -0500

New technique sorts drivers from passengers in cancer genomics, implicates GON4L

- Wed, 29 Jun 2016 16:50:44 -0500

Biology News Net - Biotechnology

More tomatoes, faster: Accelerating tomato engineering

- Tue, 30 Aug 2016 17:36:48 -0500

Purest yet liver-like cells generated from induced pluripotent stem cells

- Mon, 29 Aug 2016 18:12:49 -0500

Analog DNA circuit does math in a test tube

- Tue, 23 Aug 2016 18:09:18 -0500

CRISPR-Cas9 breaks genes better if you disrupt DNA repair

- Wed, 17 Aug 2016 18:43:31 -0500

Legions of nanorobots target cancerous tumors with precision

- Mon, 15 Aug 2016 18:29:44 -0500

CRISPR gene editing reveals new therapeutic approach for blood disorders

- Mon, 15 Aug 2016 18:29:44 -0500

Quantum dots with impermeable shell: A powerful tool for nanoengineering

- Thu, 11 Aug 2016 18:30:35 -0500

Directly reprogramming a cell's identity with gene editing

- Thu, 11 Aug 2016 18:30:34 -0500

Small molecules to help make SMARTER cereals

- Mon, 08 Aug 2016 17:16:50 -0500

Study shows cell-free DNA sequencing is more accurate for diagnosing myelodysplastic syndrome

- Tue, 02 Aug 2016 17:08:44 -0500