In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.