PHPCMS:V9友情連結標籤使用說明

來源:互聯網
上載者:User

友情連結模組PC標籤調用說明

模組名:link

模組提供的可用操作

 操作名  說明
 type_list  擷取友情連結清單

擷取友情連結清單(type_list):

可用參數:

 參數名  是否必須 預設值 說明
siteid null 當前網站ID
linktype 1 顯示方式
order listorder DESC 排序方式
typeid null 分類ID

代碼例子:

 {pc:link  action="type_list" typeid="4" siteid="1" linktype="1" order="listorder DESC" num="8" return="pic_link"}

  {loop $pic_link $v}

  <li><a href="{$v['url']}" title="{$v['name']}" target="_blank"><img src="{$v[logo]}" width="90" height="30" /></a></li>

  {/loop}

  {/pc}

上面的例子中輸出了網站ID為1,分類ID為4的所有圖片友情連結

 欄位 類型  空  預設  注釋
id int(10) 0 收藏標識id
linkid int(10) 0 友情連結ID號
siteid mediumint(8) 0 網站ID
typeid smallint(5)   分類ID
linktype tinyint(1) 0 連結形式
name varchar(50) 0 網站名稱
url char(255) 0 網站URL地址
logo varchar(255) 0 LOGO地址
introduce text(0) 0 網站簡介
username varchar(30) 0 網站連絡人
listorder smallint(5) 0 排序值
elite tinyint(1) 0 是否推薦
passed tinyint(1) 1 是否通過審核
addtime int(10) 0 添加時間

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.