DrQuincy Posted October 19, 2020 Share Posted October 19, 2020 From what I can tell if you have a Page Reference field and that links to a page, e.g.: page1.pageReference links to page2 page2 is deleted page1.pageReference now equals null Is there any way here to mimic a MySQL RESTRICT action so that page2 cannot be deleted (and warns you as such in the admin) while there are page fields that point to it? Thanks. Link to comment Share on other sites More sharing options...
Robin S Posted October 19, 2020 Share Posted October 19, 2020 Some hook code is here: 2 Link to comment Share on other sites More sharing options...
DrQuincy Posted October 19, 2020 Author Share Posted October 19, 2020 Great, thanks! 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