First, site title to the site name
<?php $SITES = GetCache (' sitelist ', ' Commons ');?>
<title>{if isset ($SEO [' title ']) &&!empty ($SEO [' title '])} {$SEO [' title ']}{/if}{$SEO [' Site_title ']}{$ sites[$siteid [' Name ']}</title>
phpcms\libs\functions\global.func.php
function SEO functions, about 1468 lines, so you can directly call {$SEO [' name ']} in the template to display the site name
$seo [' name '] = $site [' name '];
Second, search not by category, directly search out all the information containing the keyword
Open phpcms\modules\search\index.php Find
if (!empty ($segment _q)) {
$sql = "' SiteID ' = ' $siteid ' and ' typeid ' = ' $typeid ' $sql _time and MATCH (' data ') against (' $segment _q ' in BOOLEAN MODE)";
} else {
$sql = "' SiteID ' = ' $siteid ' and ' typeid ' = ' $typeid ' $sql _time and ' data ' like '% $q '";
}
Replaced by
$sql = "' SiteID ' = ' $siteid ' and ' typeid ' = ' $typeid ' $sql _time and ' data ' like '% $q '";
Third, change the file so that after updating the URL path, the article in the Database URL field does not add the domain name
After changing the phpcms/modules/content/classes/url.class.php file 77 lines, delete the prefix of the $urls front combination.
Some problems of Phpcms V9