dlecms中文站 » 帮助中心 » 模板制作 » main.tpl-主引擎文件(主体内容模板)
尚睿云云服务器150元/年起-iis.sryun.net

七月 07 2022

main.tpl-主引擎文件(主体内容模板)

admin 7-07-2022, 16:15 帮助中心 / 模板制作 1 430

主引擎使用文件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.

评论:

本文还没有评论。您可以成为第一个评论者!

文章信息:

相关文章

07 七月 2022
模板制作
fullstory.tpl-完整新闻文章模块

完整新闻或fullnews是显示完整文章和完整描述的主要模块,此完整新闻将使用主题文件fullstory。 tpl,inside category如果您指定了不同的主题文件,那么它们将使用与fullstory中相同的标记。

En savoir plus
07 七月 2022
模板制作
feedback.tpl

在您的Datalife引擎中,联系人或反馈来自用于向管理员发送电子邮件,或者任何成员正在使用来自文件中的反馈。 第三方物流。 在本节中,提供了用于派生发送电子邮件的表单的可自定义模板。

En savoir plus
07 七月 2022
模板制作
addnews.tpl

从主页添加或提交新闻或文章是使用主题文件addnews。 第三方物流。 在本节中,介绍了网站访问者将新闻添加到数据库时使用的可自定义模板。

En savoir plus
07 七月 2022
模板制作
addcomments.tpl

在Datalife Engine中,您可以允许使用主题文件addcomments中的表单向您的网站添加评论。 第三方物流。 在本节中,提供了可自定义的模板,当网站成员或访问者向数据库添加评论时使用这些模板。

En savoir plus
06 四月 2020
wordpress
TopNews v3.3.4 - News

TopNews is a WordPress 5 compatible simple, feature-rich, user-friendly, fast-loading, customizable, functional

En savoir plus

添加评论

  • 人物和笑脸表情
    动物与自然情感
    食物和饮料表情符号
    活动表情
    旅游与地方情感
    对象表情
    符号表情符号
    标志表情符号

搜索

导航

联系

工作时间

在联系支持团队之前,请务必阅读常见问题:部分,因为那里可能已经回答了您的问题。

评论

日历

«    六月 2024    »
周一周二周三周四周五周六周日
 12
3456789
10111213141516
17181920212223
24252627282930

广告

调查

您更喜欢网站哪个栏目?
 

tags

热门

最新动态