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.
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('@title@',cn_substr($title, 60),$mainSql);<br/>
The statement is:
$mainSql = str_replace('@title@',cn_substr($title,$cfg_title_maxlen),$mainSql);<br/>
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!