EES - create asset

Hi guys,


How can I customise the EES to create the asset just under the current asset rather than going through the wizard to select the parent?



Thanks,



Robin

You would have to do this using custom JS coding (via plugin) and override the action for click on the new button. Some of the EES calls you would need to make would be:

    
    // Get the current asset
    EasyEditAssetManager.getCurrentAsset(function(asset){
       alert(asset.id);
    });


    
    // Invoke the creation wizard setting the default create location
    EasyEditAssetCreationWizard.init({
       rootNode: asset.id,
       rootNodeDescription: "Some text to describe a default root node selection",
   // Optional default asset type
   //assetType:  null,

   // Callback triggered when wizard is completed
   onComplete: function(){}
});




With a plugin you could use a bit of jQuery to unbind the event for the 'new' button on the toolbar and replace it with your own custom code.

Thanks very much Anthony! I'll have a go with your code.