MyBBS
PBOOTCMS模板如何实现产品置顶 - Printable Version

+- MyBBS (https://bbs.mjjjd.eu.org)
+-- Forum: My Category (https://bbs.mjjjd.eu.org/forumdisplay.php?fid=1)
+--- Forum: WEB (https://bbs.mjjjd.eu.org/forumdisplay.php?fid=3)
+--- Thread: PBOOTCMS模板如何实现产品置顶 (/showthread.php?tid=53)



PBOOTCMS模板如何实现产品置顶 - adahrzgj - 10-10-2022


找到文件夹 templates defalut index.html

用编辑器打开index.html文件,找到产品的地方

<div class="boxlt_li">
   <ul>
   {pboot:list scode=34 num=10 order=date}
   <li><i>[list:i]</i><a href="[list:link]" title="[list:link]" 
     {/pboot:list}
   </ul>
   </div>
   </div>
 
将order=sorting 改成  istop=1

如果要调用推荐产品,用这个标签  isrecommend=1

头条产品:isheadline=1