Replies: 1 comment
-
You can access the current Boxes Page model anywhere in Twig using the This is untested and needs some more code (for example to reverse the order), but something along these lines should give you the breadcrumbs: <ul>
{% for parent in boxesPage.getParents() %}
<li>{{ parent.title }}</li>
{% endfor %}
</ul> It is also possible that you have to relax the Twig security policy if you want to go this route. Otherwise you'd have to move the logic to the PHP section: https://talk.octobercms.com/t/safe-mode-relaxing-twigs-security-policy/876 Please post your solution if you get it to work! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As i can understand Pages created with OFFLINE.boxes do not sync with Rainlab.Pages. So i wonder what is the best way, to create nested page structure with automatically created breadcrumbs as staticBreadcrumbs do not work with pages created with OFFLINE.boxes Plugin. Any help will be appreciate :)
Beta Was this translation helpful? Give feedback.
All reactions