DataLife Engine English Support Site » DatalifeEngine Help » Tags - part 1
Welcome,. Enter Username, or register.
Welcome,. Enter Username, or register.
ApadanaGroup's Hosting Services available now with Unbelievable LOW
PRICES,
Unlimited SPACE AND Unlimited Transfer ....Check it out !!!
http://unlimitpackage.net/
Tags - part 1
The basic design of your page is located in the file called main.tpl, and from it are connected all other components of the cms. Let's look at the basic tags from it.
{AJAX}, {info}, {content}, {custom} - these tags are required for the correct functions of the system.
The tag {AJAX} controls javascript, necessary for normal operation of the cms as a whole, and the AJAX features in particular. One should place that tag in the very end of a template before the tag:
The tag {content},displays the article content (short news & full news).
The tag {custom},allows for custom display of articles, has the following parameters:
{custom category=" 2,7" template=" custom" aviable=" global" from=" 0" limit=" 10" cache=" yes"}
Where,
category - ID of the categories, from which we produce the news, divided by comma without gaps.
template - the template which will be used with the display of news, in this case this will be custom.tpl, if you you use on the site several templates then this file must be present in each template. In this template we used the tags used for the short news.
aviable - section in which will be it is derived the inquired news, it can take the following values:
global - in all divisions
main - on the main page
date - with the survey of news for the specific dates
cat - with the survey of the category
showfull - with the survey of the complete news
search - with the survey of the results of the search
userinfo - with the survey of the profile
register - with the registration
stats - with the survey of the statistics
pm - with the survey of the personal communications
feedback - with the survey of the feedback
favorites - with the survey of the layings
newposts - with the survey of the new communications
addnews - during the addition of the news
lastcomments - with the survey of the last commentaries
You can combine sections with the aid of ” |”, for example aviable="userinfo|register|main" will display your news on the mainpage, with the registration and with the info of the profile of a user.
from -the number of news which will begin from.
limit - how many news articles will be brought out
cache - takes the values of yes or no- It should be enabled for a reduction in server load.
Attention it isnecessary to indicate all parameters, they are required, and also necessary to observe their order.
Rememberthat each use of this tag will create an extra load on the database, but as you know, dle prides itself on being fast, and using low resources.
The tag [aviable=??????]text[/aviable], derives text concluded in the tags if it is examined the division of the site indicated:
Tag assumes [paremtry] analogous to the parameter of aviable of the tag {custom}.
For the example
[aviable=userinfo|register|main] Text [/aviable]
the prisoner in the tags, on the main thing, with the registration and with the survey of the profile of user will derive text.
The tag {AJAX} controls javascript, necessary for normal operation of the cms as a whole, and the AJAX features in particular. One should place that tag in the very end of a template before the tag:
</body>
The tag
{info} displays information and errors about the produced actions (for example "forbidden topic", "incorrect password" or "necessary to fill all fields") it must be placed right next to, but before, the tag {content}The tag {content},displays the article content (short news & full news).
The tag {custom},allows for custom display of articles, has the following parameters:
{custom category=" 2,7" template=" custom" aviable=" global" from=" 0" limit=" 10" cache=" yes"}
Where,
category - ID of the categories, from which we produce the news, divided by comma without gaps.
template - the template which will be used with the display of news, in this case this will be custom.tpl, if you you use on the site several templates then this file must be present in each template. In this template we used the tags used for the short news.
aviable - section in which will be it is derived the inquired news, it can take the following values:
global - in all divisions
main - on the main page
date - with the survey of news for the specific dates
cat - with the survey of the category
showfull - with the survey of the complete news
search - with the survey of the results of the search
userinfo - with the survey of the profile
register - with the registration
stats - with the survey of the statistics
pm - with the survey of the personal communications
feedback - with the survey of the feedback
favorites - with the survey of the layings
newposts - with the survey of the new communications
addnews - during the addition of the news
lastcomments - with the survey of the last commentaries
You can combine sections with the aid of ” |”, for example aviable="userinfo|register|main" will display your news on the mainpage, with the registration and with the info of the profile of a user.
from -the number of news which will begin from.
limit - how many news articles will be brought out
cache - takes the values of yes or no- It should be enabled for a reduction in server load.
Attention it isnecessary to indicate all parameters, they are required, and also necessary to observe their order.
Rememberthat each use of this tag will create an extra load on the database, but as you know, dle prides itself on being fast, and using low resources.
The tag [aviable=??????]text[/aviable], derives text concluded in the tags if it is examined the division of the site indicated:
Tag assumes [paremtry] analogous to the parameter of aviable of the tag {custom}.
For the example
[aviable=userinfo|register|main] Text [/aviable]
the prisoner in the tags, on the main thing, with the registration and with the survey of the profile of user will derive text.
Your are currently a guest on this site. Please click here to register
- views: 966
-
Print
|
|
| |
#2
Tak
Tak--------------------
On Holidays for over a year ;) Joined: 3.06.2006 | ICQ: --
#1
farshid
farshidUser Group: Member
very nice article....whn you post second part?
Joined: 16.07.2006 | ICQ: --



Users: 0
User Group: Editor