Some problems of Phpcms V9

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.