Do create folder form for custom type folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2013 05:21 PM
<type name="tuto:espace"> <parent>cm:folder</parent> <properties> <property name="tuto:coteEspace"> <title>Cote Espace</title> <type>d:text</type> </property> </properties> </type>
How can I put this type like a default folder created with it property in new folder form ?
When I try to create a folder it's the cm:folder which is created.
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2013 07:23 AM
to use your folder type as the default for the "New Folder" action, you have to adapt the onNewFolder JavaScript function in the Alfresco.DocListToolbar Share UI component. You can either modify the toolbar.js to do this (not recommended) or setup a Surf extension module to load custom JS, which overrides the Alfresco.DocListToolbar.prototype.onNewFolder function.
The essential thing to change is the "itemId" in the template URL of the form dialog - this needs to be your new type. Additionally, you need to have the model-type form configured with an id of "doclib-common".
Regards
Axel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2014 02:56 PM
I'm trying to implement this feature, but I need to keep the default behavior, allowing users to create both ootb folder objects and my custom type folder.
Do you know how to implement that?
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2015 05:42 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2016 04:01 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2016 05:57 PM
This one is also useful Adding a menu item to the "Create..." menu in DocLib | Alfresco Documentation
