I have decorated the LeftAndMain class to manipulate certain things. I would register if I have passed through there in order to tell if I was in the admin section.
since you might read this - Brice - I' really appreciate a response on your excellent looking sortweight module - I've been trying to use it on a fresh 2.4.5 install with ModelAdmin - if it is designed for that (or I'm missing something basic) please let me know... http://www.silverstripe.org/all-other-modules/show/14921?start=8
I'm just asking if the solution given by MarcusDalgren is still the best way for SS3? I have run into this question multiple times now and wonder that it would make sense that the framework would have this functionality built in. At least the solution still works in SilverStripe 3.1.16.