Modify Dede/include/inc_archives_view.php
The bottom two rows are original. Note out and add the added sections. If you want to sort documents by pubdate during document management, modify the content_list.htm and content_list.php documents.
// Add by Sha Jia Jun 361_1
$ Des_arc = $ this-> dsql-> getone ("select arc. pubdate from '{$ this-> maintable} 'arc where arc. ID =' $ aid '");
$ Des_pubdate = $ des_arc ['pubdate'];
$ Next = "arc. pubdate> '$ des_pubdate' and arc. arcrank>-1 and typeid = '{$ this-> fields ['typeid']}' order by arc. pubdate ASC ";
$ Pre = "arc. pubdate <'$ des_pubdate' and arc. arcrank>-1 and typeid = '{$ this-> fields ['typeid']}' order by arc. pubdate DESC ";
// End add
// $ next = "arc. id> '$ aid' and arc. arcrank>-1 and typeid = '{$ this-> fields ['typeid']}' order by arc. id ASC ";
// $ pre =" arc. ID <'$ aid' and arc. arcrank>-1 and typeid = '{$ this-> fields ['typeid']}' order by arc. id DESC ";