Solution to the seo title of a single web page in phpcms, and the title of phpcmsseo

Source: Internet
Author: User

Solution to the seo title of a single web page in phpcms, and the title of phpcmsseo
Source: www.bayinmao.com

Phpcms v9 single page calls seo META Title and seo META Keywords
Because seo META Description is called on a single page by default, you can call seo META Title and seo META Keywords. everyone should write {if isset ($ SEO ['title']) &! In the header file. Empty ($ SEO ['title'])} {$ SEO ['title']} {/if} {$ SEO ['site _ title.
The $ SEO variable is in/phpcms/modules/content/index. php. So we need to find this $ SEO variable. V9 code is user-friendly. There are comments indicating the code that is a single page. I found the code block on a single page. The $ SEO variable is found as follows: $ SEO = seo ($ siteid, 0, $ title, $ setting ['meta _ description'], $ keywords ); seo function file/phpcms/libs/functions/global. func. php: function seo ($ siteid, $ catid = '', $ title ='', $ description = '', $ keyword = '') after studying its definition, we found that the second parameter is used to call seo META Title and seo META Keywords. If it is 0, it will not be called. Modification method. Write the above $ SEO assignment as $ SEO = seo ($ siteid, $ catid, $ title, $ setting ['meta _ description'], $ keywords ); check it online and modify/phpcms/modules/content/class/html. class. the single page $ SEO variable in php (this should be generated for static use .). Find the codes marked with comments on a single page and change them to: $ SEO = seo ($ siteid, $ catid, $ title, $ setting ['meta _ description'], $ keywords );
You can modify the seo META Title to repeat the Title. There is also an additional bar behind the title. In the file/phpcms/libs/functions/global. func. php where the seo function is located, $ seo ['title'] = (isset ($ title )&&! Empty ($ title )? $ Title: ''). (isset ($ cat ['setting'] ['meta _ title']) &! Empty ($ cat ['setting'] ['meta _ title'])? $ Cat ['setting'] ['meta _ title']. '-': (isset ($ cat ['catname']) &! Empty ($ cat ['catname'])? $ Cat ['catname']. '-': ''); changed to: $ seo ['title'] = (isset ($ title )&&! Empty ($ title )? $ Title. '_': ''). (isset ($ cat ['setting'] ['meta _ title']) &! Empty ($ cat ['setting'] ['meta _ title'])? $ Cat ['setting'] ['meta _ title']: (isset ($ cat ['catname']) &! Empty ($ cat ['catname'])? $ Cat ['catname']: '');
Where is the title label of the phpcms column list page? The title is the project name-the seo title, the project name automatically added above-how can I remove it?

Are you talking about the site title? The topic page displays the site title and adds the topic title. See header.html for the top title.
{$ SEO ['site _ title']} This is the site title. It should be the name of the topic you are talking about. Remove this and you will be OK.
<Title> {if isset ($ SEO ['title']) &! Empty ($ SEO ['title'])} {$ SEO ['title']} {/if} {$ SEO ['site _ title']} </title>
For example, this is the topic name + website name.
You can also modify it from the PHP file, but it is not recommended.

PHPCMS background SEO site Title Keyword expression how to write and Expression

Enter 30 Chinese characters in the site title to list your company's main services. Separate each word with commas (,). Do not repeat them.
Keyword is easy to write "Product keywords", which is not very useful.
Express "include website service keywords as much as possible, about 200 words"-similar to enterprise introduction

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.