Home > CMS Tutorial > DEDECMS > Dedecms has added the function of keeping articles at the top of the list for a day

Dedecms has added the function of keeping articles at the top of the list for a day

(*-*)浩
Release: 2019-12-05 14:59:27
Original
2130 people have browsed it

Dedecms has added the function of keeping articles at the top of the list for a day

By default, in dedecms5.7 background, articles can be selected to be on top for a period of time such as one week or one month.

In the management background, there is this code in the source code:                                                                                                                                     ##Then we can add

<td width="250"> <select name="sortup" id="sortup" style="width:150">
                <option value=&#39;0&#39;>正常排序</option>
                <option value="7">置顶一周</option>
                <option value="30">置顶一个月</option>
                <option value="90">置顶三个月</option>
                <option value="180">置顶半年</option>
                <option value="360">置顶一年</option>
              </select> </td>
Copy after login

to the page to achieve the function of adding a day to the top

We first find article_edit in \dede\templets .htm and article_add.htm

Then insert

## in

<option value="1">置顶一天</option>
Copy after login
#After testing, it works in 5.7sp1

The above is the detailed content of Dedecms has added the function of keeping articles at the top of the list for a day. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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