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

Breadcrumbs not showing?

Started by Muut Archive 11 years ago · 10 replies · 1214 views
11 years ago

Hi, I installed this plugin as intended in user/plugins/breadcrumbs. But it's not displayed? Breadcrumbs should work without config as described in helpfile?

11 years ago

Hi

Most likely the twig file has not included the placement of the breadcrumb perhaps. Thats what I think anyway. What is your .MD file called and which theme are you using?

11 years ago

Hi, I'm using antimatter theme. My .md file is called default

11 years ago

What method did you use to install the plugin ?

11 years ago

I downloaded zip file. Unzipped local und uploaded via ftp to user/plugins.
bin/gpm not working on my hoster (or I can't get it working)

11 years ago

For me manual install did work (actually it was an upgrade from a version 3 months back) but I don't get how it works:

  • home (/blog) is now inactive (EDIT: ok I got how 'link trailing' works, thx)
  • most notably it is indented and I didn't find how to get the logo to occupy this space (maybe logo file size/format was not ok?)
    So documentation is not very helpful if I may say(
11 years ago

Hi,
do you use antimatter theme? .md called default?

11 years ago

Yes, antimatter blog with a second menu item. Blog is blog.md; page is default.md but breadcrumbs don't appear there, you're right (not that it matters to me at that point of the site evolution)
And blog template twig file does include the call for breadcrumbs:
{% if config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
While antimatter/templates/default.html.twig doesn't: tweak it to include the above code or use an already complete .md file for your pages folder.

11 years ago

If I include the code in default.html.twig my page breaks.
If I include it in partials/base.html.twig it works.
Thanks

11 years ago

I used the wrong place in default.html.twig. Now it works.
But please update the readme/docs of the plugin.
Breadcrumbs is not just working...when you have to insert code somewhere

11 years ago

Hey Arank,
This is how the twig works and majority of other programming and templating languages :) You can't insert code in any place. It has to be put usually in content area to show up. When you said that your page breaks, it broke with a message. This is often a hint what is wrong :)
Anyways, I'm glad you got it sorted. Thanks for the feedback. We are working to make our Readme's as clear as possible :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1327 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago