General tags
These tags work on any page of your site.
Tag |
Description |
{META} |
Displays meta tags for search engines. Placed before the closing tag . |
{STYLES} | Displays the system styles of the system, including the styles of other plugins and modules. |
{SCRIPTS} | Displays system scripts of the system, including scripts of other plugins and modules. |
{SYSTEMS} | Outputs the code necessary for the correct operation of the system. |
{THEME} | Outputs the path to the template folder. For example //site.com/templates/Default |
{CONTENT} |
Displays content. Posts, pages, etc. |
{crumbs} |
Bread crumbs. |
{filter} |
Filter. |
{user-name} |
Displays the username. |
{user-role} |
Displays the user's group. |
{user-link} |
Displays a link to the user's profile. |
{user-avatar} |
Displays a link to the user's avatar. |
{auth} |
Outputs authorization and registration forms from the file login.tpl. |
{include file="inc/header.tpl"} |
Include file located at template path/inc/ header.tpl PHP extension is allowed. If the first slash is used, the path to the file will be taken from the root. |
Conditional tags Adding the prefix not- means the reverse, do not display the content. |
|
[category=1.2-5.10].. .[/category] [not-category=1.2-5.10]...[ /not-category] |
Will display the content between the tags if we are in the categories listed in the attribute. |
[page=Page Title]... content...[/page] [not-page=Page title]...content...[/not-page] |
Displays content if the user is on a static page named (Page Name). Conversely, will not display content if the name matches. |
[show=index,category]...[/show ] [not-show=index]...[/not-show] |
Displays the content between the tags if the page type matches the one specified in the attribute. For example: index,category - will display content if the user is on the main page or in the category. |
Possible options for the show | Standard options. These names correspond to the names of the controllers. index - the main page of the site category - the category page post - post (full news) page - static page search - search page If you have plugins installed, they have controllers . The name of the controller can be found in the assistant by enabling the option in the system settings. It will appear on every page at the bottom. So the tag will look like this: [show=plugins\Celena\Shop\Product]...[/show] |
[role=0,1]...[/role ] [not-role=0,1]...[/not-role] |
Displays the content between the tags if the user group matches the specified IDs in the attribute. For example: 0,1 - will display content if the user is in the guest and administration groups. 0 - guest. 1 - administrator. |
{custom} |
{custom category="1,2-10" template="simple" limit="10" sort="desc"} - a complete set of parameters . category - the ID of the category or categories separated by commas, from which posts will be received. template - the tpl name of the template . limit - the number of posts to be displayed. sort -sorting: id - for ID news. title - by the title of the news. date - by publication date. modify - for even changes. rating - behind the rating. order - sort order: desc - by decreasing. asc - by growth. |
{customcomments} |
{customcomments category="1,2-10" template="simple" limit="10" sort="desc"} - a complete set of parameters . category - the ID of the category or categories separated by commas, from which comments will be received. template - the tpl name of the template. limit - the number of comments to display. sort - sorting will continue... |
{langurl-ua} | This tag will link to this page, changing the language to your preferred one. |
[lang=en]...content ...[/lang] |
Will display the content between the tags if the user is on the English 2.3.5. en is the language code added to the panel for the site. |
[mobile]...content...[/mobile] [not-mobile]...content...[/not-mobile] |
Displays content if the page is viewed from a mobile device. Or vice versa from a desktop. |
{user-name} |
Username. |
{user-role} |
User group. |
{user-link} |
Link to user profile. |
{user-avatar} |
Link to user avatar. |
{ pagination } |
If the page has a news feed, this tag will display the navigation. |
{lang-head} |
Will output the language code, for example ua. |
{global:name} {global [src]:name} or {global[src-thumb]:name} |
Displays the value of the global optional field with the label name. If the optional field is an image, only the link to it or the link to the thumbnail can be displayed . |
{tags} | Displays all tags with links. |