For websites built using the Imperial CMS program, the title of the column list page is the same for each page by default. That is to say, the title title is repeated from the first page of the column list to the last page, which will have some adverse effects on website optimization. The empire list page template tag [!--pagetitle--] calls out the page number. To add the page number, you need to use the following settings:
<title>[!--pagetitle--]-第[!--list.pageno--]页-<?=$public_r[sitename]?></title>However, the result of this setting is that the homepage also has the word "page". How to directly display title - website title on the first page of the column, and display title - which page on other pages? Here's how:
Open the file /e/class/functions.php and find the line of code:
$string=str_replace('[!--list.pageno--]',($pagenum==1?'':$pagenum),$string);Probably at line 3038.
Modify to the following code:
$string=str_replace('[!--list.pageno--]',($pagenum==1?'':'-第'.$pagenum.'页'),$string);Here, "-" is added directly to the code, and the column template title is set to [!--pagetitle--][!--list.pageno--]
You can also change it to other styles according to your own needs. If you want to add parentheses, the code is as follows:
$string=str_replace('[!--list.pageno--]',($pagenum==1?'':'(第'.$pagenum.'页)'),$string);