Retrieve/test site global config

Hi,

I’m currently trying to test if the user has set a paginate value in his config file. This only to make it very straightforward to able/disable pagination in the templates.

I’m not sure I can retrieve a global site config parameter though. Can I?

Thanks a ton

I don’t think we provide a way to do that. We don’t store the “paginate” value on the Site or SiteInfo objects. We just pull it from the config on the fly when you request the default paginator, and the templates don’t have access to lookup config options.

1 Like

Thanks for clarifying! I’ll resolve to a config param then.