Site name: {dede:global.cfg_webname/}
Website Root URL: {dede:global.cfg_basehost/}
Site root directory: {dede:global.cfg_cmsurl/}
Web page link: {dede:global.cfg_indexurl/}
Website description: {dede:global.cfg_description/}
Site keywords: {dede:global.cfg_keywords/}
Template path: {dede:global.cfg_templets_skin/}
Call page: {dede:include filename= "head.htm"/}
Site code: {dede:global.cfg_soft_lang/}
Call time: [Field:pubdate function=mydate (' y-m-d ', @me)/]
Call thumbnail:
{dede:arclist row=10 orderby=pubdate type= ' image. ' imgwidth= ' defines image width ' imgheight= ' height '}
[field:image/]
{/dede:arclist}
To invoke the thumbnail's original image:
[Field:litpic runphp= ' yes ']
$youjoys = Array ("-lp", "_lit");
@me = Str_replace ($youjoys, "", @me);
[/field:litpic]
call a single column:
{Dede:type}
<a href= "[Field:typelink/]" >[field:typename/]</a>
{/dede:type}
Article title: {dede:field.title/}
Article Description: {dede:field.description function= ' html2text (@me) '/}
Article keywords: {dede:field.keywords/}
Current location: {Dede:field name= ' position '/}
Article time: {dede:field.pubdate function= "mydate (' y-m-d h:i ', @me)"/}
Article source: {dede:field.source/}
Article {dede:field.writer/}
Article content: {dede:field.body/}
Previous post: {dede:prenext get= ' pre '/}
Next: {dede:prenext get= ' next '/}
Hits: <script src= "{dede:field name= ' phpurl '/}/count.php?view=yes&aid={dede:field name= ' id '/}&mid={dede: Field name= ' Mid '/} "type= ' Text/javascript ' language=" JavaScript "></script>
channel| Channel Tags:
Label name: Channel
Tags Introduction: Weaving Dream common tags, usually used for the top of the site to get site column information, convenient for members of the site to browse the entire station information
Function Description: Used to get the column list
Scope of application: global use
Basic syntax:
{dede:channel type= ' top ' row= ' 8 ' currentstyle= "<li><a href= ' ~typelink~ ' class= ' ThisClass ' >~typename~ </a> </li> "}
<li><a href= ' [field:typelink/] ' >[field:typename/]</a> </li>
{/dede:channel}
Parameter description:
typeID = ' 0 ' column ID
Reid = ' 0 ' Superior column ID
row = ' 100 ' Call number of columns
col = ' 1 ' of how many columns are displayed (default is single column)
Type = ' son | Sun ' Son is a subordinate column, self means the same level column, top top column
Currentstyle = ' Apply Style '
Underlying template fields:
ID (same ID), typeID, Typelink, TypeName, Typeurl,typedir (only the URL of the column)
[Field:id/]
[Field:typeid/]
[field:typelink/] Call the column name, click to jump directly to the column list
[field:typename/] Call Column name, no link
[field:typeurl/]
[field:typedir/]
Cases:
{dede:channel type= ' top '}
<a href= ' [field:typelink/] ' >[field:typename/]</a>
{/dede:channel}
Note: In the absence of a specified typeid, the type tag is related to the environment of the template, for example, when the template is generated to column one, then Type= ' son ' represents all subclasses of column one
arclist| Document list:
Tag name: arclist
Tags introduction: Dream common tags, also known as free list tags, where imglist, Imginfolist, Specart, Coolart, and autolist are the alias tags that are extended by the different attributes defined by the tag.
Feature Description: Get a list of specified documents
Scope of application: global use
Basic syntax:
{dede:arclist flag= ' h ' typeid= ' row= "col=" titlelen= "infolen=" "imgwidth=" "imgheight=" "listtype=" key word= ' limit= ' 0,1 '}
<a href= ' [field:arcurl/] ' >[field:title/]</a>
{/dede:arclist}
Parameter description:
Col= ' How many columns are displayed (default is a single column), this property can be displayed in several ways in version 5.3
If col= ' 1 ' is displayed for multiple columns, the available DIV+CSS implementations
The following is an example of a multi-column implementation via DIV+CSS:
<style type=text/css>
Div{width:400px;float:left;}
</style>
{dede:arclist row= ' titlelen= ' orderby= ' pubdate ' idlist= ' col= ' 2 '}
? [field:textlink/] ([Field:pubdate function=mydate (' m-d ', @me)/]) <br/>
{/dede:arclist}
When col>1 will be displayed using the original table multi-column method
row= ' 10 ' returns the total number of document lists
typeid= ' column ID, in the list template and file template generally do not need to specify, in the homepage template allows the "," separate representation of multiple columns;
Getall= ' 1 ' does not specify this attribute in the case, in the column page, the article page template, will not get to "," separate the sub-categories of multiple columns
Titlelen = ' 30 ' title length equivalent to Titlelength
Infolen= ' 160 ' indicates that the description length is equivalent to Infolength
Imgwidth= ' 120 ' thumbnail width
imgheight= ' 90 ' thumbnail height
Listtype= ' All ' column type image contains thumbnails commend recommended
orderby= ' Sortrank ' document sorting method
§orderby= ' hot ' or orderby= ' click ' means by number of clicks
§orderby= ' Sortrank ' or orderby= ' pubdate ' sorted by publication time
§orderby= ' near '
§orderby== ' Lastpost ' by last review time
§orderby== ' scores ' ranked by score
§orderby= ' id ' sorted by article ID
§orderby= ' Rand ' randomly obtains a list of documents for the specified condition
Keyword= ' A list of documents with the specified keywords, multiple keywords with ', ' points
innertext = ' Single record style
Aid= ' Specify Document ID
Idlist = ' Extract specific document (document ID)
Channelid Channel ID
limit= ' Start ID, number of records ' (starting ID starting from 0) indicates a limited range of records (e.g. limit= ' 1 "means starting with a record with ID of 2
Flag = ' h ' custom attribute value: Headline [h] recommended [c] picture [p] slide [f] scroll [s] jump [j] graphic [a] bold [b]
Noflag = "with flag, but here is a representation that does not contain these attributes
orderway= ' desc ' value is DESC or ASC, specifying whether the sort is descending or a forward sort, the default is descending
Subday= ' Days ' indicates the number of days within which the document
use Arclist to add a method to the table field:
To get additional table content, you must meet two criteria
1. Specify the Channelid property
2. Specify the field to get addfields= ' field 1, field '
Such as:
{dede:arclist addfields= ' filetype,language,softtype ' row= ' 8 ' channelid= ' 3 '}
[Field:textlink/]-[Field:softtype/]<br/>
{/dede:arclist}
Underlying template fields:
ID (same ID), Typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,
Source,litpic (with Picname), Pubdate,senddate,mid, Lastpost,scores,goodpost,badpost,notpost,
Description (with infos), filename, image, Imglink, Fulltitle, Textlink, Typelink,plusurl, Memberurl, Templeturl,
Stime (pubdate "0000-00-00" format)
which
Textlink = <a href= ' Arcurl ' >title</a>
Typelink = <a href= ' Typeurl ' >typename</a>
Imglink = <a href= ' arcurl ' ></a>
Image =
Field Call method: [field:varname/]
Such as:
{dede:arclist infolen= ' 100 '}
[field:textlink/]
<br>
[field:infos/]
<br>
{/dede:arclist}
Call the latest article of the whole station:
{dede:arclist row= ' number ' typeid= ' all ' orderby= ' pubdate '}
<li><a href= "[field:arcurl/]" >[field:title/]</a></li>
{/dede:arclist}
Call the full site recommendation article:
{dede:arclist row= ' number ' typeid= ' all ' flag= ' C ' orderby= ' pubdate '}
<li><a href= "[field:arcurl/]" >[field:title/]</a></li>
{/dede:arclist}
Dede call related article code:
{dede:likearticle}<a href= ' [field:arcurl/] ' >[field:title/]</a>{/dede:likearticle} parameter description: col= " How many columns are displayed (default is single column) row= ' 10′ returns the total number of document lists Titlelen = ' 30′ title length equals titlelengthinfolen= ' 160′ indicates that the content description length is equivalent to Infolengthmytypeid=0 Manually specify the column ID to be qualified, using, separate to represent multiple innertext = "single record style (refers to the contents of the middle of the label) but this writing is completely non-display, and then modified as follows: {dede:likearticle row= ' 8 ' eregtype=all|tag| Keyword} <li><span>[field:pubdate function= "MyDate (' y-m-d ', @me)"/]</span> <a href= "[Field: arcurl/] "title=" [field:fulltitle/] "target=" _blank ">[field:title/]</a></li> {/dede:likearticle} at this time As long as you are in each article tag and keywords (I find tag sometimes can not write, keyword is necessary).
Dede The most commented article line code call:
{Dede:sql sql=" SELECT url,arctitle,msg, COUNT (*) as Count from Dede_feedback GROUP by
Arctitle
ORDER by Count DESC LIMIT 0,10"}
<li><a href=" [field:url/]">[field:arctitle/]</a>[field:msg/]</li>
{/dede:sql}
Board Deng: Dedecms weave dream Label Call Daquan