Recently studied the dream backstage, found some very useful tags to call the method, share to everyone ~ ~
Key description Call tag: <meta name= "keywords" content= "{dede:field name= ' keywords '/}" >
<meta name= "description" content= "{dede:field name= ' description ' function= ' Html2text ' (@me) '/}" >
--------------------------------------------------------------------------------
Template path call tag: {Dede:field name= ' Templeturl '/}
--------------------------------------------------------------------------------
Site Title call tag: {dede:global name= ' cfg_webname '/}
--------------------------------------------------------------------------------
Column navigation call Tags: <a href= "/" > Home </a></li>
{dede:channel type= ' top ' row= ' 8 ' currentstyle= "<li class= ' thisclass ' ><a ' href= ' ~typelink~" >~typename~ </a> </li> "}
<li><a href= ' [field:typelink/] ' target= ' _blank ' >[field:typename/]</a> </li>
{/dede:channel}
--------------------------------------------------------------------------------
Specifies 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}
--------------------------------------------------------------------------------
Link call tag: {dede:flink row= ' linktype=2/}
--------------------------------------------------------------------------------
Web site 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 '/}
--------------------------------------------------------------------------------
Current position call tag: {Dede:field name= ' position '/}
--------------------------------------------------------------------------------
List article call tag: {dede:list pagesize= ' 8 '}{/dede:list}
--------------------------------------------------------------------------------
Column link call tag: [Field:typelink function= ' Str_replace ("A", "a Class=ulink", @me) '/]
--------------------------------------------------------------------------------
Author Link call tag: [Field:writer/]
--------------------------------------------------------------------------------
List click call tag: [field:click/]
--------------------------------------------------------------------------------
List comment call tag: [field:postnum/]
--------------------------------------------------------------------------------
Lookup full-Text call Tags: <a href= "[field:arcurl/]" > read the full text ...</a>
--------------------------------------------------------------------------------
List time call Label: [Field:pubdate function= "Getdatetimemk (@me)"/]
--------------------------------------------------------------------------------
List paging call Label: {dede:pagelist listsize= ' 4 ' listitem= ' index pre pageno Next end '/}
--------------------------------------------------------------------------------
Article title call tag: {Dede:field name= "title"/}
--------------------------------------------------------------------------------
Article source call tag: {Dede:field name= ' source '/}
--------------------------------------------------------------------------------
Article author call tag: {Dede:field name= ' writer '/}
--------------------------------------------------------------------------------
Article Time call Label: {Dede:field name= ' pubdate ' function= ' Getdatemk (@me) '/}
--------------------------------------------------------------------------------
Article tag call tag: {dede:tag type= ' current '/}
--------------------------------------------------------------------------------
Article click on the call tag: <script src= "{dede:field name= ' phpurl '/}/count.php?aid={dede:field name= ' ID '/}&mid={dede:field Name= ' MemberID '/}&view=yes ' language= "JavaScript" ></script>
--------------------------------------------------------------------------------
Article content call tag: {Dede:field name= ' body '/}
--------------------------------------------------------------------------------
Article Paging call Label: {dede:pagebreak/}
[<a href= "{dede:field name= ' phpurl '/}/stow.php?arcid={dede:field Name=id/}" > collection </a>]
[<a href= "{dede:field name= ' phpurl '/}/recommend.php?arcid={dede:field Name=id/}" > recommended </a>]
[<a href= "{dede:field name= ' phpurl '/}/feedback.php?arcid={dede:field Name=id/}" > Comment </a>]
[<a href= "#" onclick= "Window.print ();" > Print </a>]
[<a href= "#" onclick= "Window.close ();" > Close </a>]
--------------------------------------------------------------------------------
Article Top number tags: {dede:field name= ' Digg '/} <a href= ' Javascript:digg (' Digg ', {dede:field name= ' id '/}); " > Top </a>
--------------------------------------------------------------------------------
Previous next label: {dede:prenext get= ' pre '/}{dede:prenext get= ' next '/}
--------------------------------------------------------------------------------
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}
--------------------------------------------------------------------------------
Hot keyword call tag: {dede:hotwords num= ' 5 ' subday= ' 30 '/}
--------------------------------------------------------------------------------
Latest graphics and Text call tag: {dede:arclist row=4 titlelen=20 orderby=pubdate type= ' imgwidth= ' 152 ' 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 invocation Tags: {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 Tags: {dede:arclist type= ' commend ' titlelen= ' orderby= ' rand ' row= '} <li><a title= ' [field:title Function= ' Htmlspecialchars (@me) '/] "href=" [Field:arcurl/] ">[field:title/]</a></li> {/dede:arclist }
--------------------------------------------------------------------------------
Hotspot Document Call tag: {dede:arclist orderby= ' click ' titlelen= ' row= '} <li><a title= ' [Field:title function= ' Htmlspecialchars (@me) '/] ' href= ' [field:arcurl/] ' >[field:title/]</a></li> {/dede:arclist}
--------------------------------------------------------------------------------
Related Document invocation Tags: {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>
--------------------------------------------------------------------------------
Invoke text link Tags: <a href= "[field:aucurl/]" title= "[field:title/]" >[field:title/]</a> <a title= "[Field:title Function= ' Htmlspecialchars (@me) '/] "href=" [Field:arcurl/] ">[field:title/]</a>
--------------------------------------------------------------------------------
Control word Number description mark: [Field:description function= "Cn_substr (@me, 100)"/] ...
--------------------------------------------------------------------------------
Invoke Article tags tags: {dede:tag type= ' current '/}
--------------------------------------------------------------------------------
Article keywords and descriptions: {Dede:field name= ' keywords '/} {Dede:field name= ' description ' function= ' Html2text ' (@me) '/}
--------------------------------------------------------------------------------
Column Description: {dede:field name= ' description ' function= ' Html2text (@me) '/}
--------------------------------------------------------------------------------
Calling external htm file: {dede:include file= ' head.htm ' ismake= ' Yes '/}
--------------------------------------------------------------------------------
Search for article call tag: {dede:global name= ' keyword '/} ' search results-{dede:global name= ' cfg_webname '/}
Search for "{dede:global name= ' keyword '/}</span>" results
--------------------------------------------------------------------------------
Increment serial number: [Field:global name=autoindex/]
--------------------------------------------------------------------------------
List every 5 lines plus one line:
{dede:list pagesize= ' 50 '}
<li><a href= "[Field:arcurl/]" title= "[Field:title function= ' Htmlspecialchars (@me) ']"
Target=_blank>[field:title function= "Cn_substr (@me)"/]</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 = "else @me = "";
[/field:global]
{/dede:list}
<div class= "line2 M1 M3" ></DIV></LI>
--------------------------------------------------------------------------------
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}
--------------------------------------------------------------------------------
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]
--------------------------------------------------------------------------------
Copy page content, automatically followed by the site information, conducive to SEO
<script type= "Text/javascript" >
Document.body.oncopy = function () {settimeout (function () {var text = clipboarddata.getdata ("text"); if (text) {text = text + "RN This article is from www. address. COM original link:" +LOCATION.HREF; Clipboarddata.setdata ("text", text); }}, 100)}
</script>
--------------------------------------------------------------------------------
Click on the article list to call the label by Time:
By total: {dede:arclist row= ' titlelen=24 Orderby=click}
Per month: {dede:arclist row= ' titlelen=8 orderby=click subday=30}
By week: {dede:arclist row= ' titlelen=8 orderby=click subday=7}
Call a column on the first page
{Dede:channel type= ' Sun ' typeid= ' column ID '}
<a href= "[field:typelink/]" >[field:typename/]</a>
{/dede:channel}
Or
{dede:global name= ' maplist '/}
--------------------------------------------------------------------------------
Search table monotone by label:
<form action= "{dede:global name= ' cfg_phpurl '/}/search.php" name= "Formsearch" >
<input type= "hidden" name= "Kwtype" value= "1"/>
<input name= "keyword" id= "keyword" type= "text" class= "Searchtxt"/>
<select name= "SearchType" id= "SearchType" >
<option value= "Titlekeyword" selected> intelligent Fuzzy Search </option>
<option value= "title" > Search title </option> only
</select>
<input type= "image" Src= "{dede:field name= ' templeturl '/}/images/topsearch_submit.gif"/>
</form>
--------------------------------------------------------------------------------
Achieve "article title-Level 2 column-Level 1 column-site name" form
{Dede:field name= ' title '/}-{dede:field name= ' position ' runphp= ' yes '}
$TC = "-"; Separator
$TW = $GLOBALS [' Cfg_list_symbol ']; Call Location Separator
@me =html2text (@me); Remove HTML tags
$TF =split ($TW, @me); Decompose an array
for ($ta = (count ($TF)-2) $ta >=1; $ta-) {//cyclic assignment to $TK
$tk. =trim ($TF [$ta]). $TC;
}
$TK =substr ($TK, 0,-1);
@me = $TK; Assign value to @me
{/dede:field}-{dede:global name= ' cfg_webname '/}
--------------------------------------------------------------------------------
Call thumbnail:
--------------------------------------------------------------------------------
Published articles show a red date or add a new word or new small picture
For nearly three days (or the same day) published articles show a red date or add a new word or a new small picture.
Are all around pubdate, write an extension.
2nd, 3 to pay attention to the problem is: such as: " can not use double quotes, otherwise not."
If you want to add the day, change the 3600 * 24 * 3 to 3600 * 24.
1, ========== red date ========
[Field:pubdate runphp= ' yes ']
$a = "<font color=red>". Strftime ('%m-%d ', @me). " </font> ";
$b =strftime ('%m-%d ', @me);
$ntime = time ();
$day 3 = 3600 * 24 * 3;
if (($ntime-@me) < $day 3) @me = $a;
else @me = $b;
[/field:pubdate]
2, ========== Red (new) ========
[Field:pubdate runphp= ' yes ']
$aa =strftime ('%m-%d ', @me);
$ntime = time ();
$tagtime = @me;
$day 3 = 3600 * 24 * 3;
if ($tagtime > $ntime-$day 3) @me = "<font color= ' Red ' > (new) </font>";
else @me = $AA;
[/field:pubdate]
3, ========== add 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 = "else @me = $AA;
[/field:pubdate]
--------------------------------------------------------------------------------
It's a cool time effect.
[Field:pubdate runphp= "yes"]
if (Time ()-@me) < (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&lm=0&ct=1&ft=&q5=&amp;q6= your url "target=" _top "title=" in Baidu search "{dede: Field name= "title"/} "related content" ><font color=red> search more traditional characters </font></a> in Baidu
Change your URL without HTTP, or
"<a href=" javascript: "onclick=" window.open ("Http://www.baidu.com/baidu?word={dede:field name=" title "/}") target= "_top" title= "search in Baidu" {Dede:field name= "title"/} "related content" ><font color=red> search said </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}