5.0 Share Create... New Custom Folder Type
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2015 04:11 PM
I have a few custom folder types and I'd like to give users the ability to create folders of those types from the "Create…" menu in share.
I know that cm:folder objects are created using the onNewFolder function in toolbar.js. Can someone point me to the best way to use my own function which doesn't have the type hardcoded?
Also, is Aikau the new way to go about this?
Any help would be greatly appreciated.
I know that cm:folder objects are created using the onNewFolder function in toolbar.js. Can someone point me to the best way to use my own function which doesn't have the type hardcoded?
Also, is Aikau the new way to go about this?
Any help would be greatly appreciated.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2015 01:01 PM
onNewFolder function of toolbar renders "form" only and this form can be used in page also.
You can create different forms for your different folder custom types and you can just provide links for different folder creation and on click of those links, you just need to open form accordingly.
Hope this helps.
You can create different forms for your different folder custom types and you can just provide links for different folder creation and on click of those links, you just need to open form accordingly.
Hope this helps.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2015 05:10 PM
I need a bit more information. The onNewFolder function hard codes the type of the folder created to cm:folder. I'd like to use the same solution but create a folder of my own type. What would be the best way to do this?
Thank you.
Thank you.
