The method of dedecms Dream Weaving tag keyword calling related articles
This article is to share with you about the methods of dedecms dream weaving tag keyword calling related articles. 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.
How does dedecms weave dreams tag keyword call related articles?
The official dede:likearticle of DEDE uses keywords entered in articles or keywords formed by automatic word segmentation to associate articles, but sometimes the automatically generated keywords are not accurate, resulting in inaccurate relevance. Here, we can accurately obtain relevant articles by customizing a class library file.
You can use tag alone to call related articles, or you can use tag+keyword to call related articles (by default, tag takes precedence over keyword, and you can sort it yourself)
Add a liketags.lib.php code under\ include\ taglib\ as follows