Global variables
- {$id} - ID number of active object, value of "id" parameter in the URL
- {$meta_title} - HTML title of the website, before 4.5.0 use {$title}
- {$meta_keywords} - HTML meta keywords of the website
- {$site_name} - site title, 4.5.0
- {$site_slogan} - site slogan, 4.5.0
- {$meta_description} - HTML meta description of the website
- {$encoding} - HTML encoding of the website
- {$lang} - abbreviation of current website language, eg "EN"
- {$protocol} - protocol value from site configuration settings, default value: "http://"
- {$hostname} - website hostname, eg "www.yoursite.com"
- {$wwwroot} - website root folder, eg "/"
- {$img_path} - path to the images folder, default value: "/px"
- {$custom_img_path} - path to the custom images folder, default value: "/px_custom"
- {$adm_img_path} - path to the admin images folder
- {$styles_path} - path to the default styles folder
- {$js_path} - path to the default javascripts folder
- {$file_path} - path to the uploaded files folder
- {$self} - current script name, used in form actions eg "index.php"
- {$url} - current URL
- {$current_level} - current level in site hierarchy (level of the section)
- {$current_class} - class name of current active object. Holds one value from list "section, article, link, image, comment, poll, document, article's list, link list, login-box, subject, album, iframe-box, event, asset, productcategory". An active object is defined with ID parameter in the URL. Sample: if the current section with ID=123 is displayed /?id=123, {$current_class} has a value of "section".
- {$op} - value of "op" parameter in the URL
- {$tpl} - ID number of the current SAPI page template
- {$c_tpl} - ID number of the current SAPI content template
- {$page_tpl} - name of the current SAPI page template
- {$content_tpl} - name of the current SAPI content template
- {$admin} - value 1 if site editor is logged in, 0 otherwise
This functionality is deprecated in version 4, use {$in_editor} and {$user} tags instead. - {$in_editor} - value 1 if user is in the editor environment, 0 otherwise. 4.0.15
- {$user} - value 1 if registered user is logged in, 0 otherwise
- {$userdata->all} - array of the currently logged in user data. Sample: {$userdata->all.email}
- {form_error} {form_data} - for handling all form responses and error messages. 3.3.1
- {$ext_id} - value of "ext_id" parameter in the URL
- {$prod_id} - value of "prod_id" parameter in teh URL, for displaying current product ID number
- {$EXTENSION_NAME} - array of the extension's configuration data. Sample: variable {$SAURUS4} contains all information from file "extensions/saurus4/extension.config.php" 4.0.15
- {$template->id} - current templates ID 4.5.0
- {$template->title}, {$template->name} - current templates name 4.5.0
- {$template->op} - current templates "op" value 4.5.0
- {$template->extension} - name of the extension which current template belongs to 4.5.0