Jump to content

Sort order of trashed pages?


bernhard
 Share

Recommended Posts

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...

  • Like 2
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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...