Tags | Halogy User Guide

Tags

Tags are used to get dynamic content in to your Templates and Includes. For example, if you want to output a list of your pages, then you simply create a UL and then use the {navigation} tag inside, or if you want to output the name of the page you can use the {page:title} tag. Most tags will only work from within a Template or Include, but some tags will work at block level for example image tags.

Table of Contents


General Tags

{blockX} - For multiple editable regions, where X is the number of the region.
{image:REFERENCE} - Produces an image based on the reference
{thumb:REFERENCE} - Produces an thumbnail based on the reference
{file:REFERENCE} - Produces a download link for a file based on the reference
{include:REFERENCE} - Produces code from an Include based on the reference
{webform:REFERENCE} - Produces a web form based on the reference


Page Tags

{page:title} - Title of page
{page:heading} -Heading of page (used by modules)
{page:description} - Description of page (meta)
{page:keywords} - Keywords / tags (meta)
{page:date} - Date page was created
{page:date-modified} - Date page was last modified
{page:uri} - URI or path of page
{page:uri-encoded} - Encoded URI or path of page
{page:uri:segment(1)} - The first segment of the URI (the parent)
{page:uri:segment(2)} - The second segment of the URI (the nested page)
{page:uri:segment(3)} - The third segment of the URI


Navigation Tags

{navigation} - Navigation items in list format without enclosing UL
{navigation:parents} - Just the parents (no children or sub-navigation)
{navigation:children} - Just the children of the currently active parent page


Site Tags

{site:name} - Name of website
{site:domain} - Domain of website
{site:url} - URL of website
{site:email} - Email of website
{site:tel} - Telephone number of website
{site:currency} - Currency of website
{site:currency-symbol} - Currency symbol of website (e.g. $)


User Session Tags

{userdata:id} - ID of logged in user
{userdata:email} - Email of logged in user
{userdata:username} - Username of logged in user
{userdata:name} - Full name of logged in user
{userdata:first-name} - First name of logged in user
{userdata:last-name} - Last name of logged in user


Date Tags

{date} - Today's date based on site preferences (e.g. time zone and MMDD order)
{date:unixtime} - Today's date in a UNIX time


Headline Tags

{headlines:MODULE} - Show headlines based on module reference
{headlines:MODULE:category(REFERENCE)} - Shows headlines based on category
{headlines:MODULE:category(REFERENCE):limit(5)} - Shows headlines based on category with a limit
{headline:title} - Title of headline (e.g. the blog post)
{headline:link} - Link to the headline article
{headline:date} - Date that headline article was posted
{headline:day} - Day the headline article was posted (DD)
{headline:month} - Month the headline article was posted (MMM)
{headline:year} - Year the headline article was posted (YY)
{headline:body} - Body of the headline article
{headline:excerpt} - Excerpt of the headline article
{headline:comments} - Number of comments the headline article has (for Blog module)
{headline:author} - Full name of the author of the headline article
{headline:author-id} - ID of the author of the headline article
{headline:class} - Alternate class of the headline (e.g. even articles get a class of 'alt')

NOTE: Headlines are loop tags which must be closed at the end of the loop using the same opening tag (e.g. {/headlines:MODULE}).


Misc Tags

{errors} - Any errors that might have resulted from a posted form
{message} - Any message (usually a success) that might have resulted from a form
{clear} - Produces code that rectifies any image alignment problems
{more} - Produces a link to the blog post (for Blog module)
{logged-in} - Boolean for whether the user is logged in or not
{admin} - Boolean for whether the user is an administrator or not
{ajax} - Boolean for whether the request is AJAX or not
{mobile} - Boolean for whether the browser is a mobile or not