常用标签:{AJAX}, {info}, {content}, {custom}, {tags}, {sort}。

关于{custom}的所有参数必须填齐,还有越多的custom就越加重服务器的负载,原为是一个custom就会多一次的数据库查询,限定在哪个页面显示是参数avable, 限定在哪个分类显示是参数category,template是用来循环输出的模板,循环的内容由category来决定

{info}最好放在{content}前,这些是显示错误信息,404,error等内容。

[aviable=section]Text[/aviable],正如上面所说,是决定标签内所有内容显示在哪个页面上。

最后是{include=”custom.tpl”},include相当于PHP的include,只是引入代码,如果你要在main中include,那么被引入的代码custom里的所有标签都应该是在main中可用的,而{custom}中引入的代码是执行{custom}后的结果。还有custom支持shortstory.tpl的大部份标签,但不支持main的标签,注意区分:

--------------------------------------- 以下是这些标签的英文资料 ---------------------------------

The basic layout of your page in the template file main.tpl This file loads the engine in the first place and connect it to any other engine components, which is the main file to load all modules and deisplay results. {AJAX}, {info}, {content}, {custom} these tags are used for the correct News conclusions.

Tag{AJAX} acquires and prints the group of javascript necessary for normal functioning of the engine in general and AJAX technology in particular as well as jquery in 9.x version. Recommended to be placed at the beginning of the template after the tag <body>

Tag {info}displays and hadling the engine information and errors on the actions performed (such as "Login failed, bad password" or "All fields" etc.). This tag is recommended to be placed before the tag{content}

Tag {content}, is used for the general engine and content and display of articles and other built-in modules in the engine

Tag {tags}, is used for the list of the tag cloud (specific keywords and tag clouds in the news)

Tag [sort]{sort}[/sort], is used for selection of news sorts page which allow to be viewed and sorted in different orders.

Tag{custom}, is used to display the news or items in a custom format which has the following options:

{custom category="2,7" template="custom" aviable="global" from="0" limit="10" cache="yes"}

Options

category is a list of category ID to be displayed news, separated by comma (,) and no spaces allowed.

template is the template file that will be used to display the news in this case it will custom.tpl, if you are using multiple templates on the site, this file must be created in each template. This template uses tags similar to the short news.

aviable option is to specify which section will be displayed when you browse inside your website. The available options as following:

global - all sections in the entire website

main  - only in the main page

date  - when viewing news for some dates

cat  - when viewing category

showfull - when viewing the full news

search - when viewing search and search results

userinfo  - when viewing user info and profile

register - show in the registration page

stats - when viewing site statistics

pm - when viewing personal message (PM)

feedback - when using feedback/contact form

favorites - when viewing bookmarks/favorite page

newposts - when viewing the new posts

addnews - when adding news to the site

lastcomments - when viewing the most recent comments

static - when viewing static pages

catalog - when viewing the page directory

alltags - when viewing the tag cloud page

tags - when viewing the news from the tag cloud

You can combine the multiple sections by using the "|" symbol, for example aviable="userinfo|register|main" will show custom page when view user profile, site registration and main homepage. (the options should not use any spaces between section names)

from is used for specific number of ariticle to start or begin with (0 is started from the first article)

limit is to specify how many items or articles will be displayed

cache (only accept the value yes or no - is to sets the output to cache or not cache is recommended to reduce the load.

Caution: You must specify all the parameters required and must comply with the order

Note: remember that each use of the {custom} tag creates an additional load on the database, because is an additional display of the same news or article, so use it wisely if you want to save on resources.

Tag[aviable=section]Text[/aviable], displays the text concluded in tag if the specified section(s) of the site can be seen and displayed:

The tag available options are similar aviable to sections listed above for {custom} tag.

for example:

[aviable=userinfo|register|main] Text [/aviable]

This will display the text enclosed within tags when viewing a user profile, during registration and in the main page.

Additional Tag: you can also specify the tag [not-aviable=userinfo|register|main] Text [/not-aviable] which is completely opposite to the "aviable" tag and display text aviable everywhere except the listed sections.

Tag [category=X]Text[/category], displays a text enclosed in tags can be seen if the specified category.

Tag uses a category ID кand allows the multiple categories to be specified:

[category=1,2,3] Text [/category]

This will display the text enclosed in tags, if a user browses category whatever category ID is equal to 1 or 2 or 3.

Additional Tag: you can also specify the tag [not-category=1,2,3] Text [/not-category] which is completely opposite to the tagcategory and display the text everywhere except for these specified categories.

Tag [group=X]Text[/group], displays the text concluded in tag if the user belongs to a specified usergroup members:

Tag uses a group ID and allows the multiple groups to be specified

[group=1,2,3] Text [/group]

This will display the text enclosed in tags, if the user is an administrator, Moderator or editor.

Additional Tag: you can also specify the tag [not-group=1,2,3] Text [/not-group] which is completely opposite to the tag group and display text for all groups except the listed groups.

{banner_name} this tag is to display the advertising information on this site. The name of banner is generated in Advertising Module within Admin CP.

{inform_name} this tag is to display the RSS informers and news from other sites. Name and all the settings for this tag set in Admin CP.

[static=Page Name] Text [/static]

display the text enclosed in tags, if a visitor views a static page with the specified name.

[not-static=Page Name] Text [/not-static]

will display the text enclosed in tags, if the visitor view the other static page than static page with the specified name.

You can also add one theme files to another file, using the tag {include file="my_block.tpl"} This tag attaches the file to the template my_block.tpl. The tag is intended easy to edit or modify the content separately if your site have the complext layout and styles with multiple tags..