nfil Posted September 10, 2015 Share Posted September 10, 2015 Hello. I installed pWire 2.6.16 and after giving permission for the editor role to delete pages, also his role has access to edit the template but the trash icon won't show next to the page. It will only display the trash icon for super users. https://processwire.com/blog/posts/extra-action-in-your-page-list-processwire-core-updates-2.6.5/ Thanks for the help. Link to comment Share on other sites More sharing options...
Peter Knight Posted September 10, 2015 Share Posted September 10, 2015 The trash link is only visible for super users. Agree it'd be helpful to have option to display for other roles. 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 10, 2015 Share Posted September 10, 2015 I've written this on github a few days ago as well. I think this is deliberate, because superusers are the only people, who can interact with the trash. All other users can only delete pages and they are gone for them. Now, under those circumstances, nobody wants those users to delete pages by accidentally clicking on the wrong button in the pagelist. If users need batch deleting I'd rather suggest using ListerPro and the trash/delete PageAction, while few pages can also be deleted by opening those in new browser tabs and delete them via the page editor. But if one really would like a delete action in the pagelist: The method is hookable and everyone can add whatever one needs / wants to that actionlist. 1 Link to comment Share on other sites More sharing options...
bernhard Posted September 10, 2015 Share Posted September 10, 2015 There's also a Page Delete Module: http://modules.processwire.com/modules/process-page-delete/ Don't know if that works with the new versions of PW. The compatibility note says yes. I've only worked with it some time ago (PW2.4 or so...). nfil, maybe you can try that and share your experience? +1 for having the delete button optionally visible for other roles 1 Link to comment Share on other sites More sharing options...
nfil Posted September 10, 2015 Author Share Posted September 10, 2015 I've written this on github a few days ago as well. I think this is deliberate, because superusers are the only people, who can interact with the trash. All other users can only delete pages and they are gone for them. Now, under those circumstances, nobody wants those users to delete pages by accidentally clicking on the wrong button in the pagelist. If users need batch deleting I'd rather suggest using ListerPro and the trash/delete PageAction, while few pages can also be deleted by opening those in new browser tabs and delete them via the page editor. But if one really would like a delete action in the pagelist: The method is hookable and everyone can add whatever one needs / wants to that actionlist. Yes it makes sense! A client that wants a quick way to delete pages asked if this would be possible but sometimes a wrong click and no access to trash can cause panic. I was also thinking about lister or listerPro to batch delete the pages and thanks for the hook suggestion. Thanks for all the answers. Link to comment Share on other sites More sharing options...
kixe Posted September 10, 2015 Share Posted September 10, 2015 @BernhardB and nfilProcessPageDelete Module works in 2.6. You can configure it to delete pages directly by the green button. (to be confirmed - javascript). The permission could be added to any user.Another solution is to just use trashing option in combination with CronjobEmptyTrash Module which delete trashed pages permantly after a configurable time period. 1 Link to comment Share on other sites More sharing options...
adrian Posted September 10, 2015 Share Posted September 10, 2015 A little self promotion here BatchChildEditor gives you an alternate interface that allows for very quick deletion of multiple pages. It may or may not suit your needs. Those delete buttons are toggles that mark the page for deletion, but the user still has to click Save to process the deletions, so this makes it pretty good at preventing accidental deletions. 4 Link to comment Share on other sites More sharing options...
nfil Posted September 13, 2015 Author Share Posted September 13, 2015 thanks kixe and adrian! While creating the site, as a superuser I always use this module, http://modules.processwire.com/modules/process-batcher/ Congrats Adrian!! that one looks great too and makes sense for the editor role and batch delete. I haven't tried the cronjobEmptyTrash module, always try to keep the modules to a minimum but I will certainly have a look at that one too. thanks! 2 Link to comment Share on other sites More sharing options...
m-artin Posted October 26, 2015 Share Posted October 26, 2015 At first I thought this is a bug and double checked all my role permission settings : ) So, another +1 for having the delete button optionally visible for other roles. I think this should be consistent and convenient. 1 Link to comment Share on other sites More sharing options...
cb2004 Posted November 2, 2015 Share Posted November 2, 2015 Bit confused why this would be removed, considering you now have to go into the page, go to the delete tab and all this does is send it to the trash anyway. Link to comment Share on other sites More sharing options...
LostKobrakai Posted November 2, 2015 Share Posted November 2, 2015 It's easy to accidentally click the trash button, especially on narrow screens, where actions are wrapped into a second line. As besides superusers nobody can restore pages from the trash this is disabled. It's pure precaution. Link to comment Share on other sites More sharing options...
OLSA Posted August 3, 2017 Share Posted August 3, 2017 Hello for all, I created "admin" role and what I want for that rolle is just restriction to see "Admin" and "system/tools" page tree, but also option to delete pages from list tree. +1 for delete permission Link to comment Share on other sites More sharing options...
adrian Posted September 14, 2017 Share Posted September 14, 2017 On 8/3/2017 at 4:37 PM, OLSA said: Hello for all, I created "admin" role and what I want for that rolle is just restriction to see "Admin" and "system/tools" page tree, but also option to delete pages from list tree. +1 for delete permission We already have a delete permission: Is that what you are looking for, or referring to something else? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now