Edit+ creates and edits assets using the JS API, so some trigger implementations you do for admin might have to get done slightly different for Edit+, depending on the event and condition and action off course.
Instead of using a trigger to disable page creation in Edit+, you might be better off by just customising the Edit+ config file to not allow it?
For example: createWizardAssetBlackList: ['page_standard'],
Hi Bart,
Thanks for the information about how Edit+ creates and edits assets. I suspected that it did in a way that it did not activate the trigger.
In this case, the usefulness of the trigger was that I want for the restriction to occur only when the asset is created in specific sections of the site. So blacklisting the option does not work.
I am exploring using conditional keyword replacements to hide the element through Edit+'s CSS.
I still need to tweak the logic so that it matches user group/permissions and location. And even then, it may not work because they need to still be able to create pages while in a different location. So there is nothing stopping them from start the process elsewhere and then select the location where I donāt want them to create a page.
It looks more and more like one of those things that do not directly transfer from our old CMS to Squiz. So we may need to change business processes to adapt to a hands-down better platform.
The ideal solution would be something that does the check like the trigger does. But I donāt know enough to figure out whether we can or how to influence Edit+'s actions.
Anyway, thanks for clarifying that triggers wonāt āseeā this particular action in Edit+. Iāll keep exploring.
Iāve tried exactly what you mention but Edit+ is letting it by. I know that the trigger is working because I added for it to send an email before throwing the error and I receive the email but the asset is created.
Thatās weird, I tried it in the latest version of 5.3 and I got it to work with very similar trigger setup.
The only difference I had that is noticeable was that I had āIgnore Permissionsā enabled on the trigger action.
Can you try that?
Hi Bart, sorry I havenāt been checking the forums for a while. Yes, you need to enable the āIgnore permissionsā and also enable āNon criticalā in case you can let it fail.