CreationWizardAssetTypeSelected not available for EES 4?


(autjoe) #1

Hi there,

 

Just found one of the event CreationWizardAssetTypeSelected in JavaScript plugins is not working. It is not found in EES phase 4 easyedit.min.js.

Is this event no longer supported on EES phase 4? or is there a way to add this event?

 

Thanks.


(Anthony Barnes) #2

Hi,

 

That's right, that event was removed due to the rewrite of the creation wizard to support multiple asset creation. You may be able to use the following code to do something similar:

 

EasyEdit.wizard.events.observe('load', function(wizard){
    if (wizard.attributes.type_code === 'page_standard') {
 
    }
});

(autjoe) #3

Thanks.


(autjoe) #4

Hi Anthony,

Are you able to provide an example of how to use this code? as we didn't see it's been fired.

Thanks.


(Scott Hall) #5

Hi,

 

Probably best to provide the code that is causing the problem(s) that way we can determine what needs adjusting.

 

Cheers

 

Scotty


(Scott Hall) #6

Just a follow up to this one. Thanks for providing the code example internally. Unfortunately what you are trying to do there will require a new approach because the wizard was re-engineered for a number of reasons, but biggest change that affects your code is that it now supports multiple asset creation. I would suggest falling back on out of the box features/functionality (educate users in the mean time) until you have time to review the code, this one isn't really a quick fix.

 

Cheers

 

Scotty


(Scott Hall) #7

CreationWizardAssetTypeSelected will be supported again from Matrix 5.