How can I override the view selection for Main region in DXA so that I can use view from my module instead of the core view?
RegisterViewModel("Main", typeof(RegionModel));
doesn't work for me, it still calling the view from the core area.
You need to change the Region metadata on your Component Templates to use your module region view. By default they are empty, which means they access the Core module Main region. After updating you will need to republish the pages which use these templates.
CoreAreaRegistration.cs
and supply a different view for the main region there.
Commented
Sep 26, 2016 at 11:55