Home Blog Documentation Download Features Forum Users Contact
Documentation

CMS

CMS node tree and user management functions

cms_absolute

Returns absolute URL for site relative URL

cms_absolute_callback

Callback used by g_absolute

cms_actions

Returns all actions available in the templates

cms_allowed

Returns SQL query for checking tag based access for selected node

cms_cache_id2path

Returns cached path for specified node's ID

cms_children

Returns subnodes of specified type for specified node

cms_counts

Counts sub nodes of specified type for specified node's ID

cms_current_url

Returns current URL with server name and port (if necessary)

cms_get_components

Gets CMS path components from `REQUEST_URI` Prepares $cms_action, $cms_args, $cms_query and $cms_lang for auto-language

cms_get_path

Returns path or full URL to current node or specified components

cms_get_user

Loads currently logged user from the database

cms_has_action

Checks whether specified action for specified type does exist

cms_init_cache

Initializes cache with values available already on the stack

cms_lang

Loads language pack for language requested in the config file If language is auto, language is taken from the 1st path's component.

cms_limit_files

Checks whether the POST FILES match the limits given as parameter.

cms_move_node

Moves specified node into the other node

cms_parent

Returns parent of specified node

cms_position

Returns index (position) of the node in the siblings

cms_server

Return URL prefix for current site containing hostname

cms_stack_from_components

Loads node and its ancestors from the database from input path components

cms_tags

Returns a tag (access) array for specified node's ID

cms_templates

Filters available template files

cms_types

Returns all types available in the templates Excluding `user` type, which is special internal type

cms_update_last

Updates last timestamp for node and its parents and grand-parents, excluding root

cms_user_id

Gets currently logged user ID