Rumah > Artikel > pembangunan bahagian belakang > 默认是显示所有ID内容,怎么只单独显示某一ID内容
默认是显示所有ID内容,如何只单独显示某一ID内容
第一个公告的文章,默认是显示所有分类的文章,如何只显示其中一个ID分类的文章?
<br /> <div class="box"><br /> <h2>商城动态</h2><br /> <div class="p5" style="height:356px;"><br /> <ul class="list"><br /> {query:name=article order=id desc limit=14}<br /> <li><a href="{url:/index/article/id/$item[id]}" target="_blank">{echo:String::msubstr($item['title'],0,15)}</a></li><br /> {/query}<br /> </ul><br /> </div><br /> </div><br />
<br /> <div class="mt10 product_show " ><br /> {list:items=$category item=$categ}<br /> <dl class=""><br /> <dt class="head-bar"><span class="title"><a href="{url:/index/category/cid/$categ[id]}">{$categ['title']}</a></span><br /> {list:items=$categ['child'] item=$child}<br /> <span class="fr"><a href="{url:/index/category/cid/$child[id]}">{$child['title']}</a></span><br /> {/list}<br /> </dt><br /> <dd class="mt5 "><br /> <ul class="clearfix"><br /> {set:$path_like = "like '$categ[path]%'";}<br /> {query:name=goods where= is_online eq 0 and category_id in (select id from tiny_goods_category where path $path_like) order=sort desc limit=10}<br /> <li><br /> <dl class="product"><br /> <dt class="img"><a href="{url:/index/product/id/$item[id]}"><img src="{echo:Common::thumb($item['img'],220,220);}" style="max-width:90%"默认是显示所有ID内容,怎么只单独显示某一ID内容" ></a></dt><br /> <dd class="title"><a href="{url:/index/product/id/$item[id]}">{$item['name']}</a></dd><br /> <dd><span class="price">{$currency_symbol}{$item['sell_price']}</span><span class="market_price"><del>{$currency_symbol}{$item['market_price']}</del></span></dd><br /> </dl><br /> </li><br /> {/list} <br /> </ul><br /> </dd><br /> </dl><br /> {/list}<br /> </div><br />