How to add an element in outline?

Are you by any chance looking for something like this: How can I customize the outline entries based on the different parts' labels? - #7 by Andrew