Skip to content

Enhancement: Redesign how "deleted" things are handled. #764

@pepebe

Description

@pepebe

I've started a discussion regarding this topic at the forum: http://forums.modx.com/thread/88277/redesign-how-deleted-things-are-handled. Feel free to do some mind storming there. I'll add good ideas to this thread.

I know there are extensions that make it easier to handle deleted things (VersionX, etc), but I think that some aspects of this topic have to be handled on a lower level.

A. Add permanent deletion of resources on an individual level.
I think it should be possible to pick a single resource and delete it permanently from the database. Right now its all or nothing and I don't think this is good solution.

Edit: This would require a new entry in the tree's context menu as well as a new button on the edit resource page.

B. Change how the trash bin works
I'd like to have a list of all deleted resources in a neat grid instead of a button asking me to send a number of anonymous things to the netherealms.

Edit: Some CMP could do the same job, so that could easily be achieved mit a new extension (I think this should be a core feature).

C. Add delete and undelete to all elements (snippets, chunks, plugins, etc)
Even people that don't practice wild west programming delete the wrong things from time to time. It wold be nice to have a second line of defense.

Edit: Bob Ray pointed out that this would require a new columns in a couple of tables. I don't see a problem with that, but I might me missing something.

D. Enhance the delete modal
The modal shouldn't just ask Are you sure you want to remove this file/resource?. Instead it should ask: Are you sure you want to remove the resource Contact Details (9)?

Especially on the elements tab, where deletion is permanent, this would be a very important improvement.

E. Remove the delete button from already deleted resources
Thats only a cosmetic feature. Deleted resources still have a "delete" button next to the "duplicate" and the "view" button. Its redundant and has absolutely no meaning or function.

Note: Bob Ray pointed out, that instead of this button a "delete permanently" would be a good idea.

If you have further ideas how to improve how MODX handles deletion, please share your thoughts. If you have a solution for one of those issues, create a pull request or contact me and I'll create a pull request for you.

Regards,

pepebe

P.S. Happy Holidays to everyone!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions