Custom Admin Theme + Custom Layout Filter in module = No custom admin skin

Topics: Administration, Customizing Orchard, General, Writing modules
Sep 14, 2013 at 3:46 PM
Edited Sep 14, 2013 at 8:42 PM
Using one of Bertrand's older posts about using a Custom Layout Filter I have run into a problem with ALSO using a custom admin theme.

It seems the Custom Layout Filter is overriding BOTH the custom admin theme and the TheAdmin theme. I cannot figure out how to work around this because the custom admin theme uses a Priority = 'n', whereas the Custom Layout Filter uses WorkContextAccessor. If I disable the Custom Layout Filter then the custom admin AND the TheAdmin theme will work. Otherwise, my module's AdminController (decorated with [Admin]) will not pull either custom or TheAdmin theme (i.e., it is unthemed).

BTW, I tried changing the Priority in the custom admin theme to 200, 500 and 1000 - no luck.

Any workarounds?
Coordinator
Sep 14, 2013 at 9:03 PM
You do not need that filter anymore now that Orchard includes url alternates.