I've added a new section containing a couple of new fields to an existing data template. The fields appear correctly when logged in as a normal user account.
However when accessing the fields using the API, item.Fields["FieldName"] always returns NULL.
Things I've tried:
- Publishing both the item and the corresponding data template
- Granting "Everyone" explicit read access to the fields (and field section).
- Confirmed that my dev instance is pointed to the correct database
- Debugging shows that my two new fields are not in the item's Fields collection.
I've also executed an iisreset, just in case something was cached somewhere. Any help would be much appreciated.