Closed SkyeHoefling closed 6 years ago
This is because the Settings.cshtml file is not being generated correctly. The notes below are from my personal experience with DNN MVC and may not be accurate but I believe they are accurate.
The model is not being declared correctly at line 1 of the file. @model
syntax works for MVC but in DNN MVC we should use the following syntax:
@inherits DotNetNuke.Web.Mvc.Framework.DnnWebPageViewPage<Settings>
This will properly populate the Model
object for use in the view.
The markup is referencing a CurrencyCulture
which is not defined anywhere.
To fix this problem we just need to update the cshtml to reference the correct model and the correct properties on the model. I will submit a PR
I fixed this earlier today and will push the code up.
After creating a MVC Module with the generator everything works as expected. When I install the module and goto the settings page it crashes with a DNN Error: