Home Blog Documentation Download Features Forum Users Contact
Documentation

Test

Template test functions

t_clipboard

Tests if there's anything in the SESSION's clipboard

t_current

Tests if the current node has specified path

t_first

Tests if the current node is first subnode (element) when calling l_each

t_has

Tests if current node has specified tag (specified by name (slug), NOT title or number)

t_has_avatar

Tests if the specified node has an avatar

t_index

Tests if the current page is index page

t_inside

Tests if the current node is inside specified path

t_in_clipboard

Tests if current node is in the SESSION's clipboard

t_is

Tests if currently logged user has specified tag (specified by name (slug), NOT title or number)

t_lang

Tests if language pack having specified language code exists

t_last

Tests if the current node is last subnode (element) when calling l_each

t_locked

Tests if current node is locked (has locked status)

t_logged

Tests if there's an user logged into current CMS context

t_node

Tests if the current page is regular node

t_odd

Tests if the current node is an odd subnode (element) when calling l_each

t_own

Tests if current node is owner by user with specified identifier

t_owner_is

Tests if current node's owner has specified tag (specified by name (slug), NOT title or number)

t_pro

Tests if current CMSity license is Pro license

t_sticky

Tests if current node's position is less than 0, and will appear before regular nodes (having position 0 by default)

t_user

Tests if the current page is an user