valan Posted June 28, 2015 Posted June 28, 2015 Lets say that there are pages based on template X which has Page field Y configured to store multiple pages. Now, lets delete some pages that are stored in that field in some pages based on template X. Q: Does PW automatically update all Y fields in all pages with template X? e.g. removes deleted pages references from Y? If no, then does it mean that: (a) this job should be done somehow (hook/manually) by admin? (b) each time programmer cycles Y, there should "if-page-exists" check?
horst Posted June 28, 2015 Posted June 28, 2015 @valan: I don't know the answer but are a bit courious why you not simply try it out? I would expect that this is handled by PW internally and that there is nothing to do manually. But I haven't worked with this and therefore only assuming.
LostKobrakai Posted June 28, 2015 Posted June 28, 2015 I'm sure pagetable does hook into pages::delete for the exact same reason, therefore I'm quite certain the standart pagefields do so, too. 2
valan Posted June 28, 2015 Author Posted June 28, 2015 @LostKobrakai: thanks! @horst: thanks. Reasoning: Q is common/basic => get quick & definite answer => save lifetime for all interested non-developers starting from myself) I also think that as there is no definite answer yet - Q even is more useful to all (& not only non-developers) than I initially thought. 1
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