Search the Community
Showing results for tags 'delete page'.
-
I'm trying to delete a page from the API in a front-end template and processwire refuses. I've never had this happen before. I can delete the pages fine from the backend. Here is my very simple code: if($input->post->delete == 'delete'){ $registration = $page->parent->url; bd($page->status(),"Check page status"); //This equals 1 $page->trash(); $session->redirect($registration); } This error comes up: A search on the forum turns up only one other topic in which the user discovered they had a typo that was causing the issue. I also looked at page status and template options mentioned in that post, but they do not appear to be the problem. Beating my head against this one for a couple days...any ideas?
-
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.
- 12 replies
-
- trash icon
- delete page
-
(and 1 more)
Tagged with: