Overriding Add-on View Engine

Vote:
 

Is it possible to override the view engine that is used to look for the locations of the views for add-ons so that we can add in extra paths to search.  The reason for this is that so we can customise the view for one customer without changing the default view.

Or is there another way to achieve the same thing with add-ons?

#78014
Dec 02, 2013 7:58
Vote:
 

We managed to find a nice way of getting the functionality that we wanted.  

We implemented our own Virtual Path Provider that checks for the existance of the virtualpath (ie. views/shared/index.cshtml) in a configurable folder and if the requested file exists in this folder then it is used instead of the default version of that file.

 

#78818
Dec 04, 2013 1:17
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.