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?
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.
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?