迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
不想讓它在首頁的導航中顯示,然后隱藏掉了,但是我想調用它的內容,如何實現。因為隱藏掉了,無法共享在其他子目錄中使用
不想讓【它】在首頁的導航中顯示
【它】是指欄目嗎??
回復@迅睿框架聯合創始人 是的,已隱藏,但是想調用它里面的內容。
{category module=share pid=24 return=r1}
{if $cat.name==$r1.name}
{module module=yltd catid=$r1.id order=displayorder_asc num=1}
<div id="zzsc">
<div class="tit_com" style="position: relative;">
{category module=share pid=24}
{if $cat.name==$t.name}
{category module=share id=$t.pid return=c1}
<div class="h2">{$c1.name}</div>
{/category}
<div class="more_com" style="position: absolute;right: 0;bottom: 0;"><a href="{$t.url}" target="_blank">查看更多</a></div>
{/if}
就是想這里寫入隱藏的那一頁也被這里調用讀取
隱藏了是不能顯示在category標簽循環中的了,你可以加一個強制顯示開關
回復@迅??蚣苈摵蟿撌既? 好的。非常感謝。弱弱再問一下,
{category module=share pid=24 show=1} 加在這里對嗎?
回復@迅??蚣苈摵蟿撌既? 全加后顯示這個
不想讓【它】在首頁的導航中顯示
【它】是指欄目嗎??
回復@迅睿框架聯合創始人 是的,已隱藏,但是想調用它里面的內容。
{category module=share pid=24 return=r1}
{if $cat.name==$r1.name}
{module module=yltd catid=$r1.id order=displayorder_asc num=1}
<div id="zzsc">
<div class="tit_com" style="position: relative;">
{category module=share pid=24}
{if $cat.name==$t.name}
{category module=share id=$t.pid return=c1}
<div class="h2">{$c1.name}</div>
{/category}
<div class="more_com" style="position: absolute;right: 0;bottom: 0;"><a href="{$t.url}" target="_blank">查看更多</a></div>
{/if}
{/category}
就是想這里寫入隱藏的那一頁也被這里調用讀取
隱藏了是不能顯示在category標簽循環中的了,你可以加一個強制顯示開關
回復@迅??蚣苈摵蟿撌既? 好的。非常感謝。弱弱再問一下,
{category module=share pid=24 return=r1}
{if $cat.name==$r1.name}
{module module=yltd catid=$r1.id order=displayorder_asc num=1}
<div id="zzsc">
<div class="tit_com" style="position: relative;">
{category module=share pid=24 show=1} 加在這里對嗎?
{if $cat.name==$t.name}
{category module=share id=$t.pid return=c1}
<div class="h2">{$c1.name}</div>
{/category}
<div class="more_com" style="position: absolute;right: 0;bottom: 0;"><a href="{$t.url}" target="_blank">查看更多</a></div>
{/if}
{/category}
回復@迅??蚣苈摵蟿撌既? 全加后顯示

這個