-
建站系統(tǒng)DedeCMS update v5.8.1.11 更新記錄
-
$field.is_jump
跳轉(zhuǎn)[j]采用新窗口彈出
<a href="{$field.arcurl}" {eyou:eq name='$field.is_jump' value='1'}target="_blank"{/eyou:eq}>{$field.title}</a>
獲取子欄目
{dede:channel type='son' typeid='欄目ID'}
<a href="[field:typelink/]">[field:typename/]</a>
{/dede:channel}
搜索框
<form name="formsearch" action="/plus/search.php">
<input type="hidden" name="pagesize" value="15">
<input type="hidden" name="kwtype" value="0"/>
<input type="text" name="q" value=""/>
</form>
搜索結(jié)果
搜索 {dede:global.keyword function=RemoveXSS(@me)/} 的結(jié)果
當(dāng)前文章URL地址
{dede:global.cfg_basehost/}{dede:field.id runphp='yes'}$result=GetOneArchive(@me);@me=$result['arcurl'];{/dede:field.id}
文章內(nèi)容摘要
[field:description function=cn_substr(@me,250)/]
文章鏈接
[field:arcurl/]
文章縮略圖
[field:litpic/]
文章長標(biāo)題
[field:fulltitle/]
文章點擊數(shù)
[field:click/]
2020-8-20
文章時間格式1
[field:pubdate function="MyDate('Y-m-d',@me)"/]
May 15, 2020
文章時間格式2
[field:pubdate function='strftime("%b %d, %Y",@me)'/]
文章標(biāo)題
[field:fulltitle/]
分頁通用樣式
.my_pages{clear:both!important;padding:5px 0 0;text-align:center;margin:5px auto;line-height:30px;}
.my_pages ul{text-align:center;list-style:none;}
.my_pages ul li{list-style:none;text-align:center;height:24px;display:inline;margin:0 2px;padding:0;overflow:hidden;white-space:nowrap;font-size:13px;}
.my_pages ul li a{background:#fff;color:#555;display:inline;height:24px;overflow:hidden;padding:6px 10px;margin:0;border: #999 1px solid;}
.my_pages ul li a:hover{color:#fff;background:#FF6600;border:#FF6600 1px solid;height:24px;overflow:hidden;text-decoration:none;cursor:pointer;}
.my_pages ul li.thisclass a{background:#FF6600;border:#FF6600 1px solid;height:24px;overflow:hidden;color:#fff;font-weight:700;}
當(dāng)前欄目鏈接
{dede:type}[field:typeurl/]{/dede:type}
相關(guān)文章
{dede:likearticle mytypeid='' row='' col='' titlelen='' infolen=''}{/dede:likearticle}
文章正文分頁
{dede:pagebreak/}
欄目外部鏈接打開
{dede:field.ispart runphp=yes}(@me==2)? @me=' target="_blank"':@me='';{/dede:field.ispart}
首頁高亮判斷
{dede:field name=typeid runphp=yes}(@me=='')? @me=' class="current"':@me='';{/dede:field}