Update Custom-Toolbar when viewing folder_contents

I have created a custom toolbar, however when editing the folder_contents the toolbar isn't updated like the Plone default one is... I found the package https://github.com/plone/mockup/tree/master/mockup/patterns/structure though I'm not sure how this should be implemented to update my custom toolbar.

Does someone have some information on how I could go about this..? Thanks!