Home  >  Article  >  CMS Tutorial  >  How to solve the problem of dede:arclist only taking effect once in dedecms dream weaving system

How to solve the problem of dede:arclist only taking effect once in dedecms dream weaving system

藏色散人
藏色散人Original
2020-01-10 09:43:532737browse

How to solve the problem of dede:arclist only taking effect once in dedecms dream weaving system

How to solve the problem that the dedecms dream weaving system {dede:arclist keyword='dynamically obtain keywords'} only takes effect once?

Solution to the dedecms dream weaving system The dream system {dede:arclist keyword='dynamically obtain keywords'} has a bug that only takes effect once

Recommended study:Dreamweavercms

When we pass {dede: When arclist keyword='keyword'} is used to call the article list, you will find that it only takes effect in one of the columns. In other columns, the last keyword is still displayed. The reason is due to the cache of arclist.

Just modify the /include/taglib/arclist.lib.php file, probably at line 384:

$taghash = md5(serialize($ctag).$typeid);

Change the above code to:

$taghash = md5(serialize($ctag).$typeid.$keyword);

That’s it .

The above is the detailed content of How to solve the problem of dede:arclist only taking effect once in dedecms dream weaving system. 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