迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
在線咨詢
模板標(biāo)簽里面
如何根據(jù)分類獲取內(nèi)容?
插件版權(quán):官方插件插件名稱:網(wǎng)店系統(tǒng)
index.php?s=store&c=zhe
這個頁面專門顯示折扣的商品
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
調(diào)用商品直接用樓上的折扣頁面,你要調(diào)用主題的話可以用我這個
{table table_site=store_goods_promotion} {$t.title} {/table}
回復(fù)@小波工作室--標(biāo)簽和API大師 可以根據(jù)分類調(diào)用不內(nèi)容不?比如有些分類不想顯示?
回復(fù)@獨名 試試 {table table_site=store_goods_promotion type=1}
回復(fù)@LandQ 可以根據(jù)主題列出該主題下的折扣內(nèi)容嗎?
回復(fù)@獨名 試試這樣
{table table_site=store_goods_promotion type=1} {php $data = \Phpcmf\Service::M()->table(SITE_ID.'_store')->where('`id` IN (select cid from `'.\Phpcmf\Service::M()->dbprefix(SITE_ID.'_store_goods_promotion_item').'` where pid='.$t.id.')')->getAll();} <div> <h2>{$t.title}</h2> <h3>活動商品</h3> <ul> {loop $data $c} <li><a href="{$c.url}">{$c.title}</a></li> {/loop} </ul> </div> {/table}
index.php?s=store&c=zhe
這個頁面專門顯示折扣的商品
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
調(diào)用商品直接用樓上的折扣頁面,你要調(diào)用主題的話可以用我這個
{table table_site=store_goods_promotion} {$t.title} {/table}回復(fù)@小波工作室--標(biāo)簽和API大師 可以根據(jù)分類調(diào)用不內(nèi)容不?比如有些分類不想顯示?
回復(fù)@獨名 試試 {table table_site=store_goods_promotion type=1}
回復(fù)@LandQ 可以根據(jù)主題列出該主題下的折扣內(nèi)容嗎?

回復(fù)@獨名 試試這樣
{table table_site=store_goods_promotion type=1} {php $data = \Phpcmf\Service::M()->table(SITE_ID.'_store')->where('`id` IN (select cid from `'.\Phpcmf\Service::M()->dbprefix(SITE_ID.'_store_goods_promotion_item').'` where pid='.$t.id.')')->getAll();} <div> <h2>{$t.title}</h2> <h3>活動商品</h3> <ul> {loop $data $c} <li><a href="{$c.url}">{$c.title}</a></li> {/loop} </ul> </div> {/table}