OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Change admin dashboard in Orchard #8313

Open hoomanhooshyar opened 4 years ago

hoomanhooshyar commented 4 years ago

Hello everyone I want to change Orchard admin dashboard but I could not to do that. I've added this code in a .CS file public class AdminOverride : IThemeSelector { public ThemeSelectorResult GetTheme(RequestContext context) { if (AdminFilter.IsApplied(context)) { return new ThemeSelectorResult { Priority = 111, ThemeName = "NewAdminTheme" }; }

    return null;
}

}

and I have added this line to Theme.txt

BaseTheme: TheAdmin

but nothing works for me I'm beginner in Orchard and unfortunately I could not find a tutorial that helps me. Thanks a lot in advance

sebastienros commented 4 years ago

Is this class in a module that is enabled?

hoomanhooshyar commented 4 years ago

Yes

sebastienros commented 4 years ago

Have you "activated" the theme in the list of themes then? It can be enabled but not set as the active one.