1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 12:21:45 +02:00

Issue #4024 - Pagination url option added to News preferences. Select between 'record' (legacy format eg. page=20, page=40 etc) or 'page' numbers (page=1, page=2 etc). Experimental - requires more testing.

This commit is contained in:
Cameron
2021-07-06 17:53:55 -07:00
parent 36ff7a88be
commit c941e5b98d
6 changed files with 37 additions and 2 deletions

View File

@@ -955,6 +955,7 @@ class news_admin_ui extends e_admin_ui
$temp['news_newdateheader'] = intval($_POST['news_newdateheader']);
$temp['news_unstemplate'] = intval($_POST['news_unstemplate']);
$temp['news_editauthor'] = intval($_POST['news_editauthor']);
$temp['news_pagination'] = filter_var($_POST['news_pagination']);
$temp['news_default_template'] = preg_replace('#[^\w\pL\-]#u', '', $_POST['news_default_template']);
$temp['news_list_limit'] = intval($_POST['news_list_limit']);
@@ -1054,6 +1055,16 @@ class news_admin_ui extends e_admin_ui
</tr>
";
$paginationOpts = ['record'=> "Record", 'page'=>'Page'];
$tab1 .= "
<tr>
<td>".LAN_PAGINATION.$frm->help(LAN_NEWS_112)."</td>
<td>
".$frm->select('news_pagination',$paginationOpts, varset($pref['news_pagination'],'record'))."
</td>
</tr>";
$tab1 .= "
<tr>