武汉SEO
时光静好,与君语;细水流年,与君同;繁华落尽,与君老...

织梦技巧>正文

织梦列表页如何调用好评差评

2019-08-25 09:39

要想在列表页调用好评差评和中立。掌握了这个功能可以在一定程度上提搞织梦仿站的水平。

实现方法,需要记住下面的代码:

 

下面是调用好评的

{dede:field name='id' runphp='yes'}global $dsql;$tid=@me;$sql="select count(dede_archives.id) as count from dede_archives,dede_feedback where dede_feedback.aid=dede_archives.id and dede_archives.typeid=$tid and dede_feedback.ftype='good'";$row=$dsql->getOne($sql);@me=$row["count"];{/dede:field/}

 

如果你想调用中立就把good 改成 feedback,差评就改成bad。


本文链接:https://www.0937.biz/post-1192.html

图文推荐
热门标签