dedecms dream weaving all tags call document finishing

I recently studied the background of dream weaving and found some very useful label calling methods. Share with you~~


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 label: {dede:field name ='templeturl'/} 
-------------------------------------------- ------------------------------------
Web site title call tag: {dede:global name='cfg_webname' /} 
------------------------------------------------ --------------------------------
Column navigation call label: <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 label of the calling column: {dede:onetype typeid='ID'}[field:typename /]{/dede:onetype} 
- -------------------------------------------------- ----------------------------
Channel column call label: {dede:channel type='self'}<li><a href= '[field:typelink/]'>[field:typename/]</a></li>{/dede:channel} 
--------------------- -------------------------------------------------- ---------
Friendly link call tag: {dede:flink row='24' linktype=2/}
--------------------------------------------- -----------------------------------
Website copyright call label: {dede:global name='cfg_powerby'/ } 
-------------------------------------------------- ------------------------------
Web site record call label: {dede:global name='cfg_beian'/} 
---- -------------------------------------------------- --------------------------
Current column name tag: {dede:field name='typename'/} 
-------- -------------------------------------------------- ----------------------
Call label at current position: {dede:field name='position'/} 
------------ -------------------------------------------------- ------------------
Call tags for list articles: {dede:list pagesize='8'}{/dede:list} 
----------- -------------------------------------------------- -------------------
Column link call label: [field:typelink function='str_replace("a ","a class=ulink ",@me)'/] 
-------------------------------------------------- ------------------------------
Author link call tag: [field:writer /] 
--------- -------------------------------------------------- ---------------------
List click to call label: [field:click/] 
------------------ -------------------------------------------------- ------------
List comment call tag: [field:postnum/] 
--------------------------- -------------------------------------------------- ---
Check the full text call tag: <a href="[field:arcurl/]">Check the full text...</a> 
-------------------- -------------------------------------------------- ----------
List time call label: [field:pubdate function="GetDateTimeMK(@me)"/] 
-------------------- -------------------------------------------------- ----------
List page call label: {dede:pagelist listsize='4' listitem='index pre pageno next end'/} 
------------------------- -------------------------------------------------- -----
Article title call tag: {dede:field name="title"/} 
----------------------------- -------------------------------------------------- -
source call tags: {Dede: Field name = 'source' /} 
--------------------------------- -----------------------------------------------
Called by the author of the article Label: {dede:field name='writer' /} 
------------------------------------- -------------------------------------------
Article time call label: {dede :field name='pubdate' function='GetDateMk(@me)' /}
------------------------------------------------ --------------------------------
Article Tag call tag: {dede:tag type='current'/} 
-------------------------------------------------- ------------------------------
Click to call the label of 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> 
---- -------------------------------------------------- --------------------------
Article content call tag: {dede:field name='body'/} 
-------- -------------------------------------------------- ----------------------
Article pagination 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/}">Recommend< /a>] 
[<a href="{dede:field name='phpurl'/}/feedback.php?arcID={dede:field name=ID/}">评论</a>] 
[<a href="#" onClick="window.print();">Print</a>] 
[<a href="#" onClick="window.close();">Close</a>] 
-------------------------------------------------- ------------------------------
Tags of article likes: {dede:field name='digg'/} <a href ="javascript:Digg('digg',{dede:field name='id'/});">Like it</a> 
------------------- -------------------------------------------------- -----------
Previous Next Tag: {dede:prenext get='pre'/}{dede:prenext get='next'/} 
--------- -------------------------------------------------- --------------------- The
headline recommended call tag: {dede:arclist row=1 titlelen=24 orderby=pubdate att=2} <dt> [field:textlink /]
      <span>[field: description/]……</span> </dt> {/dede:arclist} 
-------------------------------------------------- ------------------------------The
latest article call tag: {dede:arclist row=8 titlelen=24 orderby=pubdate}< li>[field:textlink/]</li> {/dede:arclist} 
-------------------------------- ------------------------------------------------
Thermal key Word call label: {dede:hotwords num='5' subday='30'/} 
------------------------------ --------------------------------------------------
The latest graphic call label: {dede:arclist row=4 titlelen=20 orderby=pubdate type='image.' imgwidth='152' imgheight='98'}
        <dd><a href="[field:arcurl/] "><img src="[field:picname/]" alt="[field:title/]" ></a><span><a title="[field:title function='htmlspecialchars(@me)' /] " href="[field:arcurl /]">[field:title /]</a></span> </dd>{/dede:arclist} 
