<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦dedecms 5.7首页调用问答的代码

时间:2020-12-21

鉴于网站修正的需要,现在保存织梦dedecms调用问答模块的代码在这里,以方便未来有可能使用到,下面给出调用问答到首页的代码,供大家参考,适用于织梦dedecms v5.7版本,我是这个版本的,其他版本可以修改表面来进行修正调用 。

织梦dedecms 5.7首页调用问答的代码

{dede:sql sql="select hos_ask.id,hos_ask.title,hos_askanswer.content from hos_ask LEFT JOIN hos_askanswer on hos_ask.id=hos_askanswer.askid where hos_askanswer.ifanswer=1 and hos_askanswer.ifcheck=1 and hos_ask.bestanswer=hos_askanswer.id order by hos_ask.id desc LIMIT 0,4"}       <ul>           <li class="qua"><a href="/ask/?ct=question&askaid=[field:id/]" target="_blank">[field:title function=cn_substr(@me,60)/]</a></li>            <li class="quo">[field:content function=cn_substr(html2text(@me),60)/]...<a href="/ask/?ct=question&askaid=[field:id/]">[详细]</a></li>        </ul> {/dede:sql}

 

显示四行问答的代码 :

 

{dede:ask row='4' qtype='new' tid='0' titlelen='60'}    <li>·<a  href="[field:url/]" target="_blank" >[field:title/]</a></li>    {/dede:ask}
    0
    首页
    案例
    关于
    联系