Home Blog Documentation Download Features Forum Users Contact
Documentation

Get

Template data access functions

g

Gets the value of specified node's field (property)

g_absolute

Absolutifies all IMG and A tags' hrefs URLs. Usefull for RSS feeds that need all URLs to be absolute.

g_action

Gets current node's action name (first argument name), or 'view' is there're no query arguments

g_arg

Gets query argument value for current node's query

g_clipboard_count

Gets number of elements inside SESSION's clipboard

g_count

Gets number count of l_each elements

g_error

Gets error description string for specified error identifier

g_html

Escapes passed HTML code text that doesn't match configured allowed HTML tags

g_info

Returns path's information for specified file's path using PHP's pathinfo

g_lang

Gets currently loaded language pack language code

g_last

Gets the timestamp of the when user has last logged in to the site (exluding current login)

g_list_path

Gets the URL for node being list item inside of its parent using ?page=pagenum#itemnum suffix

g_num

Gets number of current l_each element

g_path

Gets current node path (URL) including action

g_smilies

Replaces all textual smilies with the images configured in the config file

g_tag_count

Gets count of current node's tags

g_term_title

Gets term's title for specfied term's name

g_user

Gets currently logged user field (property) HTML code