KeywordsDedecms station news module tag global label mynews
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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.