主引擎使用文件main.tpl在主页面(也称为母版页)中显示结果和查询,本节包含设置模板的基本页面和母版页,其中显示引擎的其他组件。在不了解HTML的情况下,不建议编辑此部分,因为它使用的字段名称是通过表单传递给脚本的,换句话说,您可以自己编辑文本,但不要更改字段名称,这一点非常重要。
Tag Name | Description |
---|---|
{headers} | Displays meta tags generated by page encoding, title, keywords, description. It also includes all the necessary scripts. This tag is recommended to add in the template between the tags <head>. This tag is required in the template. |
{THEME} | Specify the path URL to the theme files |
{login} | Display the login block section |
{vote} | Displays the site votes block section |
{changeskin} | Display the list of templates to select and change |
{calendar} | Display news calendar |
{topnews} | Display the top news block which base on rating, comments, and most views within last 30 days |
{archives} | Display the news archives block |
{info} | Displays the site information and error messages if necessary. The tag must be included in your template. |
{content} | This tag will display the entire website content including news, feedback, registration, etc., usually it displays in main column of the template. The tag must be included in your theme unless if you use or add some tags or modules that don't need to generate the output in site content. |
{custom} | for more details please see "Basic Main tag and page displays " |
[aviable=section] Text [/aviable] |
for more details please see "Basic Main tag and page displays" |
{AJAX} | Includes all the necessary scripts for DLE and AJAX, connection required, and recommended placement in the top of the page, immediately after the tag <body>. This tag is required in the template. |
[group=X] Text [/group] |
Text output to a specific group of users. Where X is the group ID list, separated user group by commas |
[category=X] Text [/category] |
Designed for the text output as if the user viewing in the X category. Where X is category ID to display the text or content. Add category list ID separated by commas |
{banner_name} | This tag is designed to display advertising information on this site. The very name given for a banner for a special module in the Admin Panel. |
{inform_name} | This tag is used to display RSS informers and news from other sites. Name and all the settings for this tag set in Admin Panel script. |
[not-category=X] Text [/not-category] |
It is intended to display the text if the user is viewing the other pages, except in X category. where X is category ID. You can use multiple category list separated by commas |
[not-group=X] Text [/not-group] |
Display the text to all other group than X group you specified. Where X is the ID list, you can specify multiple group ID separated by commas for user group which the information IS NOT visible. |
[page-count=1,2,3] text [/page-count] |
Displays the text enclosed within tag, if the user is at a certain page number in the navigation on the news, regardless of the section of the site, where 1,2,3 is the number of pages to navigate. |
[not-page-count=1,2,3] text [/not-page-count] |
Displays the text published in the tags on any page number other than that of the tag, regardless of the section of the site, where 1,2,3 is the number of pages to navigate. |
[news=1,2,3] text [/news] |
Displays the text enclosed in them, if the visitor viewing the full news are specified in the tag's news, where 1,2,3 is news ID |
[not-news=1,2,3] text [/not-news] |
Displays text and any other pages not only look specified on the news tag. |
[tags=tag1,tag2,tag3] text [/tags] |
Displays the text enclosed in them when a visitor views pages with the listed key words from the tag cloud, where tag1, tag2, teg3 the key words from the tag cloud |
[not-tags=tag1,tag2,tag3] text [/not-tags] |
Displays text and any other pages other than those of the tag. |
[related-news] {related-news} [/related-news] |
Allow you to display unit similar/relate news when viewing the full news. These tags are useful for sites that want to display related news outside the template output the complete news (fullstory.tpl), for example in the sidebar on the site. |