-
How can I acces the actual entry (the "page") inside a _partial template?
Not my proudest piece of Twig... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You're looking for {% set owner = entry.getRootOwner() %} |
Beta Was this translation helpful? Give feedback.
-
Thank you @mmikkel (I was on 5.3 but after updating all worked well) |
Beta Was this translation helpful? Give feedback.
You're looking for
getRootOwner()
, which was added in Craft 5.4: