How do I override the MaxPageSize via appsettings OrchardCore_Navigation PagerOptions #13639
Answered
by
jtkech
daveblack101
asked this question in
Q&A
-
I tried adding the following section to appsettings but MaxPageSize is staying at 100.
|
Beta Was this translation helpful? Give feedback.
Answered by
jtkech
May 3, 2023
Replies: 1 comment 1 reply
-
These options are post configured by code from site settings. 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 after, and that would bind again these options from the configuration. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
daveblack101
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These options are post configured by code from site settings.
OrchardCore/src/OrchardCore.Modules/OrchardCore.Settings/PagerOptionsConfiguration.cs
Lines 15 to 22 in 74fbeea
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 …