Home > Article > CMS Tutorial > 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='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 703e49eaede404d39352339c95412141Stick for one day4afa15d3069109ac30911f04c56f3338## in
<option value="1">置顶一天</option>#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!