I have a form that I can included on many pages and that allows me to "attach" files to a page.
I also display "attachments" for that specific page by checking form records, comparing Model.Id to the pageID field of the records.
I use iteration on DynamicRecordList and try to get DynamicRecord.UmbracoPageID and compare it to Model.Id but always yields 0 whereas it clearly is not when checking the records in the Backend...
DynamicRecord.UmbracoPageID always returns 0
As stated in the title.
I have a form that I can included on many pages and that allows me to "attach" files to a page.
I also display "attachments" for that specific page by checking form records, comparing Model.Id to the pageID field of the records.
I use iteration on DynamicRecordList and try to get DynamicRecord.UmbracoPageID and compare it to Model.Id but always yields 0 whereas it clearly is not when checking the records in the Backend...
Could this be a bug?
Cheers,
Kris
I can further confirm that going the non-dynamic way, using RecordStorage, my approach works... Record.UmbracoPageId returns correct values.
So I think there might be a bug in Dynamic...
is working on a reply...