bmacnaughton Posted May 19, 2017 Share Posted May 19, 2017 When I delete a page name, e.g, /cart/, using the admin interface it goes into trash and gets the name /trash/2573.1.11_cart/ . I see that, with the Pages::trashed hook that the previous page name (previousPage) can be accessed. Where can I more information about what happens when a page is put into trash and what the name means? Link to comment Share on other sites More sharing options...
Zeka Posted May 19, 2017 Share Posted May 19, 2017 https://github.com/processwire/processwire/blob/50f2834a0ae2a9f9f2ac53439184ebdc04db2f54/wire/core/PagesTrash.php#L53 So there is id, parent id and sort position of trashed page in that name. 6 Link to comment Share on other sites More sharing options...
bmacnaughton Posted May 19, 2017 Author Share Posted May 19, 2017 Thank you @Zeka. Perfect answer, with code reference! I am getting more familiar with the code slowly. 1 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