Extend the IQuickNavigatorItemProvider with a suitable overridable get method

Vote:
 

Today the IQuickNavigatorItemProvider interface holds the overridable methods for SortOrder and Dictionary GetMenuItems. There is however no way to retrieve the current default shipment by Episerver for the quick navigator menu.

In the CMS edition it would then be plausible with an extended method to get the default items and as developer either remove them or adjust them (e.g. text, url, etc.). The GetMenuItems doesn't really give you the current items as it is for now.

Would be sweet to handle this entirely! :)

#181788
Aug 30, 2017 7:29
Vote:
 

The IQuickNavigatorItemProvider you create will just be added next to the other providers as you're only supposed to add more items instead of modifying the existing menus. The idea is that it's not only one QuickNavigatorItemProvider.

However if you want to find the existing providers you should be able to use 

ServiceLocator.Current.GetAllInstances<IQuickNavigatorItemProvider>()

If you want to remove all and implement your own (I don't really recommend this) you can see how I eject all implementations in https://github.com/alfnilsson/episerverutils/blob/master/EpiserverFindUI/DependencyResolverInitialization.cs

In that example I'm also reusing the original implementations in my new implementation.

#182037
Sep 08, 2017 9:24
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.