在文章頁調用前后文章的鏈接和標題,織夢模板默認上一篇和下一篇的標簽分別為{dede:prenext get='pre'/}和{dede:prenext get='next'/}。
我們只需要鏈接而不用標題,要怎么操作呢?下面給出最終實現代碼。
獲取上一篇地址
{dede:prenext get='pro' runphp="yes"}
preg_match_all('/(.+?)</a.*?>/sim', @me, $strResult, PREG_PATTERN_ORDER);
@me=$strResult[1][0];
{/dede:prenext}
獲取下一篇地址 
{dede:prenext get='next' runphp="yes"}
preg_match_all('/(.+?)</a.*?>/sim', @me, $strResult, PREG_PATTERN_ORDER);
@me=$strResult[1][0];
{/dede:prenext}
修改上下文章字數的方法 
打開/include/arc.archives.class.php文件
找到
$this->PreNext['pre'] = "上一篇:{$preRow['title']} ";
在它上面加入
$preRow['title']=cn_substr($preRow['title'],30);//最多顯示15個漢字
再找到
$this->PreNext['next'] = "下一篇:{$nextRow['title']} ";
在它上面加入
$nextRow['title']=cn_substr($nextRow['title'],30);//最多顯示15個漢字
然后重新生成網站即可。