Aptuitiv Studio Documentation

Global Tags

Global Tags are a set of tags that are available on every Content Template, Navigation Template, Widget Template and Page Content Block Layout 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.

Time Tags

These tags are used to work with the current time.

Tag Description
{#global.currentTimestamp} 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.currentTimestamp|date format="M d, Y"}
That will output the current date as "Sep 10, 2010".

Account / Contact Tags

These tags are used to work with public user accounts.

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.displayName} Type: String
Description: Holds the name of a logged in user.
{#global.user.firstName} Type: String
Description: Holds the first name of a logged in user.
{#global.user.isLoggedIn} Type: Boolean
Description: Holds whether or not the current public user is logged in.
{#global.user.lastName} Type: String
Description: Holds the last name of a logged in user.

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
Description: Holds any query parameters in the URL.  These are anything after the ? in the URL.  These are also know as GET request paramters.
Example URL: http://www.mysite.com/page?msg=hello
With the above URL the "msg" parameter would be available as {#global.request.get.msg} and that tag would output "hello".
{#global.request.post} Type: Array
Description: Holds any POST parameters.  These values would be the result of a form submitted.