最近很多做中英文網(wǎng)站客戶,涉及到英文的頁(yè)碼,網(wǎng)上有一些教程通過(guò)修改include下的arc.listview.php文件可以實(shí)現(xiàn)
不用修改文件,你只需要用到織夢(mèng)的替換函數(shù):str_replace 就可以實(shí)現(xiàn)。
首先在頁(yè)碼地方找到頁(yè)碼標(biāo)簽修改成
{dede:pagelist listitem="index,end,pre,next,pageno" listsize="5"function="str_replace(array('首頁(yè)','上一頁(yè)','下一頁(yè)','末頁(yè)','共','頁(yè)','條記錄'),array('Home','Pre','Next','Last','Total','Page','Records'),@me)"/}
再找到
上一篇改成
{dede:prenext get='pre' function="str_replace(array('上一篇','沒有了'),array('PREVIOUS','Nothing'),@me)"/}
下一篇改成
{dede:prenext get='next' function="str_replace(array('下一篇','沒有了'),array('NEXT','Nothing'),@me)"/}