Skip to content
Discussion options

You must be logged in to vote

I think it would be best to use SiteSettings, you can create a page that is accessible via the admin menu then persist the data to the database. Then in your task get the settings like so

                
                private readonly ISiteService _site;
...
                MySettings settings = _site.GetSiteSettingsAsync()
                    .As<MySettings>();

The email and github modules are good references:
https://github.com/OrchardCMS/OrchardCore/blob/e9d622f5838f40869d704d27f5a3faa6a56f1538/src/OrchardCore.Modules/OrchardCore.Email.Smtp/Drivers/SmtpSettingsDisplayDriver.cs

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Jcea321
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants