Closed orchardbot closed 9 years ago
@bleroy commented:
André: Is this a dynamic compilation issue?
@andrerod commented:
The problem here is that there is no modification to any of the files tracked. However, if the project file is updated when the filters directory is removed. and then updated again whent he filters directory is added this works and the dynamic compilation will kick in and update the theme.
JonnyBoats created: https://orchard.codeplex.com/workitem/17349
I do not have a perfect repo case, but I believe this will work (at least some times).
Install Bertrand's CustomLayoutMachine theme (http://weblogs.asp.net/bleroy/archive/2010/12/14/switching-the-layout-in-orchard-cms.aspx) without the Filters directory. Run Orchard and you should see Layout.cshtml used for all pages.
Now copy the Filters directory to the server and refresh the page. It would seem that the filter is not being activated.
Now switch to an alternate theme and browse the website. Switch back to CustomLayoutMachine and the filter should now be working and alternate layouts being used.
I suspect a related issue may be that an edit to the Filters may not force a recompile.