Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Page Inject Plugin + Breadcrumbs

Started by Muut Archive 9 years ago · 1 replies · 549 views
9 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)))

9 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 Deleted User, 9 years ago
0 1321 9 years ago
Archive · by Muut Archive, 9 years ago
2 916 9 years ago
Archive · by Muut Archive, 9 years ago
2 4047 9 years ago
Archive · by Muut Archive, 9 years ago
1 2921 9 years ago
Archive · by Muut Archive, 9 years ago
3 1105 9 years ago