Home >CMS Tutorial >DEDECMS >Method to implement dedecms search results page sorting by click

Method to implement dedecms search results page sorting by click

王林
王林Original
2019-11-15 10:09:302538browse

Method to implement dedecms search results page sorting by click

DEDECMS default search function, the results obtained are sorted according to the order in which the articles are added. Many times, we hope to get the results sorted by the number of clicks, with those with more clicks ranked first.

Then modify this place:

##include/inc_arcsaerch_view.php on line 48

Change

$this->OrderBy = 'dede_full_search.aid desc';

Recommended tutorial for

$this->OrderBy = 'dede_full_search.click desc';

:

dedecms tutorial

The above is the detailed content of Method to implement dedecms search results page sorting by click. 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