plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[Web Previews] Can't get Parent content and model id when opening preview in a child (Referenced Model content)

Open adeel-bright opened this issue 1 year ago • 1 comments

I have model A which represents a page and i have a field in model "A" which reference to model "B". I want to edit record B from record A and want to preview that as well. I am able to get the ctx value of record B in preview modal, is there any way i can get the value of parent model i.e model A in the similar iframe.

Any help will be appreciated. Thanks

adeel-bright avatar Sep 25 '23 16:09 adeel-bright

Hello @adeel-bright i just replied to you right here: https://community.datocms.com/t/access-parent-id-in-a-linked-record/4406/2

marcelofinamorvieira avatar Sep 26 '23 12:09 marcelofinamorvieira