Solve the problem that dream collection does not automatically generate abstracts and keywords
This article is about solving the problem that abstracts and keywords are not automatically generated in dream collection. 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.
What if dream-weaving collection does not automatically generate abstracts and keywords?
Dream weaving DEDECMS collection does not automatically generate abstracts and keywords.
Recommended study: dream weaving cms
Dream 5.6 collected the content, but did not automatically generate summaries and keywords, keywords and abstracts are empty.
Maybe many people have encountered the same problems as me, and they really didn't find a good solution in the forum, so they started to change the documents on their own. No more nonsense.
Here is my solution:
1. Modify include/dedecollection.class.php
/ / automatically analyze keywords and abstracts preg_match ("/ tmpHtml,$inarr2); if (! isset ($inarr [1]) & & isset ($inarr2 [1])) {$inarr [1] = $inarr2 [1];}
Replace the above with the following code
/ / automatically analyze keywords and abstracts preg_match ("/ tmpHtml,$inarr2); preg_match (" / tmpHtml,$inarr3); if (! isset ($inarr [1]) & & isset ($inarr2 [1])) {$inarr [1] = $inarr2 [1];} if (! isset ($inarr [1]) & isset ($inarr3 [1])) {$inarr [1] = $inarr3 [1];}
After changing the above, there is another area that needs to be changed.
Preg_match ("/ tmpHtml,$inarr2); if (! isset ($inarr [1]) & & isset ($inarr2 [1])) {$inarr [1] = $inarr2 [1];}
Replace the above with the following code:
Preg_match ("/ tmpHtml,$inarr2); preg_match (" / tmpHtml,$inarr3); if (! isset ($inarr [1]) & & isset ($inarr2 [1])) {$inarr [1] = $inarr2 [1];} if (! isset ($inarr [1]) & isset ($inarr3 [1])) {$inarr [1] = $inarr3 [1];} Thank you for reading! So much for solving the problem that dream collection does not automatically generate abstracts and keywords. 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.