System Tags

Overview

Cascade CMS recognizes specific XML elements called system tags that are used for dynamic content insertion. System tags are XML elements whose names begin with system-.

System tags may be used as content region tags, which are regions within templates where content can be inserted as static or dynamic content blocks, or as the result of a script format acting on a block.

System tags may also be used as metadata tags, where page information (title, author, publish date, etc.) can be used as shorthand on a page.

System Region Tags

System region tags are self-closing tags with a single attribute name that is used to specify the name of the region. This region name is used when viewing Templates, Configurations, and Pages.

            ...
	<div class="section section-white">
			<div class="container">
				<div class="row">
					<div class="col-md-6">
						<system-region name="DEFAULT"/>
					</div>
					<div class="col-md-6">
						<system-region name="SLIDER"/>
					</div>
				</div>
			</div>
		</div>
		<system-region name="SPOTLIGHTS"/>
		<system-region name="FOOTER"/>
		<system-region name="FOOTER JS"/>
	</body>
</html>
            
Note - All Templates are required to include a system-region named DEFAULT which is populated with content specific to pages that use the Template. Other region names can be used to create as many additional content regions as necessary. If a DEFAULT region doesn't exist when the Template is created, one will automatically be added immediately after the opening <body> tag.

Metadata Tags

Metadata tags allow for the insertion of metadata from the current page at render time without having to define a region to display the information. Users may accomplish this by including the following metadata tags in the template or in the page source code itself.

  • <system-page-name/> - the system name of the page asset
  • <system-page-title/> - the contents of the page's Title metadata field
  • <system-page-summary/> - the contents of the page's Summary metadata field
  • <system-page-author/> - the contents of the page's Author metadata field
  • <system-page-teaser/> - the contents of the page's Teaser metadata field
  • <system-page-keywords/> - the contents of the page's Keywords metadata field
  • <system-page-description/> - the contents of the page's Description metadata field
  • <system-page-display-name/> - the contents of the page's Display Name metadata field
  • <system-page-start-date/> - the page's Start Date, displayed in US date format MMM DD, YYYY hh:mm a (e.g. Jul 3, 2017 1:00 AM)
  • <system-page-end-date/> - the page's End Date, displayed in US date format MMM DD, YYYY hh:mm a
  • <system-page-meta-date/> - the current time when the page is rendered, displayed in US date format MMM DD, YYYY hh:mm a

There are two additional tags which are used to produce HTML meta elements in published pages.

  • <system-page-meta-keywords/> - Use this element to produce the standard HTML meta keyword element (e.g. <meta name="Keywords" content="cms, software" />). HTML meta keywords are useful for indexing content and some search engine technologies will also use page keywords for archiving content.
  • <system-page-meta-description/> - Use this element to produce the standard HTML meta description element (e.g. <meta name="Description" content="Cascade CMS content." />). Certain search engines use this tag as additional information about a page.