Implementation: I am creating my custom SXA
components for Header, Footer and Breadcrumb
I have a project "Navigation".
Under Navigation I have created three controllers Header, Breadcrumb, Footer.
I have overridden the GetModel
method in each controller with their respective repositories and Views.
In VS
I have a created a folder for Navigation under Views and have created three Views for Header, Breadcrumb and Footer.
Issue: I want all the three Views under on Navigation folder. So that when I publish the website the physical structure should be
- Website
- Views
- Navigation
- Header
- Footer
- Breadcrumb
- Navigation
- Views
But when the GetModel()
method automatically resolves its view for each controller it is resolving to Views/ControllerName/View.chtml
(Views/Footer/Footer.chtml)
Is there a way that I can create the multiple Views in the single folder and still have the different controllers resolve the respective Views under that single folder?