帝国cms文章分页标题页码怎么设置

如题所述

内容分页标题:帝国cms列表标题1与列表标题2(分页标题)如何设置
不带分页标题标签:[!--pagetitle--]
举二个调用示例:

复制代码 代码示例:
<title>帝国cms列表标题1与列表标题2(分页标题)如何设置_[!--class.name--]</title> (带分页标题,未设置分页标题自动加页码)
<title>[!--pagetitle--]_[!--class.name--]</title> (不调用分页标题,多页内容标题相同)
二、再来看列表分页标题。
列表分页页码:[!--list.pageno--]

复制代码 代码示例:
<title>[!--pagetitle--][!--list.pageno--]</title> (列表标题1,列表标题2……)
直接使用列表目录页,也就是列表第一页标题就变成“列表标题1”,也带了页码。
修改:/e/class/functions.php
找到

复制代码 代码示例:
//取得分页参数
$returnpager=$thefun($num,$pagenum,$dolink,$dotype,$page,$lencord,$ok,$myoptions);
$showpage=$returnpager['showpage'];
$myoptions=$returnpager['option'];
$list1=str_replace($bereplistpage,$showpage,$list_r[0]);
$list2=str_replace($bereplistpage,$showpage,$list_r[2]);
//多余数据 www.jquerycn.cn
if($changerow<=$rownum&&$listtext<>$list_r[1])
{
$string.=$listtext;
}
$listtext=$list_r[1];
$changerow=1;
$string=$list1.$string.$list2;
//替换分页数
$string=str_replace('[!--list.pageno--]',$pagenum,$string);
WriteFiletext($path,$classlevel.$string);
$string='';
}
$no++;
}
$empire->free($sql);
}
做如下的相应修改。

复制代码 代码示例:
$string=str_replace('[!--list.pageno--]',$pagenum,$string);

修改为:

复制代码 代码示例:
$string=str_replace('[!--list.pageno--]',$pagenum==1?'':$pagenum,$string);
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答