As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<type name="tuto:espace"> <parent>cm:folder</parent> <properties> <property name="tuto:coteEspace"> <title>Cote Espace</title> <type>d:text</type> </property> </properties> </type>
This tutorial shows how to override/customize document library widget. The tutorial uses DocumentList widget as example. You should customize DocListToolBar instead. Then you can follow Axel's suggestion to take care of itemId and doclib-common.
Customizing a Surf JavaScript Widget in the Document Library | Alfresco Documentation
This one is also useful Adding a menu item to the "Create..." menu in DocLib | Alfresco Documentation