--------------------------------------------------------------------------------
推荐文档调用标签: {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} 
--------------------------------------------------------------------------------
随机推荐调用标签: {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} 
--------------------------------------------------------------------------------
热点文档调用标签: {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} 
--------------------------------------------------------------------------------
相关文档调用标签: {dede:likeart titlelen='24' row='10'} <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a></li> {/dede:likeart} 
--------------------------------------------------------------------------------
调用图片链接标记: <a href="[field:arcurl/]"><img src="[field:picname/]" alt="[field:title/]" ></a> <a href='[field:arcurl /]'>[field:image/]</a> 
--------------------------------------------------------------------------------
Call the 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 article tags: {dede:tag type='current'/} 
------------------- -------------------------------------------------- -----------
Article keywords and description: {dede:field name='keywords'/} {dede:field name='description' function='html2text(@me)' /} 
--------------------------------------------------------------------------------
Column introduction: {dede:field name='description' function='html2text(@me)'/} 
--------------------------- -------------------------------------------------- ---
Call an 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'/ }</span>" the result 
------------------------------------------ --------------------------------------
Incremental serial number: [field:global name=autoindex/ ] 
------------------------------------------------- -------------------------------The
list is separated by 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,48)"/]</a>[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]<br>
[field:global name=autoindex runphp="yes"]
if(@me%5==0)@me="<hr />";
else @me="";
[/field:global]
{/dede:list}
<DIV class="line2 m1 m3"></DIV></LI> "Interlace Color Change" in the latest article list 
------------------------------------------- ------------------------------------- How to

{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=$a;
else @me=$b;
[/field:global]
<ul>
<li>[field:title/]</li>
</ul>
</div>
{/dede:arclist} 
--------------------------------------------------------------------------------
24小时内更新的文章时间显示为红色: 
[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate] 
-------------------------------------------------- ------------------------------
COPY page content, automatically add website information at 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 + "rnThis article is from www. Address. COM original link: "+location.href; clipboardData.setData("text", text);} }, 100)}
</script> 
----------------- -------------------------------------------------- -------------
Click the article leaderboard to call the label by time: 
by total: {dede:arclist row='24' titlelen=24 orderby=click} by 
month: {dede:arclist row= '24' titlelen=8 orderby=click subday=30} 
By week: {dede:arclist row='24' titlelen=8 orderby=click subday=7}
call a sub-column of a column on the homepage 
{dede:channel type=’sun’ typeid=’栏目ID’}
<a href=”[field:typelink/]“>[field:typename/]</a>
{/dede:channel}
或者
{dede:global name=’maplist’/} 
--------------------------------------------------------------------------------
搜索表单调用标签: 
<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>智能模糊搜索</option>       </select>
        <option value="title">Search title only</option>

      <input type="image" src="{dede:field name='templeturl'/}/images/topsearch_submit.gif" />
    </form> 
---------------- -------------------------------------------------- --------------
Realize the form of "article title-2 level column-1 level column-website name" 
{dede:field name='title'/}-{dede:field name=' position' runphp='yes'}
$tc="-"; //Separator
$tw=$GLOBALS['cfg_list_symbol']; //Call position separator
@me=html2text(@me); //Remove html tag
$tf=split($tw,@me); //Decompose into an array
for($ta=(count($tf)-2);$ta>=1;$ta--){ //Assign a value to $ in a loop 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: <img src='{dede:field name="litpic"/}'> 
---------------------------- -------------------------------------------------- -
publish articles red date or add new words or new small picture
to the article nearly three days (or day) released by the red date or add new words or new small pictures.
They all write articles around pubdate and write extensions.
The second and third issues should be noted: For example: "<img src='new.gif' /> cannot use double quotation marks, otherwise it will not work.
If you want to add the same day, change 3600 * 24 * 3 to 3600 * 24 is fine .
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 = $a;
else @me =$b;
[/field:


$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]
3、==========加new.gif小图片========
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "<img src='new.gif' />".$aa;
else @me = $aa;
[/field:pubdate] 
--------------------------------------------------------------------------------
一种很酷的时间效果 
[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 plus a Baidu search for this article 
[<a href="javascript:" οnclick='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 on Baidu"><font color=red>Search for more traditional characters on Baidu</font></a>] 
Change your URL , Without http, or
【<a href="javascript:" οnclick='window.open("http://www.baidu.com/baidu?word={dede:field name="title" /}")' target="_top" title="在百度搜索“{dede:field name="title" /}”相关内容"><font color=red>搜索说说</font></a>】 
--------------------------------------------------------------------------------
调用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} 

Guess you like

Origin blog.csdn.net/qq_39339179/article/details/109805886