I want to be able to delete a resource while using quickmanager.
But when I choose "edit resource" on the front-end I only get the "save" and "cancel" buttons, no "delete" and "preview" button. Does anybody know what I’m doing wrong?
Is it already possible to add a delete button to the front-end buttons of quickmanager?
Thank you so much!
Unfortunately QuickManager+ doesn’t have delete button feature. Preview button is removed deliberately since QM+ works only from preview/front-end.
-
☆ A M B ☆
- 24,524 Posts
I believe that the idea was is that front-end editors should only be able to unpublish; then an admin user could go to the Manager and verify the deletion and do the actual deleting.
Of course, "delete" only marks a resource for deletion, and you have to empty the trash to really remove it, but what’s the purpose of adding the complexity of two more functions to QM when unpublish will have the same effect.
I use QM+ to edit ditto listed subdocuments. In the document tree it is very complex. Hence, in our case, QM inline buttons are a huge improvement.
I didn’t notice the missing delete until just now. I don’t want to send my end users to the backend for deletion of these subpages. To them they are part of the page instead of a page itself. I really just use this setup because MODx doesn’t allow tv arrays.
How can I hack a delete button back into the QM+ docform OR get an inline delete button? I know it must be purged afterwards but I can educate them accordingly.
Any help would be much appreciated.
I’d rather have the delete button in the modal docform QM+ provides.
If a snippet with a delete link is easier I’d implement it that way though. But I wouldn’t know how.
It is completely undocumented what kind of urls trigger a manager action. Since the backend runs in a frame I’m not sure how to figure it out. Maybe I should ask elsewhere, I’m not sure.
If you want to hack it, you’ll have to add the delete button to line 701 in file "assets/plugins/qm/qm.inc.php". Look for MODX manager source how the delete button is implemented.