云企logo

织梦dedecms文章页单独调用上一篇下一篇URL网址链接的方法

更新日期:2022-06-11  
织梦dedecms文章页单独调用上一篇下一篇URL网址链接的方法:
上一篇文章URL链接:
{dede:prenext get='pro' runphp="yes"}
preg_match_all('/<a.*?(?: |\t|\r|\n)?href=['"]?(.+?)['"]?(?:(?: |\t|\r|\n)+.*?)?>(.+?)</a.*?>/sim', @me, $strResult, PREG_PATTERN_ORDER);@me=$strResult[1][0];
{/dede:prenext}

下一篇文章URL链接:
{dede:prenext get='next' runphp="yes"}
preg_match_all('/<a.*?(?: |\t|\r|\n)?href=['"]?(.+?)['"]?(?:(?: |\t|\r|\n)+.*?)?>(.+?)</a.*?>/sim', @me, $strResult, PREG_PATTERN_ORDER);@me=$strResult[1][0];
{/dede:prenext}

 

上一篇:pootcms常用标签收藏

下一篇:pbootcms模板内页调用当前栏目的子栏目
首页