Craft 5, CKEditor accessing parent entry from partial
Is it possible to access the parent entry from a partial template being rendered from an embedded entry in a CKEditor field?
For example, consider a "Page" entry type that has a "Copy" CKeditor field. The "Copy" field allows embedding a "Video" entry type. When the "Copy" field is rendered, it will render the embedded "Video" entry type using the /templates/_partials/entry/video.twig
template. From the video.twig
partial template, is it possible to access the "Page" entry type?
This may be particularly useful if the "Video" entry type is embedded into different fields and entry types. For example, the "Video" might be rendered differently if it is part of a "Page" entry type vs a "Blog" entry type. As I see it right now, this would not be possible since each entry type can only have a single template and does not have access to it's parent.
Related documentation: