Duplicating an Atto Plugin

Duplicating an Atto Plugin

by Mark Mclennan -
Number of replies: 1

Hi,

Is there a process I can follow to duplicate an existing Atto Plugin?

I've taken the plugin I'd like to duplicate, added a prefix every instance of the plugin name through each file + renamed all of the files to also have the same prefix where appropriate. 

On uploading this it appears to install correctly, however on adding the new name to the atto toolbar config it is unable to save with either 'No plugins or groups found; please add some groups and plugins.' or 'The line 'xyz...' is not in the correct format.

I've got debugging turned up to developer and have been watching the error logs through both the install process and the saving of the toolbar config - haven't found any logs at all to point me in any direction as to what the specific problem is.

Thanks for any help

Average of ratings: -
In reply to Mark Mclennan

Re: Duplicating an Atto Plugin

by lior gil -
Picture of Core developers
It's hard to tell from here what exactly is the problem.
The first message you received comes from the function validate() in /lib/editor/atto/adminlib.php
I suggest you set a breakpoint there and start debugging to find out the source of this message and then you'll be able to continue from there.