-
+
+
+
+
+
+ •
+
+
+
+
-
+
diff --git a/WebApplication/AllPages.aspx.cs b/WebApplication/AllPages.aspx.cs
index a6d36d5..a4ed1a5 100644
--- a/WebApplication/AllPages.aspx.cs
+++ b/WebApplication/AllPages.aspx.cs
@@ -21,16 +21,18 @@ namespace ScrewTurn.Wiki {
///
/// The number of items in a page.
///
- public const int PageSize = 50;
+ public int PageSize = 50;
private int selectedPage = 0;
private int rangeBegin = 0;
- private int rangeEnd = PageSize - 1;
+ private int rangeEnd = 49;
private IList
currentPages = null;
- protected void Page_Load(object sender, EventArgs e) {
+ protected void Page_Load(object sender, EventArgs e) {
Page.Title = Properties.Messages.AllPagesTitle + " - " + Settings.WikiTitle;
+ PageSize = Settings.ListSize;
+ rangeEnd = PageSize - 1;
LoginTools.VerifyReadPermissionsForCurrentNamespace();
@@ -58,7 +60,7 @@ namespace ScrewTurn.Wiki {
// This page cannot use a repeater because the page list has particular elements used for grouping pages
PrintPages();
- }
+ }
protected void pageSelector_SelectedPageChanged(object sender, SelectedPageChangedEventArgs e) {
rangeBegin = e.SelectedPage * PageSize;
@@ -120,7 +122,7 @@ namespace ScrewTurn.Wiki {
///
/// Prints the pages.
///
- public void PrintPages() {
+ public void PrintPages() {
StringBuilder sb = new StringBuilder(65536);
if(currentPages == null) currentPages = GetAllPages();
@@ -343,7 +345,7 @@ namespace ScrewTurn.Wiki {
lbl.Text = sb.ToString();
pnlPageList.Controls.Clear();
pnlPageList.Controls.Add(lbl);
- }
+ }
}
diff --git a/WebApplication/AllPages.aspx.designer.cs b/WebApplication/AllPages.aspx.designer.cs
index 8cd876c..1e9f4e4 100644
--- a/WebApplication/AllPages.aspx.designer.cs
+++ b/WebApplication/AllPages.aspx.designer.cs
@@ -1,10 +1,9 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:2.0.50727.3074
//
// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// the code is regenerated.
//
//------------------------------------------------------------------------------
diff --git a/WebApplication/App_LocalResources/AdminConfig.aspx.resx b/WebApplication/App_LocalResources/AdminConfig.aspx.resx
index 40d7bec..d49d331 100644
--- a/WebApplication/App_LocalResources/AdminConfig.aspx.resx
+++ b/WebApplication/App_LocalResources/AdminConfig.aspx.resx
@@ -1077,4 +1077,27 @@
+
+ items in a list, then start paging
+ As in 'Display at most 5 items in a list, ...'
+
+
+ Display at most
+ As in 'Display at most: 5 items'
+
+
+ Number must be between 10 and 1000
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebApplication/PageSelector.ascx.cs b/WebApplication/PageSelector.ascx.cs
index e51bde5..79e8462 100644
--- a/WebApplication/PageSelector.ascx.cs
+++ b/WebApplication/PageSelector.ascx.cs
@@ -16,6 +16,10 @@ namespace ScrewTurn.Wiki {
private int pageSize = 50;
private int selectedPage = 0;
+ protected PageSelector() {
+ pageSize = Settings.ListSize;
+ }
+
protected void Page_Load(object sender, EventArgs e) {
// Load data from ViewState
object temp = ViewState[ItemCountName];