帝国CMS内容页怎么设置分页功能?(帝国CMS内容页增加内容分页上一页标签功能)
帝国CMS内容页怎么设置分页功能?(帝国CMS内容页增加内容分页上一页标签功能)
帝国CMS一直以来升级没有提供内容分页的上一页标签功能,只有一个:内容页下一页[!--next.page--] 标签!所以下面就是要改造一下这个标签,实现内容页上一页的功能!下面帝国CMS模板网就来为大家分享:
步骤如下:
打开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--]
本文原文地址:http://www.cnlogo8.com/moban/diguocms/130765.html转载请注明原站地址
热门排行
-
帝国cms网站地图sitemap.xml的制作方法2022年03月07日88
-
帝国CMS信息提示页美化模板(分享一个帝2022年03月09日55
-
帝国CMS怎么提高网页打开速度?(帝国CMS提2022年04月06日54
-
帝国CMS内容模板获取所有分页数和当前2022年04月05日49
-
帝国cms列表页调用文章关键词与tag的方2022年03月07日46
-
帝国CMS列表页文章怎么升序降序排列文2022年03月11日46