Dede tag call Daquan dededecms one split line per five lines

Source: Internet
Author: User

Key description call Tag: <meta name = "keywords" content = "{dede: field name = 'keyword'/}">
<Meta name = "description" content = "{dede: field name = 'description' function = 'html2text (@ me) '/}">
Template path call Tag: {dede: field name = 'templeturl '/}
Website title call Tag: {dede: global name = 'cfg _ webname '/}
Topic navigation call Tag: <a href = "/"> homepage </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 call topic Tag: {dede: onetype typeid = 'id'} [field: typename/] {/dede: onetype}
Channel topic call label: {dede: channel type = 'self '} <li> <a href =' [field: typelink/] '> [field: typename/] </a> </li> {/dede: channel}
Link call Tag: {dede: flink row = '24' linktype = 2 /}
Website copyright call Tag: {dede: global name = 'cfg _ powerby '/}
Website Record Filing call Tag: {dede: global name = 'cfg _ beian '/}
Current topic name tag: {dede: field name = 'typename '/}
Current location call Tag: {dede: field name = 'position '/}
List Article call Tag: {dede: list pagesize = '8'} {/dede: list}
Topic Link call Tag: [field: typelink function = 'str _ replace ("a", "a class = ulink", @ me) '/]
Author link call Tag: [field: writer/]
Click the call label in the list: [field: click/]
List comment call Tag: [field: postnum/]
View the full-text call label: <a href = "[field: arcurl/]"> View the full text... </a>
List time call Tag: [field: pubdate function = "GetDateTimeMK (@ me)"/]
List paging call Tag: {dede: pagelist listsize = '4' listitem = 'index pre pageno next end '/}
Title call Tag: {dede: field name = "title "/}
Source call Tag: {dede: field name = 'source '/}
The author calls the tag {dede: field name = 'write '/}
Document time call Tag: {dede: field name = 'pubdate' function = 'getdatemk (@ me )'/}
Tag call tag: {dede: Tag type = 'current '/}
Click the call label in the article: <script src = "{dede: field name = 'phpurl'/}/count. php? Aid = {dede: field name = 'id'/} & mid = {dede: field name = 'memberid'/} & view = yes "language =" javascript "> </script>
Content call Tag: {dede: field name = 'body '/}
Pagination call Tag: {dede: pagebreak /}
[<A href = "{dede: field name = 'phpurl'/}/stow. php? ArcID = {dede: field name = ID/} "> favorites </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 Customer count Tag: {dede: field name = 'digg'/} <a href = "javascript: digg ('digg', {dede: field name = 'id'/}); "> top </a>
Next tag in the previous article: {dede: prenext get = 'pre'/} {dede: prenext get = 'Next '/}
Toutiao recommendation call label: {dede: arclist row = 1 titlelen = 24 orderby = pubdate att = 2} <dt> [field: textlink/]
<Span> [field: description/]…… </Span> </dt> {/dede: arclist}
Call label of the latest article: {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 graphic call label: {dede: arclist row = 4 titlelen = 20 orderby = pubdate type = 'image. 'imgwidth = '000000' 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}
Recommendation document call Tag: {dede: arclist type = 'commend' titlelen = '40' row = '10'} <li> <a title = "[field: title function = 'htmlspecialchars (@ me) '/] "href =" [field: arcurl/] "> [field: title/] </a> </li> {/dede: arclist}
Random recommendation call Tag: {dede: arclist type = 'commend' titlelen = '26' orderby = 'rand' row = '10'} <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 = '40' row = '10'} <li> <a title = "[field: title function = 'htmlspecialchars (@ me) '/] "href =" [field: arcurl/] "> [field: title/] </a> </li> {/dede: arclist}
Call tags for relevant documents: {dede: likeart titlelen = '24' row = '10'} <li> <a title = "[field: title function = 'htmlspecialchars (@ me) '/] "href =" [field: arcurl/] "> [field: title/] </a> </li> {/dede: likeart}
Call the image 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 MARK: [field: description function = "cn_substr (@ me, 100)"/]...
Call the document tags tag: {dede: tag type = 'current '/}
Keyword and Description: {dede: field name = 'keyword '/}
{Dede: field name = 'description' function = 'html2text (@ me )'/}
Topic Introduction: {dede: field name = 'description' function = 'html2text (@ me )'/}
Call the external htm file: {dede: include file='head.htm 'ismake = 'yes '/}
Search the search result of {dede: global name = 'keyword'/} & quot; For the tag {dede: global name = 'cfg _ webname'/} in the search & quot; {dede: global name = 'keyword'/} </span> & quot; Result
Incremental serial number: [field: global name = autoindex/]
Add a line to each of the five rows in the list:
{Dede: list pagesize = '50 '}
<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 ();
$ Day3 = 24x3600;
If ($ ntime-@ me) <$ day3) @ me = $;
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 m 1 m3"> </DIV> </LI>
Method for changing the color of the last article list
{Dede: arclist orderby = pubdate titlelen = '26' row = '10 '}
[Field: global runphp = 'yes' name = autoindex]
$ A = "<div id = 'A'> ";
$ B = "<div id = 'B'> ";
If (@ me % 2) = 0) @ me = $;
Else @ me = $ B;
[/Field: global]
<Ul>
<Li> [field: title/] </li>
</Ul>
</Div>
{/Dede: arclist}
The Update Time of the article within 24 hours is displayed in Red:
[Field: pubdate runphp = 'yes']
$ A = "<font color = red>". strftime ('% m-% d', @ me). "</font> ";
$ B = strftime ('% m-% d', @ me );
$ Ntime = time ();
$ Day3 = 24x3600;
If ($ ntime-@ me) <$ day3) @ me = $;
Else @ me = $ B;
[/Field: pubdate]
COPY page content, automatically add website information to the back, which is conducive to SEO
<Script type = "text/javascript">
Document. body. oncopy = function () {setTimeout (function () {var text = clipboardData. getData ("text"); if (text) {text = text + "\ r \ n this article comes from www. address. COM Original article: "+ location. href; clipboardData. setData ("text", text) ;}, 100 )}
</Script>
Click the call tag in the article ranking by Time:
By Total: {dede: arclist row = '24' titlelen = 24 orderby = click}
Monthly: {dede: arclist row = '24' titlelen = 8 orderby = click subday = 30}
By week: {dede: arclist row = '24' titlelen = 8 orderby = click subday = 7}
Call a subtopic of a topic on the homepage
{Dede: channel type = 'sun' typeid = 'topic id '}
<A href = "[field: typelink/]"> [field: typename/] </a>
{/Dede: channel}
Or
{Dede: global name = 'maplist '/}
Search form call tags: <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"> only search for titles </option>
</Select>
<Input type = "image" src = "{dede: field name = 'templeturl'/}/images/topsearch_submit.gif"/>
</Form>
Implement the form of "article title-Level 2 topic-Level 1 topic-site name"

{Dede: field name = 'title'/}-{dede: field name = 'position' runphp = 'yes '}
$ Tc = "-"; // delimiter
$ Tw = $ GLOBALS ['cfg _ list_symbol']; // call location Separator
@ Me = html2text (@ me); // remove html tags
$ Tf = split ($ tw, @ me); // It is decomposed into arrays.
For ($ ta = (count ($ tf)-2); $ ta> = 1; $ ta --) {// cyclically assigned 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:
The published article displays a red date or a new or new small image.
Display a red date or add a new word or a new small image to an article published in the last three days (or the same day.
They all write extensions around pubdate.
2nd and 3 note the following: " cannot use double quotation marks; otherwise, it cannot.
If you want to add 3600*24*3 for the day, change it 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 ();
$ Day3 = 3600*24*3;
If ($ ntime-@ me) <$ day3) @ me = $;
Else @ me = $ B;
[/Field: pubdate]

2. =========== red (new) ==========

[Field: pubdate runphp = 'yes']
$ Aa = strftime ('% m-% d', @ me );
$ Ntime = time ();
$ Tagtime = @ me;
$ Day3 = 3600*24*3;
If ($ tagtime> $ ntime-$ day3) @ me = "<font color = 'red'> (new) </font> ";
Else @ me = $ aa;
[/Field: pubdate]

3366%%%%%%%%%%%%%%%%%%%%%%%%%%%%=

[Field: pubdate runphp = 'yes']
$ Aa = strftime ('% m-% d', @ me );
$ Ntime = time ();
$ Tagtime = @ me;
$ Day3 = 3600*24*3;
If ($ tagtime> $ ntime-$ day3) @ me = "Else @ me = $ aa;
[/Field: pubdate]
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 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 =" search for "{dede: field name = "title"/} "related content"> <font color = red> Search Baidu for more traditional Chinese characters </font> </a>]
Modify the website without adding http
<A href = "javascript:" onclick = 'window. open ("http://www.baidu.com/baidu? Word = {dede: field name = "title"/} ") 'target =" _ top "title =" Search Baidu for "{dede: field name = "title "/}"
Call tag: {dede: field name = 'keyword' 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}
Author: yu _ yfchun125

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.