Dede weave Dream Backstage Common label

Source: Internet
Author: User

Some very useful ways to call a tag


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}
--------------------------------------------------------------------------------
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 '/}
--------------------------------------------------------------------------------
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/]
--------------------------------------------------------------------------------
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 '/}
--------------------------------------------------------------------------------
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 tag: {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 tag: {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 guest number tags: {dede:field name= ' Digg '/} <a href= "Javascript:digg (' Digg ', {dede:field name= ' id '/});" > Top </a>
--------------------------------------------------------------------------------
Previous Next post tags: {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 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= '} <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= '} <li><a title= ' [Field:title function= ' Htmlspecialchars (@me) '/] "href=" [Field:arcurl/] ">[field:title/]</a></li> {/dede:arclist}
--------------------------------------------------------------------------------
Related Document Call 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>
--------------------------------------------------------------------------------
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>
--------------------------------------------------------------------------------
Control Word description Tag: [Field:description function= "Cn_substr (@me, 100)"/] ...
--------------------------------------------------------------------------------
Call the article tags tag: {dede:tag type= ' current '/}
--------------------------------------------------------------------------------
Article keywords and description: {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 Article call tag: {dede:global name= ' keyword '/} ' search results-{dede:global name= ' cfg_webname '/}
Search results for "{dede:global name= ' keyword '/}</span>"
--------------------------------------------------------------------------------
Incrementing serial number: [Field:global name=autoindex/]
--------------------------------------------------------------------------------
List 5 lines plus a 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}
--------------------------------------------------------------------------------
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]
--------------------------------------------------------------------------------
Copy page content, automatically add the website information in the back, facilitate SEO
<script type= "Text/javascript" >
Document.body.oncopy = function () {setTimeout (function () {var text = clipboarddata.getdata ("text"), if (text) {text = text + "RN This article originates from www. address. COM original link:" +LOCATION.HREF; Clipboarddata.setdata ("text", text); }}, 100)}
</script>
--------------------------------------------------------------------------------
By time Click on the article Leaderboard call tag:
By total: {dede:arclist row= ' titlelen=24 Orderby=click}
By month: {dede:arclist row= ' titlelen=8 orderby=click subday=30}
By week: {dede:arclist row= ' titlelen=8 orderby=click subday=7}
Call the sub-section of a column on the homepage
{Dede:channel type= ' Sun ' typeid= ' column ID '}
<a href= "[field:typelink/]" >[field:typename/]</a>
{/dede:channel}
Or
{dede:global name= ' maplist '/}
--------------------------------------------------------------------------------
Search Table Monotone 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 only </option>
</select>
<input type= "image" Src= "{dede:field name= ' templeturl '/}/images/topsearch_submit.gif"/>
</form>
--------------------------------------------------------------------------------
Implementation of the "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 delimiter
@me =html2text (@me); Remove HTML tags
$TF =split ($TW, @me); Decomposition of an array
for ($ta = (count ($TF)-2), $ta >=1; $ta-) {//loop assignment to $TK
$tk. =trim ($TF [$ta]). $TC;
}
$TK =substr ($TK, 0,-1);
@me = $TK; Assign a value to @me
{/dede:field}-{dede:global name= ' cfg_webname '/}
--------------------------------------------------------------------------------
Call thumbnail:
--------------------------------------------------------------------------------
Published articles show red dates or add new or new small pictures
Articles published for nearly three days (or the same day) display red dates or add new or new small images.
Are all around pubdate, write extensions.
2nd, 3 to pay attention to the problem is: such as: " can not use double quotation marks, otherwise not."
If you want to add to the day, change 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, ========== 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 = "else @me = $AA;
[/field:pubdate]
--------------------------------------------------------------------------------
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&lm=0&ct=1&ft=&q5=&amp;amp;amp;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, 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> search talk about </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 weave Dream Backstage Common label

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.