迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
大佬們 列表頁 如何給二級欄目加高亮樣式
還有列表頁如何加篩選功能就像這種
求你不要把代碼截圖,改都沒辦法給你改,,,
回復(fù)迅??蚣軇?chuàng)始人
{category module=share pid=37} {$t.name}{/category}
代碼是這樣的
{category module=share pid=37} {if in_array($t.id, $cat.catids)} 是當前欄目 {/if} {$t.name} {/category}
沒看明白
{category module=share pid=37} {if in_array($t.id, $cat.catids)} 給二級欄目加高亮 {/if} {$t.name} {/category}
很簡單的邏輯
回復(fù)@歐爾麥特
{category module=share pid=37} /if}> {$t.name} {/category}
沒用啊 都顯示的是高亮
{category module=share pid=37} <a href="{$t.url}" {if in_array($t.id,$cat.catids)} class="active" {/if}> {$t.name} </a> {/category} 代碼是這樣
{if $t.id == $catid} 給二級欄目加高亮 {/if}
沒啥用啊 {category module=share pid=37} <a href="{$t.url}" {if $t.id == $catid} class="active" {/if} >{$t.name}</a> {/category} 展示出來的效果是
回復(fù)@靠懸賞(設(shè)置懸賞)賺錢買授權(quán)
{category module=share pid=37} <a target="_blank" href="{$t.url}" {if IS_SHARE && $catid && in_array($catid, $t.catids)} class="active"{/if}> {$t.name} </a> {/category}
回復(fù)@Alvin 試過了 還是不行
回復(fù)@Alvin 好了 謝謝
還有列表頁如何加篩選功能

就像這種
求你不要把代碼截圖,改都沒辦法給你改,,,
回復(fù)迅??蚣軇?chuàng)始人
代碼是這樣的
回復(fù)迅??蚣軇?chuàng)始人
沒看明白
很簡單的邏輯
回復(fù)@歐爾麥特
沒用啊

都顯示的是高亮
回復(fù)@靠懸賞(設(shè)置懸賞)賺錢買授權(quán)
回復(fù)@Alvin 試過了 還是不行
回復(fù)@Alvin 好了 謝謝