Dede Tag Invocation

Source: Internet
Author: User

Dede Tag Invocation
Headline [h] recommended [c] slide [F] Special recommendation [a] scroll [s] bold [b] picture [P] Jump [j]


Ad code:: {Dede:myad name= ' ad bit ID '/}
Column call: <li><a href= ' {dede:global.cfg_cmsurl/}/' ><span> home </span></a></li>

{dede:channel type= ' top ' row= ' currentstyle= '
<li class= ' hover ' ><a href= ' ~typelink~ ' ~rel~><span>~typename~</span></a></li> "}
<li><a href= ' [field:typeurl/] ' [field:rel/]><span>[field:typename/]</span></a>< /li> {/dede:channel}
Popular Tags: {dede:tag row= ' getall= ' 1 ' sort= ' month '}<li><a href= ' [field:link/] ' >[field:tag/]</a>< /li>{/dede:tag}
Home title: {dede:global.cfg_webname/}
Website Description: <meta name= "description" content= "{dede:global.cfg_description/}"/>

Keyword call tag: <meta name= "keywords" content= "{dede:field name= ' keywords '/}" >

Head call: {dede:include filename= "head.htm"/}

Home headlines: {dede:arclist flag= ' h ' limit= ' 0,1 ' infolen= ' "<p>[field:info/]...<a href= "[field:arcurl/]" >[view full text]</a></p> {/dede:arclist}
Latest article List: {dede:arclist row=14 titlelen=32 noflag= ' h '} <li>&lt;a href= "[field:arcurl/]" &GT;[FIELD:TITLE/]&L t;/a></li> {/dede:arclist}
Special Recommendation: {dede:arclist flag= ' a ' row= ' 6 ' orderby= ' pubdate '} <li><span>[field:pubdate
function= "MyDate (' m-d ', @me)"/]</span><a
Href= "[field:arcurl/]" >[field:title/]</a></li>
{/dede:arclist}
Graphic information: {dede:arclist row=10 orderby=pubdate type= ' image. ' imgwidth= ' 143 ' imgheight= ' 106 '}

<li><a href= "[field:arcurl/]" >[field:image/]<span
class= "title" >[field:title/]</span ></a></li>                  {/dede:arclist}
Comment: {dede:feedback row= ' 5 '  titlelen= '  infolen= ' 80 '}              <li&gt; <small ><a href= "#"  class= "username" >[field:username function= "(@me = = ' Guest '
? ' Visitor ': @me) "/]</a> comment <a href=" [Field:global.cfg_phpurl/]/feedback.php?aid=[field:aid/] " class=" title ">[field:title/]</a></small>                

<p>[field:msg/]</p> </li>
{/dede:feedback}
Recent Login member: {dede:memberlist row=6 signlen=30}

<li><a href= "[field:spaceurl/]"
target= "_blank" >Src= "[field:face/]"
Alt= ' [field:spacename/] ' width= ' "height="/>[field:uname/]</a></li> {/dede:memberlist}
Links: {dede:flinktype}{dede:flink/} {/dede:flinktype}
Control Word description Tag: [Field:description function= "Cn_substr (@me, 100)"/] ... Bottom call: {dede:include filename= "footer.htm"/}


Channel
Channel title: {dede:field.title/}_{dede:global.cfg_webname/} Channel Description: <meta name= "description" content= "{Dede:field name= ' Description ' function= ' Html2text (@me) '/} '/>

Channel section: {Dede:channel type= ' son ' currentstyle= ' <span><a href= ' ~typelink~ ' class= ' ThisClass ' >~typename~ </a></span> "}<span><a
Href= ' [field:typeurl/] ' >[field:typename/]</a></span>{/dede:channel} Channel Listbox:{dede: Channelartlist} <DL
class= "Tbox" ><dt><strong><a href= "{dede:field name= ' typeurl '/}" >{dede:field
Name= ' TypeName '/}&lt;/a></strong><span class= "more" ><a href= "{dede:field name= ' typeurl '/}" > More ...</a></span></dt>
<dd><ul class= "D1 Ico3" >

{dede:arclist titlelen= ' row= ' 8 '}<li><span class= "date" >[field:pubdate function= "MyDate (' m-d ', @me)" /]</span><a href= "[Field:arcurl/]" >[field:title/]</a></li>

{/dede:arclist}</ul></dd></dl>{/dede:channelartlist}


List
Current location: {Dede:field name= ' position '/} List call: {dede:list pagesize= ' 10 '}
<li> [Field:array runphp= ' yes '] @me = (Empty (@me [' litpic '])? "": "<a href= ' {@me [' Arcurl ']} ' class= ' preview ' ></a> '); [/field:array]
[<b>[field:typelink/]</b>] <a href= "[field:arcurl/]" class= "title" >[field:title/]</a> < span class= "Info" > <small> date: </small>[field:pubdate function= "Getdatetimemk (@me)"/] <small> Click: </small>[field:click/] <small> praise: </small>[field:scores/] </span> <p class= "Intro" > [field:description/] ... </p> </li> {/dede:list}
Paging call: {dede:pagelist listitem= "info,index,end,pre,next,pageno,option" listsize= "5"/}

Column list: {dede:channel type= ' son ' currentstyle= '
<li><a href= ' ~typelink~ ' class= ' ThisClass ' >~typename~</a></li>}
<li><a href= ' [field:typeurl/] ' >[field:typename/]</a></li> {/dede:channel}
Article page title: {dede:field.title/}_{dede:global.cfg_webname/} article title: {dede:field.title/}
Article release time: {dede:field.pubdate function= "mydate (' y-m-d h:i ', @me)"/} Article Source: {dede:field.source/} article {dede:field.writer/}
Article clicks: <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> times
Article Description: {dede:field.description runphp= ' yes '} if (@me <> ') @me = '
<div class= "Intro" > ' [email protected] ' </div> ';
{/dede:field.description}

Article content: {dede:field.body/}
Editor: Editor: {dede:adminname/}

Article paging: {dede:pagebreak/}

Prev: {dede:prenext get= ' pre '/}

Next: {dede:prenext get= ' next '/}
Column Description: {dede:field name= ' description ' function= ' Html2text (@me) '/}

Calling external htm file: {dede:include file= ' head.htm ' ismake= ' Yes '/}
Search Article call tag: {dede:global name= ' keyword '/}&quot; search results-{dede:global name= ' cfg_webname '/} search &quot;  {dede:global name= ' keyword '/}</span>&quot; The results
Incrementing serial number: [Field:global name=autoindex/]

List 5 lines plus line:   {dede:list pagesize= '}
<li><a href= "[field:arcurl /]"  title= "[field:title function= ' Htmlspecialchars (@me) '/]"                  target=_blank>[field:title function= "Cn_substr (@ me,48) "/]</a>[field:pubdate  runphp= ' yes '] 
$a =" <font color=red> ". Strftime ( '%m-%d ', @me). " </font> ";  $b =strftime ('%m-%d ', @me);  $ntime  = time ();   $day 3 =  3600 * 24;
if ($ntime  -  @me)  <  $day 3)   @me  =  $a; else  @me  = $b;   [/field:pubdate]<br>
[field:global name=autoindex runphp= "Yes"] if (@me%5== 0) @me = " <div class = "Line2 m1 m3" ></DIV></LI>&NBSP;&NBSP;

Latest article List "Alternate color" method
{dede:arclist orderby=pubdate titlelen= ' row= ' 10 '} [Field:global runphp= ' yes ' name=autoindex] $a = "<div id= ' a ' >"; $b = "<div id= ' B ' >"; if ((@me%2) ==0) @me = $a; else @me = $b; [/field:global] <ul>
<li>[field:title/]</li> </ul> </div> {/dede:arclist}
The updated article time in 24 hours is shown in red: [field:pubdate runphp= ' yes ']
$a = "<font color=red>". Strftime ('%m-%d ', @me). " </font> "; $b =strftime ('%m-%d ', @me);  $ntime = time (); $day 3 = 3600 * 24;
if ($ntime-@me) < $day 3) @me = $a;  else @me = $b; [/field:pubdate]
else @me = $AA; [/field:pubdate]
3, ========== plus new.gif small picture ======== [field:pubdate runphp= ' yes '] $aa =strftime ('%m-%d ', @me); $ntime = time (); $tagtime = @me; $day 3 = 3600 * 24 * 3;
if ($tagtime > $ntime-$day 3) @me = "

A cool time effect   [field:pubdate runphp= "yes"
                if (Time () [email protected]) < (60*60*24)) {@me = '  <font  color= "#ff6600" > "Strftime ("%h:% m ", @me). ' </FONT> ';}
               else {@me = Strftime ("%m-%d", @me);}                              [/field:pubdate] 


DEDE SEO Tips Add a Baidu search this article
"<a href=" javascript: "Onclick= ' window.open (" Http://www.baidu.com/s?q1={dede:field name= "title"/}&q2=& q3=&q4=&rn=10&amp;lm=0&ct=1&ft=&q5=&q6= your url ") ' target=" _top "title=" in
Baidu Search "{Dede:field name=" title "/}" related content "><font color=red> search more Traditional Chinese characters in Baidu </font></a>"


Change your URL without HTTP, demo: http://www.mdjtop.com article page or
"<a href=" javascript: "Onclick= ' window.open (" Http://www.baidu.com/baidu?word={dede:field name= "title"/} ") ' target= "_top" title= "in Baidu search" {Dede:field name= "title"/} "related content" ><font color=red> name shop Street </font></a> "

Call tag: {dede:field name= ' keywords ' runphp= ' yes '} if (!empty (@me)) {
$KWS = Explode (' ', @me); @me = "";
foreach ($kws as $k) {
@me. = "<a href= '/tag.php?/$k/' > $k </a>";}
@me = str_replace (' + ', ', trim (@me)); }
{/dede:field}


Dede the article content on the homepage
Method One: {dede:sql sql= "select Aid,typeid,body,body1, body2,body3,body4,body5 from ' dede_addonarticle ' where typeid=2 ORDER By ' aid ' DESC LIMIT 0, 1 "}
[Field:body/] [Field:body1/] [Field:body2/] [Field:body3/] [Field:body4/] [Field:body5/] {/dede:sql}
Method Two: {dede:sql sql= "select Aid,typeid,body from ' dede_addonarticle ' where typeid=2 ORDER
By ' aid ' DESC LIMIT 0, 1 "} [Field:body/] {/dede:sql}
Call Description: Where typeid=2, column ID number, indicating that the call this ID column in the article, replaced by aid=1, which means that the call to the aid of 1
Chapter (specifically which article aid is how much, to go into the database to see, from the background to see also can), Desc, sort of, according to from the big to the small row, replaced by
ASC is ordered from small to large, limit 0, 1 for the number of calls, or as the number of limit 1, this 1 represents the number of calls.
Hot keywords: {dede:hotwords num= ' 5 ' subday= ' + '/} tag:{dede:tag type= ' current '/}
Favorites: <a href= "{dede:field name= ' phpurl '/}/stow.php?arcid={dede:field Name=id/}" > Favorites </a>

Recommended: <a href= "{dede:field name= ' phpurl '/}/recommend.php?arcid={dede:field Name=id/}" > Recommended </a>
Comment: <a href= "{dede:field name= ' phpurl '/}/feedback.php?arcid={dede:field Name=id/}" > Comments </a>
Printed: <a href= "#" > Print </a> Close: <a href= "#" > Close </a>


Download Class
File type: {Dede:field name= ' filetype '/} software size: {Dede:field name= ' softsize '/}
Download number of times: <script src= "{dede:field name= ' phpurl '/}/countdownloads.php?aid={dede:field name= ' aid '/}&cid={dede: Field name= ' Channel '/} ' language= ' JavaScript ></script> software Category: {Dede:field name= ' Softtype '/} Software language: {dede: Field name= ' Language '/} authorization method: {Dede:field name= ' accredit '/}

Operating environment: {dede:field name= ' OS '/}
Update time: {Dede:field name= ' pubdate ' function= "getdatemk (' @me ')"/}
Official website: <a href= "{dede:field name= ' officialurl '/}" >{dede:field name= ' Officialurl '/}</a>

Thumbnail:

Software Introduction: {Dede:field name= ' introduce '/}

: {Dede:field name= ' softlinks '/} software tag:{dede:tag type= ' current '/}
Column link call tag: [Field:typelink function= ' Str_replace ("A", "a Class=ulink", @me) '/]

Review full-Text call Tags: <a href= "[field:arcurl/]" > View full text ...</a>
List time Call Tags: [field:pubdate function= "Getdatetimemk (@me)"/]
List Paged call tag: {dede:pagelist listsize= ' 4 ' listitem= ' index pre pageno Next end '/}

Template path call tag: {Dede:field name= ' Templeturl '/}
Specify the calling column label: {dede:onetype typeid= ' ID '}[field:typename/]{/dede:onetype}

Channel column call tag: {dede:channel type= ' self '}<li><a href= ' [field:typelink/] ' > [field:typename/]</a></ Li>{/dede:channel}
Links call Tag: {dede:flink row= ' linktype=2/}
Website Copyright Call Tag: {dede:global name= ' Cfg_powerby '/}

Website Record call tag: {dede:global name= ' Cfg_beian '/}

Current column name tag: {Dede:field name= ' typename '/}


article call class
Image call common code: [Field:imglink/]=<a href= ' [field:arcurl/] ' ></a>
Article calls common code: [Field:textlink]=<a href= ' [field:arcurl/] ' title= "[field:title/]" target= "_blank" >[field:title/] </a>
Article tag call tag: {dede:tag type= ' current '/}
Headline recommendation call tag: {dede:arclist row=1 titlelen=24 orderby=pubdate att=2} <dt> [field:textlink/]
<span>[field:description/]......</span> </dt> {/dede:arclist}
Latest article call tag: {dede:arclist row=8 titlelen=24 orderby=pubdate}<li>[field:textlink/] </li> {/dede:arclist}
Latest Text call tag: {dede:arclist row=4 titlelen=20 orderby=pubdate type= ' image. ' Imgwidth= ' imgheight= ' 98 '}
<dd><a href= "[field:arcurl/]" ></a>< Span><a title= "[Field:title function= ' Htmlspecialchars (@me) '/]" href= "[Field:arcurl/]" >[field:title/] </a></span> </dd>{/dede:arclist}
Recommended document Call tag: {dede:arclist type= ' commend ' titlelen= ' + ' row= '} <li><a title= ' [Field:title function= ' Htmlspecialchars (@me) '/] "href=" [Field:arcurl/] "> [field:title/]</a></li> {/dede:arclist}
Randomly recommended call tag: {dede:arclist type= ' commend ' titlelen= ' orderby= ' rand ' row= '} &lt;li><a title= ' [field:title Function= ' Htmlspecialchars (@me) '/] "href=" [Field:arcurl/] "> [field:title/]</a></li> {/dede:arclist }
Hot Document Call tag: {dede:arclist orderby= ' click ' titlelen= ' + ' row= '} &lt;li><a title= ' [Field:title function= ' Htmlspecialchars (@me) '/] "href=" [Field:arcurl/] "> [field:title/]</a></li> {/dede:arclist}
Related Document Call tag: {dede:likeart titlelen= ' row= '} <li><a title= "[Field:title
Function= ' Htmlspecialchars (@me) '/] "href=" [Field:arcurl/] ">[field:title/]</a></li> {/dede:likeart }
Call Picture link tag: <a href= "[field:arcurl/]" ></a>
<a href= ' [field:arcurl/] ' >[field:image/]</a>
Call text link tag: <a href= "[field:aucurl/]" title= "[field:title/]" >[field:title/]</a> <a title= "[Field:title Function= ' Htmlspecialchars (@me) '/] "href=" [Field:arcurl/] "> [Field:title/]</a>

Dede Tag Invocation

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.