You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrating to Twig, and found that when rendering documents using twig templates specified using ->render() in controller, and not autoresolved. The pimcore_areablock() will not get current document as context.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Pimcore 6.5.8
Migrating to Twig, and found that when rendering documents using twig templates specified using ->render() in controller, and not autoresolved. The pimcore_areablock() will not get current document as context.
ref.: Twig/Extension/DocumentEditableExtension.php
I might be missing some configuration or perhaps I need to pass the document via ->render()
Anyone know what I'm doing wrong? :)
Beta Was this translation helpful? Give feedback.
All reactions