帝国CMS内容页增加内容分页上一页标签功能!氟西汀1年前发布关注私信0517 帝国CMS一直以来升级没有提供内容分页的上一页标签功能,只有一个:内容页下一页[!–next.page–] 标签!所以下面就是要改造一下这个标签,实现内容页上一页的功能! 步骤如下: 打开e/class/functions.php文件 查找: //取得当前页 if($thispagenum!=1) 在这个上面增加: if($thispagenum==$j) { $thisshanglink=$dolink.$add[filename].$filetype; } else { $thisjs=$j-1; if($thisjs==1){$thisshanglink=$dolink.$add[filename].$filetype;} else if($thisjs==0){$thisshanglink=$dolink.$add[filename].$filetype;} else{$thisshanglink=$dolink.$add[filename].’_’.$thisjs.$filetype;} } 然后查找: $string=str_replace(‘[!–next.page–]’,$thisnextlink,$string); 在下面添加: $string=str_replace(‘[!–shang.page–]’,$thisshanglink,$string); OK!改造完毕! 内容里调用方法:[!–shang.page–] 帝国CMS内容页增加内容分页上一页标签功能!.doc © 版权声明 本站未注明转载的文章均为原创,并采用 CC BY-NC-SA 4.0 授权协议,转载请注明来源,谢谢! 分享是一种美德,当你分享时请你附带上本文链接。 THE END帝国cms教程 点赞7 分享QQ空间微博QQ好友海报分享复制链接收藏