Home > CMS Tutorial > DEDECMS > body text

Method to implement dedecms search results page sorting by click

王林
Release: 2019-11-15 10:09:30
Original
2505 people have browsed it

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';
Copy after login

Recommended tutorial for

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

:

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!