ProWorks Blog

Changing the sort order of default Umbraco tabs

By Mark Bowser     Monday, August 03, 2015     tab, Umbraco 7, AutoMapper, Sort
 15 16 ShareThis

We have a couple of projects where we wanted to gain more control over the sort order of some of the default Umbraco tabs like "Properties" or "Child items". Although I don't know of a way to do this through the Umbraco backoffice or with configuration, it is suprisingly easy to write some custom code to handle this.

The idea is pretty simple. The Umbraco core (at least as of Umbraco 7.2.x) uses AutoMapper to map the IContent into ContentItemDisplay objects. Using AutoMapper, we can interecept these mappings and tack on some additional adjustments.

TabMover_small

Then we just need to make sure that on ApplicationStarted, we actually add the new mapping adjustments.

TabMover_ApplicationStarted_small

 15 16 ShareThis
comments powered by Disqus
comments powered by Disqus

1 memorable comment for "Changing the sort order of default Umbraco tabs"


  1. Posted 8/7/2015 9:15:14 AM

    Thanks to Tom Fulton for giving me the idea on this one!