hi,
Im developing a custom view engine for implementing themes for my asp.net mvc 2 web app. The problem that I am facing is that in this function:
public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
The parameter "masterName" is always empty, although the viewName is not empty and that view has a master page associated to it.
I would like to know the master page, so I can have a default theme and allow to create a theme that only changes the masterpages but not the content pages. So when a theme is selected, I want to use the masterpage of the theme but the content page of the default theme. But also I want to give the ability to create themes that override the master page and some content pages, and some other not. For this I would only need the masterName that the page is using, but I receive an empty string :(
Do you have any ideas?
Thanks in advance! Juan