dlecms chinese website » help center » template making » main.tpl- main engine file (main content template)
shangrui yunyun server 150 yuan /from the year- iis.sryun.net

july 07 2022

main.tpl- main engine file (main content template)

admin 7-07-2022, 16:15 help center / template making 1 431

main engine usage files main.tpl show results and queries in the main page (also known as master page), this section contains the basic page and master page for setting the template, which displays other components of the engine.don't understand HTML in the case of this section, it is not recommended to edit this section because the field name it uses is passed to the script via the form, in other words, you can edit the text yourself, but it is very important not to change the field name.


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.

comment:

there are no comments on this article. you can be the first commenter!

article information:

  • article author: admin
  • release date: 07 july 2022 16:15
  • article category: help center / template making
  • number of views: 1 431
  • number of comments on articles: 0

related articles

07 july 2022
template making
fullstory.tpl- complete news article module

complete news or fullnews is the main module for displaying the full article and the full description, this complete news will use the topic file fullstory。 tpl,inside category if you specify a different theme file, then they will use the fullstory same marks in.

En savoir plus
07 july 2022
template making
feedback.tpl

in your Datalife in the engine, contacts or feedback comes from used to send emails to administrators, or any member is using feedback from the file. third-party logistics. in this section, customizable templates are provided for derive the form to send emails.

En savoir plus
07 july 2022
template making
addnews.tpl

adding or submitting news or articles from the homepage is to use the topic file addnews。 third-party logistics. in this section, customizable templates are described for website visitors to add news to the database.

En savoir plus
07 july 2022
template making
addcomments.tpl

exist Datalife Engine you can allow the use of the theme file addcomments the form in add a comment to your website. third-party logistics. in this section, customizable templates are provided that are used when a site member or visitor adds comments to the database.

En savoir plus
06 april 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

add a comment

search

navigation

connect

working hours

be sure to read before contacting the support teamfaq:partly, because your question may have been answered there.

calendar

«    april 2025 »
on mondaytuesdaywednesdaythursdayfridaysaturdaysunday
 123456
78910111213
14151617181920
21222324252627
282930 

advertise

investigation

which column do you prefer on the website?
 

tags

popular

latest news