Hi, I’m hunting down a very strange bug and it would help if I could get some more info about the internal workings of pageFieldData.
The bug is simply that: Sometimes page field data added to a page via Fields.AddOrUpdateValue
is present in the database (Sites.PageFieldData) but not displayed in the admin edit forms nor the frontend.
My guess is that this is due to some formatting problems, but I get no errors and the data gets inserted into the database.
To debug this I need to understand the database structure better. Data seem to be inserted into Sites.PageFieldData but also to Sites.DraftPageFieldData ?? But if I directly altering field data (for debug purposes ) in PageFieldData and DraftPageFieldData the changed will not be displayed in admin edit forms until I publish the post again.
Q1: Should the data be displayed in admin/edit if I updated the date directly in the DraftPageFieldData field? or is this loaded from a third place?
Q2: On the first insert using AddOrUpdateValue should the data in the Sites.DraftPageFieldData be an exact mirror of Sites.PageFieldData or should de only be populated in on edit?
Right now, the filed data is missing in Sites.DraftPageFieldData present in Sites.PageFieldData and not displayed in admin.
Thanks!
Litium version: 7.1