很多人在網(wǎng)站建設的時候,對ASPCMS的相互新聞不知道怎么調(diào)用.經(jīng)研究和測試以后,公布相關(guān)新聞的調(diào)用方法。
需要修改的文件位置:/INC/AspCms_MainClass.asp
找到如下代碼:
if not isnul(aboutkey) then
aboutkey=replace(getTagID(aboutkey),"}{","%' or ContentTag like '%")
aboutkey=replace(aboutkey,"{"," (ContentTag like '%")
aboutkey=replace(aboutkey,"}","%')")
aboutkey=replace(aboutkey,"%'","}%'")
aboutkey=replace(aboutkey,"'%","'%{")
whereSort=whereSort&" and "&aboutkey
end if
大概在835行吧。注意我標色的位置;
把getTagID(aboutkey)替換為aboutkey。
修改完成,TAG匹配功能正常。
前臺調(diào)用
{aspcms:content sort={aspcms:topsortid} tag=[news:tag] num=9 order=order}
{/aspcms:content}
本文原創(chuàng),轉(zhuǎn)載請標明出處