orchardcms - Overriding Admin shapes in custom Orchard CMS theme -
I am doing a custom theme for Orchard CMS.
Requirements as part of the client project have some additional functionality in the blog administrator page. Making a few simple changes in parts is easy. Blogs blog post. ListEmbedin CSS
I do not want to change the blog source code, I want to override that theme on the theme like I am doing with everyone else at the front end.
After some guidelines found in the plantation forum, I have tried the following paths:
~ / Themes / My Theme / View / Part Blogs.BlogPost.ListAdmin.cshtml ~ / Themes / MyTheme / Views / Orchard.Blogs / Parts.Blogs.BlogPost.ListAdmin.cshtml ~ / Themes / MyTheme / Views / Dashboard / Admin / Parts.Blogs.BlogPost.ListAdmin.cshtml
But the view has not been raised.
So, how can I override a view in my subject which will be raised from the admin default dashboard rather than default default?
Thank you
You need to create a topic with a project file, Then add one. In the CC file with something like this:
Public class admin override: IThemeSelector {public ThemeSelectorResult GetTheme (RequestContext Reference) {If (AdminFilter.IsApplied (reference)) {New Theme Selections Return { Priority = 111, ThemeName = "NewAdminTheme"}; } Return tap; }}
Do not set this topic as current, just enable it from the backend. You can set your thiaman as the theme theme in the form of themes, as the basic theme To do this:
BaseThem: The Admin
Comments
Post a Comment