Jump to content

1 or 2 click delete max in admin


lundy
 Share

Recommended Posts

It takes 5 clicks to delete a page

it takes 4 clicks to delete a template 

it takes 4 clicks to delete fields

then there are the associations that don't let you delete a template if a page is using it...

So, 4 clicks to delete it, then I see that it is in use, so I go to the page, 5 clicks x number of pages, then another 4 clicks to delete the template, and I hope I didn't miss anything or it's even more.

tedious.

just put the trashcan on the main admin>pages like in the setup>templates>templatename where you remove fields, you just click the trashcan...

then one dialog max asking if you are sure you want to delete... things go to the trashcan so it's not like they can't be reinstated if i made a mistake.

muchas gracias

Link to comment
Share on other sites

also, I tried to delete a template, can't a page is attached, so I go and delete the page 5 clicks, go back to templates to delete, 4 clicks, only to find out that the page is in the trash and still linked even after I moved it to the trash?

so in reality to delete a page takes  7-8 clicks, to truly get it unlinked with from a template..

really tedious for someone learning the system, where I am trying to figure out pages templates and fields , and how I want to structure my data.

Link to comment
Share on other sites

i don't think there is a way to change things to accommodate your complaint; each element has is dependencies, you'll get used to it...

have you looked at information architecture and database design? i always plan out on paper the structure of the site before making fields, templates etc..

oh and another pointer - make sure your data and admin structure is really stable before you write any front-end markup

  • Like 3
Link to comment
Share on other sites

Agreed, currently it takes quite a few steps to delete something. As a side effect of that, cases where our clients have deleted something "by accident" have decreased to near zero. I'd like to argue that it's actually a good thing and destructive things should never be too easy.

Trashing pages isn't irreversible, that's true, but as it stands recovering content from trash isn't exactly trivial either (superusers only, unless you're using Trashman module). Another thing to note is that not all content is treated that way: users and templates, for an example, are instantly (and irreversibly) removed. Definitely not something you'd want to happen by mistake.

From my point of view PW has good balance regarding this subject right now and it shouldn't be disrupted without careful consideration. If I was asked if something should be changed, personally I'd prefer restoring content not requiring superuser access, but then again, Trashman already handles that part. Still, if it was my choice, it should be baked into core system somehow.

Same goes for pages, templates and fields; I feel that they should be recoverable too. Especially users, as I'm seeing more and more people adding extra data for them, thus making them less trivial to recreate.

Just saying.. and sorry for taking this off-topic :)

  • Like 1
Link to comment
Share on other sites

As a side effect of that, cases where our clients have deleted something "by accident"

this is what i love about the system, i have a client who accidentally deleted some important pages (before i removed page-delete from their permissions) and all i had to do was go in the trash and move them back...

i can sleep at night because i know that processwire has been designed from the ground up to be 'safe' in so many ways...

edit:

@lundy - i should have recommended that you try the batcher module - i recall using that for batch page deleting and i believe that it does actually delete the pages in 1 step;  You could then use batcher to find all pages using a template and then batch delete them, then you could delete the template with 1 click..

and also it would probably be possible to write a module that would add a trash button to the page list, maybe look at the modules that are doing similar things with the page tree, such as this http://modules.processwire.com/modules/process-page-publish/

Edited by Macrura
Link to comment
Share on other sites

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...