We have a couple of projects that we wanted to do this on as well. Unfortunately, I can't claim credit for getting this figured out. I just looked around in the source until I figured out how we did it. :)
It looks like in the core of umbraco, umbraco uses AutoMapper to map the IContent into these ContentItemDisplay objects. We can use AutoMapper to intercept these mappings and make additional adjustments. In our case, we are rearranging the tabs.
Order of "Child Items" tab when using listview
Is it possible to alter the tab order, when using listviews?
I would like to have the Child Items tab as the last tab before Generic Properties.
Or maybe just hide it, and create a new tab with a custom listview property.
We have a couple of projects that we wanted to do this on as well. Unfortunately, I can't claim credit for getting this figured out. I just looked around in the source until I figured out how we did it. :)
It looks like in the core of umbraco, umbraco uses AutoMapper to map the IContent into these ContentItemDisplay objects. We can use AutoMapper to intercept these mappings and make additional adjustments. In our case, we are rearranging the tabs.
Then you just make sure that on ApplicationStarted, we actually have the TabMover adjust the tab order.
Great, just saw your blog post.
Heres some code for hiding the child items tab, if someone is interested.
private static void RemoveChildItemsTab(ContentItemDisplay contentItem) { if (contentItem.Tabs.Any(t => t.Label == "Child items")) { var tabs = new List<>
is working on a reply...