Hi all,
I was trying to define a custom "delete" command for the data module,
to check if the content is referenced before deleting. I added a
"delete" node under /modules/data/commands/data, with two command
sub-nodes, one for my "validation" and the other with the standard
delete. But those commands are called with the wrong path, the given
path is not the one of the deleted node but the parent path, and this is
a problem because the standard delete command will then delete the whole
parent and not the selected node.
I tried to change the root of my command node in a "deactivate" command
(with two sub-commands as before), but in this case the result is that
the command called is only the standard "deactivate" one, ignoring my
definitions. But in this case the path injected into the command is the
right one, not the parent one.
Am I missing something important here? Should I customize the toolbar to
make the "delete" call a specific command to have right result?
Regards, Danilo.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------