Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of solving the limitation of collecting title in Weaving Dream cms

Shulou Source: shulou.com Published: 2022-06-02 05:07:21 11月23日 Update

The purpose of this article is to share with you the content about how to solve the limitation of collecting headlines on Dream Weaving cms. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

Dream weaving cms has its own collection function, if the number of words in the title of the original article is too long, it will be limited and shortened. Although the title of the article collected is complete, the title of the article will be shortened and truncated after import.

Even if we modify the background system settings "other settings" article title word limit, found that no matter what the use, in fact, in addition to changing the background settings also need to do another two steps.

1. Modify system parameter settings (maximum length of document title)

Location: system-system Settings-system basic parameters-other options-maximum length of document title: 200

2. Modify the dede_archives field title of the document table to varchar

Location: system-system Settings-SQL Command Line tool

Alter table dede_archives change title title varchar (200)

3. Modify the collection data import program co_export.php

Location: dede/co_export.php approximately 220lines

Change:

$mainSql = str_replace ('@ title@',cn_substr ($title, 60), $mainSql)

The statement is:

$mainSql = str_replace ('@ title@',cn_substr ($title,$cfg_title_maxlen), $mainSql)

Thank you for reading! This is the end of the method to solve the problem of collecting titles in Weaving Dream cms. I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Tags: Title system limit article location document method maximum content parameter background number of words more length good practical function original text command field Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei MariaDB macOS Shulou Information OPPO Reno