Dede tag Call Daquan dedecms a split line _php tutorial

Source: Internet
Author: User
Key Description Call Tag:

Template path call tag: {Dede:field name= ' Templeturl '/}
Site Title call tag: {dede:global name= ' cfg_webname '/}
Column navigation call Tags: home
{dede:channel type= ' top ' row= ' 8 ' currentstyle= "
  • ~typename~
  • "}
  • [field:typename/]

  • {/dede:channel}
    Specify the calling column label: {dede:onetype typeid= ' ID '}[field:typename/]{/dede:onetype}
    Channel column call tag: {dede:channel type= ' self '}
  • [field:typename/]
  • {/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: Read more ...
    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:
    Article content call tag: {Dede:field name= ' body '/}
    Article Paging call tag: {dede:pagebreak/}
    Favorites
    Recommended
    Reviews
    Print
    Close
    Article Top guest number tags: {dede:field name= ' Digg '/} Top
    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}
    [field:textlink/]
    [field:description/] ...
    {/dede:arclist}
    Latest article call tag: {dede:arclist row=8 titlelen=24 orderby=pubdate}
  • [field:textlink/]
  • {/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 '}
    [Field:title/]
    {/dede:arclist}
    Recommended document Call tag: {dede:arclist type= ' commend ' titlelen= ' + ' row= ' 10 '}
  • [Field:title/]
  • {/dede:arclist}
    Randomly recommended call tag: {dede:arclist type= ' commend ' titlelen= ' orderby= ' rand ' row= ' 10 '}
  • [Field:title/]
  • {/dede:arclist}
    Hot Document Call tag: {dede:arclist orderby= ' click ' titlelen= ' + ' row= ' 10 '}
  • [Field:title/]
  • {/dede:arclist}
    Related Document Call tag: {dede:likeart titlelen= ' row= ' 10 '}
  • [Field:title/]
  • {/dede:likeart}
    Call the picture link tag:
    [field:image/]
    Call text link tag: [field:title/]
    [Field:title/]
    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 Result-{dede:global name= ' cfg_webname '/} search ' {dede:global name= ' keyword '/}"The result
    Incrementing serial number: [Field:global name=autoindex/]
    List 5 lines plus a line:
    {dede:list pagesize= ' 50 '}
  • Target=_blank>[field:title function= "Cn_substr (@me,)"/][field:pubdate runphp= ' yes ']
    $a = "". Strftime ('%m-%d ', @me). "";
    $b =strftime ('%m-%d ', @me);
    $ntime = time ();
    $day 3 = 3600 * 24;
    if ($ntime-@me) < $day 3) @me = $a;
    else @me = $b;
    [/field:pubdate]

    [Field:global name=autoindex runphp= "yes"]
    if (@me%5==0) @me = " ";
    else @me = "";
    [/field:global]
    {/dede:list}

  • Latest article List "Alternate color" method
    {dede:arclist orderby=pubdate titlelen= ' row= ' 10 '}
    [Field:global runphp= ' yes ' name=autoindex]
    $a = "";
    $b = "";
    if ((@me%2) ==0) @me = $a;
    else @me = $b;
    [/field:global]

      • [field:title/]



    {/dede:arclist}
    The updated article time in 24 hours is shown in red:
    [Field:pubdate runphp= ' yes ']
    $a = "". Strftime ('%m-%d ', @me). "";
    $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

    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 '}
    [field:typename/]
    {/dede:channel}
    Or
    {dede:global name= ' maplist '/}
    Search Table Monotone Label:
    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: if: "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 = "". Strftime ('%m-%d ', @me). "";
    $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 = "(new)";
    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 = "". $aa;
    else @me = $AA;
    [/field:pubdate]
    Time effect
    [Field:pubdate runphp= "yes"]
    if (Time ()-@me) < (60*60*24)) {@me = '. Strftime ("%h:%m", @me). ';
    else {@me =strftime ("%m-%d", @me);}
    [/field:pubdate]
    DEDE SEO Tips Add a Baidu search this article
    "Search more traditional Chinese characters in Baidu"
    Change the URL without http
    "Call tag: {dede:field name= ' keywords ' runphp= ' yes '}
    if (!empty (@me)) {
    $KWS = Explode (' ', @me);
    @me = "";
    foreach ($kws as $k) {
    @me. = "$k";
    }
    @me = str_replace (' + ', ', trim (@me));
    }
    {/dede:field}
    Author: yu__yfchun125

    http://www.bkjia.com/PHPjc/478120.html www.bkjia.com true http://www.bkjia.com/PHPjc/478120.html techarticle 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 Tune ...

  • 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.