Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Page Inject Plugin + Breadcrumbs

Started by Muut Archive 10 years ago · 1 replies · 760 views
10 years ago

Please tell me how to use breadcrumbs in the page using:

TXT
[plugin:page-inject](/route/to/page?template=custom-template)

The fact is that when the page is rendered with [plugin:page-inject] breadcrumbs or menu items do not work.
Menu I moved into the parent template and it works, but when I transfer the bread crumbs with the important html tags, the DOCTYPE tag display.
How to insert breadcrumbs

TWIG
{% include 'partials/breadcrumbs.html.twig'  with { some vars }%}

to work.
It seems the problem [plugin:page-inject] is that page which uses this plugin does not have access to shared variables and processed at the beginning of the process the entire page, and then already handled by the parent template base.html.twig.
I hope I make myself clear)))

10 years ago

Well, too bad. It turns out that this plugin is useful for the design of 2000 years))), otherwise you get the tag the DOCTYPE.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3042 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago