public class ViewLocationExpander : IViewLocationExpander
(...)
What about a partial view ?
In ProductTemplate.Simple.cshtml
we have the line
@await Html.PartialAsync("_RentalInfo", Model, dataDictRental)
How can I call _MyRentalInfo.cshtml instead
Is the only way to put it in the theme folder as _RentalInfo.cshtml so that it is "found" ?
Or is there a way to do it in the program only for a specific template
i.e. I want to call different versions of _RentalInfo.cshtml based on the current template
ProductTemplate.Simple.cshtml uses the default _RentalInfo.cshtml
ProductTemplate.RentalType1.cshtml uses the default _MyRentalInfo1.cshtml
ProductTemplate.RentalType2.cshtml uses the default _MyRentalInfo2.cshtml
By the way ProductTemplate.RentalType1.cshtml belongs so someone else plugin theme so I can not change it