Global Tags
Global Tags are a set of tags that are available on every Content Template, Navigation Template, Widget Template, Page Content Layout Templates and other app templates.
They are accessed under the following tag {#global}.
Note, this means that you shouldn't create any Attributes with a layout key of "global" otherwise the value for that Attribute will be overridden by the Global Tag.
General Tags
| Tag | Description |
|---|---|
| {#global.pageTitle} | Type: String Description: Holds the page title for the current page being viewed on the public website. Usage: Simply use the tag as is: {#global.pageTitle} |
| {#global.pageUpdatedOnTimestamp} |
Holds the timestamp for when the newest element on the page was updated. Any of the components on the page could affect this value. Typical items that could affect this date is navigation items, navigation templates, templates, snippets, page content, app item content, and content templates. Type: Optional Options: Example: Output the date as Month/Day/Year {#global.pageUpdatedOnTimestamp format="M/d/Y"} |
| {#global.updatedOnTimestamp} | Holds the last modified timestamp for the item that is the focus of the page. That item could be Page content, a Blog post, a Gallery item, a Store category or another app item.
Type: Optional Options: Example: Output the date as Month/Day/Year {#global.updatedOnTimestamp format="M/d/Y"} |
Account Tags
These tags are used to work with public user accounts. For other Account values use the Account API.
| Tag | Description |
|---|---|
| {#global.loginUrl} | Type: String Description: Holds the URL to log into a public account. |
| {#global.logoutUrl} | Type: String Description: Holds the URL to log out of a public account. |
| {#global.user.isLoggedIn} | Type: Boolean Description: Holds whether or not the current public user is logged in. |
DateTags
These tags are used to work with the current date.
| Tag | Description |
|---|---|
| {#global.date.day} | Type: Integer Description: Holds the current day date with leading zeros. Example value: 14 or 09 |
| {#global.date.dayShort} | Type: Integer Description: Holds the current day date with no leading zeros. Example value: 14 or 9 |
| {#global.date.isWeekend} | Type: Boolean Description: Holds whether or not the current day is a weekend day |
| {#global.date.monthName} | Type: String Description: Holds the full month name for the current month. Example value: October |
| {#global.date.monthNameShort} | Type: String Description: Holds the abbreviated month name for the current month. Example value: Oct |
| {#global.date.monthNumber} | Type: Integer Description: Holds the current month number with leading zeros. Example value: 10 or 05 |
| {#global.date.monthNumberShort} | Type: Integer Description: Holds the current month number with no leading zeros. Example value: 10 or 5 |
| {#global.date.weekOfMonth} | Type: Integer Description: Holds the week number of the current week in the current month Example value: 2 |
| {#global.date.weekday} | Type: String Description: Holds the full weekday name for the current day. Example value: Thursday |
| {#global.date.weekdayAbbr} | Type: String Description: Holds the abbreviated weekday name for the current day. Example value: Thu |
| {#global.date.weekdayLetter} | Type: String Description: Holds the single letter for the weekday name for the current day. Example value: T |
| {#global.date.weekdayNumber} | Type: Integer Description: Holds the weekday number for the current day. Example value: 5 |
| {#global.date.weekdayShort} | Type: String Description: Holds the abbreviated weekday name for the current day. Usually 2 or 3 letters. Example value: Thu or Fri |
| {#global.date.year} | Type: Integer Description: Holds the 4 digit year for the current year. Example value: 2010 |
| {#global.date.yearShort} | Type: Integer Description: Holds the 2 digit year for the current year. Example value: 10 |
Time Tags
These tags are used to work with the current time.
| Tag | Description |
|---|---|
| {#global.time.ampm} | Type: String Description: Holds Uppercase Ante meridiem and Post meridiem. Example value: AM or PM |
| {#global.time.hour} | Type: Integer Description: Holds the 24-hour format of an hour with leading zeros. Example value: 08 or 15 |
| {#global.time.hour12} | Type: Integer Description: Holds the 12-hour format of an hour with leading zeros. Example value: 08 or 11 |
| {#global.time.hourShort} | Type: Integer Description: Holds the 24-hour format of an hour with no leading zeros. Example value: 8 or 15 |
| {#global.time.hourShort12} | Type: Integer Description: Holds the 12-hour format of an hour with no leading zeros. Example value: 8 or 11 |
| {#global.time.military} | Type: Integer Description: Holds the full military time with the hour and minute with leading zeros. Example value: 0930 or 1415 |
| {#global.time.minute} | Type: Integer Description: Holds the minute with leading zeros. Example value: 05 or 32 |
| {#global.time.minuteShort} | Type: Integer Description: Holds the minute with no leading zeros. Example value: 5 or 32 |
| {#global.time.second} | Type: Integer Description: Holds the second with leading zeros. Example value: 02 or 45 |
| {#global.time.secondShort} | Type: Integer Description: Holds the second with no leading zeros. Example value: 02 or 45 |
| {#global.timestamp} | Type: Integer Description: Holds the current Unix timestamp. Usage: You can use this tag to output the current date or type by using the date variable modifier. Example: {#global.timestamp|date format="M d, Y"} That will output the current date as "Feb 06, 2012". |
GET and POST Request Parameter Tags
These tags allow you to access any GET or POST request parameters.
| Tag | Description |
|---|---|
| {#global.request.get} |
Type: Array |
| {#global.request.post} |
Type: Array |
| {#global.request.url} | Type: String Description: Holds the URL for the current page being viewed on the public website. It does contain any URL parameters. It does not contain the domain name. Usage: Simply use the tag as is: {#global.request.url} |
