Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
I swear it's something simple but I can't figure this out.
I've added a new menu choice 'Tier Discounts' under the Marketing menu. It's a copy of the existing Discounts system so it has all the same pages as Discounts, just renamed to TierDiscounts.
This Tier Discounts menu has a few child pages involved just like the Discounts system. So I want the Marketing menu to stay expanded and Tier Discounts highlighted when those child pages are rendered. Exactly how you have the Discounts pages work under the Marketing menu.
But I cannot figure out how that happens. I've updated /App_Data/adminbreadcrumb.xml and I've modified /Admin/Helpers/AdminBreadCrumbExtension.cs accordingly.
But it still won't keep the Marketing menu open when I edit a tier discount. It works for main Index view. But as soon as I go into the edit view, the Marketing menu collapses again.
Any suggestions on where else to look?
|
|
|
|
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)
|
Please look into the code in the admin Dashboard controller. Look at the code in #region Navigation. Function is GetSelectedItem()
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
OMG that was it !!! Thank you.
So much hard-coded effort on persisting the state of the menu. Seems like a custom attribute on certain actions would be so much easier.
|
|
|
|
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