Guide Category

134

main.tpl

The main engine uses the file main.tpl to display the results and query in main page also known as master page, this section contains the set up the basic page of your templates and master page where it display other components of the engine. Edit this section is not recommended without knowledge of HTML, because it uses the field names are passed to the script via a form, in other terms, you can edit the text on your own, but do not change the field names, this is extremely important.
dlestarter
main.tpl The main engine uses the file main.tpl to display the results and query in main page also known as master page, this section contains the set up the basic page of your templates and master page where it display other components of the engine. Edit this section is not recommended without knowledge of HTML, because it uses the field names are passed to the script via a form, in other terms, you can edit the text on your own, but do not change the field names, this is extremely important.
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.

Related Tutorials

Review/Leave Comment

comments powered by Disqus