artNotes[''] )"."/> artNotes[''] )".">

Home  >  Article  >  CMS Tutorial  >  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?

藏色散人
藏色散人Original
2019-12-27 09:47:072162browse

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}

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);

is:

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

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!

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