logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
sweeperqb  
#1 Posted : Friday, June 18, 2021 4:14:05 PM(UTC)
sweeperqb

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)

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shaharyar  
#2 Posted : Monday, June 21, 2021 1:31:46 AM(UTC)
shaharyar

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.
sweeperqb  
#3 Posted : Monday, June 21, 2021 8:52:46 AM(UTC)
sweeperqb

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!
shaharyar  
#4 Posted : Monday, June 21, 2021 9:04:49 AM(UTC)
shaharyar

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.
Users browsing this topic
Guest (2)
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.