artNotes[''] )"."> What should I do if filtering rules cannot be added to the keywords field during Dreamweaver CMS collection?-DEDECMS-php.cn
Home> CMS Tutorial> DEDECMS> body text

What should I do if filtering rules cannot be added to the keywords field during Dreamweaver CMS collection?

藏色散人
Release: 2019-12-27 09:47:32
Original
2057 people have browsed it

What should I do if filtering rules cannot be added to the keywords field during Dreamweaver CMS collection?

#What should I do if filtering rules cannot be added to the keywords field during DreamWeaver CMS collection?

Some friends reported that when writing collection rules, keywords need to be eliminated, and using

{dede:trim replace=''}(.*){/dede:trim}
Copy after login

filtering rules is invalid. After checking it, the solution is attached:

Modify include/dedecollection.class.php, line 717:

Recommended learning:Dream Weaver cms

The code is as follows:

$keywords = preg_replace("#".$this->artNotes['keywordtrim']."#isU",'',$keywords);
Copy after login

is:

[code] $keywords = preg_replace("/".$this->artNotes['keywordtrim']."/isU",'',$keywords); [html]
Copy after login

The above is the detailed content of What should I do if filtering rules cannot be added to the keywords field during Dreamweaver CMS collection?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!