Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
Is there a way to change the Admin theme? It looks like the CommerceBuilder.Web.Mvc.ThemeableRazorViewEngine supports themes, but I cannot figure out how to specify a custom theme for the Admin. I am trying to isolate custom views by utilizing a custom theme. It seems to work okay on the retail side by adding a /Views directory to the theme and sticking custom views in there (e.g. /Views/Shared/_StoreFooter.cshtml)
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
You cannot change the admin theme. The theme directory on the admin side only supports the view override functionality.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 5/30/2020(UTC) Posts: 125
Thanks: 14 times Was thanked: 3 time(s) in 3 post(s)
|
It looks like the ThemeableRazorViewEngine supports ~/Areas/{2}/Themes/{3}/Views/{1}/{0}.cshtml. So to override the views in the Admin, what is the default theme name? Thank you!
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
To override the views in admin, the admin theme directory name should be the same as the default theme set in admin.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close