织梦DEDECMS建站首页调用一问一答内容的方法
{dede:sql sql="select dede_ask.id,dede_ask.title,dede_askanswer.content from dede_ask LEFT JOIN dede_askanswer on dede_ask.id=dede_askanswer.askid where dede_askanswer.ifanswer=1 and dede_askanswer.ifcheck=1 or dede_ask.bestanswer=dede_askanswer.id order by dede_ask.id desc LIMIT 0,3"} 答:[field:content function=cn_substr(html2text(@me),40)/],...详情>>
问:[field:title function=cn_substr(@me,46)/]
{/dede:sql}