Mynews| News
Label name: mynews
Introduction to Tags:
Function Description: Station NEWS call Tag
Scope of application: global use
Basic syntax:
{dede:mynews row= ' titlelen= '/}
Related functions:
File \include\taglib\mynews.lib.php Line 2nd
Function Lib_mynews (& $ctag,& $REFOBJ)
Parameter description:
row= ' 1 ' Call station news number
Titlelen= ' 24 ' news headline length
Underlying template variable:
[field:title/], [field:writer/],
[Field:senddate function= "strftime ('%y-%m-%d%h:%m ', @me)"/] (time), [field:body/]
Usages:
We enter the system backstage [module]-[Station news release], here according to the page request we add 2 content. &http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp;
We next paste the following in the [Template]-[Global tag test] in the system background:
{Dede:mynews row=2}
Title: [field:title/] Release date: [Field:senddate function= strftime ('%y-%m-%d%h:%m ', @me) "/]<br/>
News content: [field:body/]<br/>
<hr/>
{/dede:mynews}
Let's look at the following test results:
So we can add this tag to the corresponding template page, of course, you can also add the news when you set up the section of the news, so this news will be in the designated columns to display.