Home  >  Article  >  CMS Tutorial  >  How to solve the title limitation of Dreamweaver CMS?

How to solve the title limitation of Dreamweaver CMS?

(*-*)浩
(*-*)浩Original
2019-11-27 15:38:061964browse

Dreamweaver cms comes with a collection function. If the original article title is too long, it will be restricted and shortened. Although the collected article title is complete, the imported article title will be shortened and partially truncated.

How to solve the title limitation of Dreamweaver CMS?

Even if we modified the background system settings > other settings > article title word limit, we found that it was of no use. In fact, in addition to modifying the background settings, we still need to do two other steps. .

1. Modify the system parameter settings (maximum length of document title) [Recommended learning: 梦Weavercms]

Location: System-System Settings - Basic system parameters - Other options - Maximum length of document title: 200

2. Modify the document table dede_archives field title to varchar(200)

Location: System - System Settings-SQL command line tool

Alter table dede_archives change title title varchar(200)

3. Modify the collected data import program co_export.php

Location: dede/co_export.php About 220 lines

Change:

$mainSql = str_replace(&#39;@title@&#39;,cn_substr($title, 60),$mainSql);<br/>

The statement is:

$mainSql = str_replace(&#39;@title@&#39;,cn_substr($title,$cfg_title_maxlen),$mainSql);<br/>

How to solve the title limitation of Dreamweaver CMS?

The above is the detailed content of How to solve the title limitation of Dreamweaver CMS?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn