Jump to content

keeping consistency on page deletes


valan
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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