bernhard Posted February 5, 2021 Share Posted February 5, 2021 Just wondering... A client called me yesterday: "Bernhard, I deleted a project, can you restore that?" It was not that simple, because that project had related pages that have also been trashed. Restoring those pages would have been a lot easier if the trash in the page tree showed the trashed pages sorted by time of deletion. What do you think? How to you find such pages quickly? Am I missing anything? I've used a custom $pages->find() in tracy console to get what I want... 2 Link to comment Share on other sites More sharing options...
virtualgadjo Posted February 8, 2021 Share Posted February 8, 2021 hi, honestly, being a little bdd obsessive, in this case i would use a query to retreive from the "pages" table the pages where parent = 7 order by modified desc for example the funny thing is in this table, deleted pages new name is their id followed by their parent id, useful to restore them with the right parent... don't know if it is a very pw way to do things ? maybe a hook to have template 2 sorting its children by modified desc when page id is 7... have a nice day 1 Link to comment Share on other sites More sharing options...
bernhard Posted February 8, 2021 Author Share Posted February 8, 2021 Thx - no answers seems that I'm not missing anything obvious here ? If you like, give this request a thumbs up: https://github.com/processwire/processwire-requests/issues/386 1 Link to comment Share on other sites More sharing options...
virtualgadjo Posted February 8, 2021 Share Posted February 8, 2021 done ? and i would have been surprised you'd missed something obvious ? have a nice day 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