熱門: 免費試用, 常見問題, 內(nèi)容管理, 商品管理, 備案類型流程指導(dǎo), 如何安裝, 重新安裝, 如何更換模板 , 忘記網(wǎng)站密碼
圖片列表模板存放在模板包archive文件夾中,命名以list_pic為前綴
在模板包中找到list_pic.html 模板,復(fù)制另存為一個新模板,命名為list_text_自定義名稱.html
自定義名稱可以是英文或拼音,但不能用中文!
所有列表頁面模板結(jié)構(gòu)基本類似,分別為頁頭,頁中,頁底三部分。
頁頭引用全站通用頁頭模板
{template 'header.html'}頁中部分為頁面主要顯示內(nèi)容,
圖片列表模板主要顯示欄目內(nèi)容列表,并以文字列表形式顯示。
{loop $archives $archive}
{$archive['title']}//內(nèi)容標題
{$archive['url']}//內(nèi)容鏈接
{$archive['thumb']}//內(nèi)容縮略圖圖片地址
{/loop}頁底引用全站通用頁底模板
{template 'footer.html'}圖片中引用欄目所屬內(nèi)容列表循環(huán)舉例
{loop $archives $archive}
<a href="{$archive['url']}" class="img-auto">
<img class="img-responsive" alt="{$archive['stitle']}" src="{$archive['thumb']}" onerror='this.src="{config::get('onerror_pic')}"' /></a>
{/loop}列表中內(nèi)容名稱
{$archive['title']}列表中內(nèi)容鏈接
{$archive['url']}列表中內(nèi)容鏈接Title
{$archive['stitle']}列表中內(nèi)容評級
{$archive['strgrade']}內(nèi)容簡介
{$archive['intro']}內(nèi)容縮略圖
{$archive['thumb']}發(fā)布時間
{$archive['adddate']}瀏覽次數(shù)
{$archive['view']}限定引用內(nèi)容文字數(shù)量
{cut(strip_tags($archive['content']),20)}其中20為字數(shù)
列表分頁
{if isset($pages)}
{category_pagination($catid)}
{/if}分頁代碼必須放置在{loop}外部!
用 CmsEasy 助您「輕松搭建」企業(yè)官網(wǎng)。
Copyright ? www.007xm.com.cn 2017 all right reserved,Powered byCmsEasy