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='0'>正常排序</option> <option value="7">置顶一周</option> <option value="30">置顶一个月</option> <option value="90">置顶三个月</option> <option value="180">置顶半年</option> <option value="360">置顶一年</option> </select> </td>
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>
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!