發(fā)表日期:2018-06 文章編輯:小燈 瀏覽次數(shù):2592
專題模塊PC標(biāo)簽調(diào)用說(shuō)明
模塊名:special
模塊提供的可用操作
操作名 | 說(shuō)明 |
lists | 專題列表 |
content_list | 專題信息列表 |
hits | 專題信息點(diǎn)擊排序 |
下面對(duì)所有的操作分開(kāi)說(shuō)明
專題列表(lists):
可用參數(shù):
參數(shù)名 | 是否必須 | 默認(rèn)值 | 說(shuō)明 |
siteid | 否 | 當(dāng)前站點(diǎn) | 站點(diǎn)ID |
elite | 否 | null | 是否推薦 |
isthumb | 否 | null | 必須有縮略圖 |
listorder | 否 | null | 排序方式 |
代碼例子:
{pc:special action="lists" siteid="$siteid" elite="1" listorder="2" num="3"}
<div class="changeDiv">
{/pc}
{loop $data $r}
<a href="{$r['url']}"><img src="{thumb($r['thumb'], 224, 112)}" width="224" height="112" alt="{$r['title']}" /><p><strong>{$r['title']}</strong><br />
{$r['description']}</p></a>
{/loop}
</div>
返回參數(shù)如下表:
字段 | 類型 | 空 | 默認(rèn) | 注釋 |
---|---|---|---|---|
siteid | smallint(5) | 否 | 所屬站點(diǎn)ID | |
id | smallint(5) | 否 | 0 | 專題ID |
title | char(60) | 否 | 專題名稱 | |
thumb | char(255) | 否 | 專題縮略圖 | |
banner | char(100) | 否 | 0 | 專題橫幅 |
description | char(255) | 是 | 0 | 專題導(dǎo)讀 |
url | char(100) | 是 | 0 | 專題url地址 |
ishtml | tinyint(1) | 否 | 0 | 生成靜態(tài) |
ispage | tinyint(1) | 是 | 0 | 首頁(yè)實(shí)現(xiàn)分頁(yè) |
int(10) | 是 | 0 | 創(chuàng)建時(shí)間 |
專題信息列表(content_list):
可用參數(shù):
參數(shù)名 | 是否必須 | 默認(rèn)值 | 說(shuō)明 |
specialid | 是 | null | 專題ID |
typeid | 否 | null | 分類ID |
isthumb | 否 | null | 必須有縮略圖 |
listorder | 否 | null | 排序方式 |
代碼例子:
{pc:special action="content_list" specialid="$specialid" typeid="$typeid" listorder="2" num="3"}{loop $data $r}
{/pc}
<div class="bk20 hr"><hr></div><h4 class="blue"><a href="{$r['url']}" target="_blank">{$r['title']}</a></h4>
<p>{str_cut($r['description'], 150)}</p>
{/loop}
返回參數(shù)如下表:
字段 | 類型 | 空 | 默認(rèn) | 注釋 |
---|---|---|---|---|
id | mediumint(8) | 否 | ID | |
smallint(5) | 否 | 0 | 專題ID | |
title | char(80) | 否 | 文章標(biāo)題 | |
smallint(5) | 否 | 分類ID | ||
char(100) | 否 | 0 | url地址 | |
char(100) | 是 | 0 | 縮略圖 | |
char(40) | 是 | 0 | 關(guān)鍵字 | |
int(10) | 否 | 0 | 添加時(shí)間 | |
int(10) | 否 | 0 | 更新時(shí)間 | |
islink | tinyint(1) | 是 | 0 | 外部鏈接 |
專題內(nèi)容排行榜(hits):
可用參數(shù):
參數(shù)名 | 是否必須 | 默認(rèn)值 | 說(shuō)明 |
specialid | 否 | null | 專題ID |
listorder | 否 | null | 排序方式 |
代碼例子:
{pc:special action="hits" specialid="$specialid" listorder="2" num="3"}
<ul>
{loop $data $r}
{/pc}
<li><a href="{$r['url']}">{$r['title']}</a></li>
{/loop}
返回參數(shù)如下表:
字段 | 類型 | 空 | 默認(rèn) | 注釋 |
---|---|---|---|---|
hitsid | char(30) | 否 | ID | |
views | int(10) | 否 | 0 | 總瀏覽數(shù) |
yesterdayviews | int(10) | 否 | 0 | 昨天瀏覽數(shù) |
dayviews | int(10) | 否 | 0 | 當(dāng)日瀏覽數(shù) |
weekviews | int(10) | 否 | 0 | 本周瀏覽數(shù) |
monthviews | int(10) | 否 | 0 | 本月瀏覽數(shù) |
url | char(100) | 是 | 0 | url地址 |
title | char(60) | 否 | 0 | 標(biāo)題 |
日期:2018-09 瀏覽次數(shù):3878
日期:2018-06 瀏覽次數(shù):4106
日期:2018-06 瀏覽次數(shù):3218
日期:2018-06 瀏覽次數(shù):3670
日期:2018-06 瀏覽次數(shù):3081
日期:2018-06 瀏覽次數(shù):3222
日期:2018-06 瀏覽次數(shù):3325
日期:2018-06 瀏覽次數(shù):3034
日期:2018-06 瀏覽次數(shù):3059
日期:2018-06 瀏覽次數(shù):3514
日期:2018-06 瀏覽次數(shù):3116
日期:2018-06 瀏覽次數(shù):2805
日期:2018-06 瀏覽次數(shù):2592
日期:2018-06 瀏覽次數(shù):2779
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.