Skip to content
Discussion options

You must be logged in to vote

These options are post configured by code from site settings.

public void PostConfigure(string name, PagerOptions options)
{
var site = _siteService.GetSiteSettingsAsync().GetAwaiter().GetResult();
options.MaxPageSize = site.MaxPageSize;
options.MaxPagedCount = site.MaxPagedCount;
options.PageSize = site.PageSize;
}

Site settings wins over configuration, configuration are used if the OC.Settings module is not enabled. You may need to do another post configuration, e.g. from a module that depends on OC.Settings so that it runs …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daveblack101
Comment options

Answer selected by daveblack101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants