Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get nav:breadcrumbs to render #1618

Closed
twd3 opened this issue Apr 3, 2020 · 4 comments · Fixed by #2976
Closed

Can't get nav:breadcrumbs to render #1618

twd3 opened this issue Apr 3, 2020 · 4 comments · Fixed by #2976
Labels

Comments

@twd3
Copy link

twd3 commented Apr 3, 2020

If you don't fill out at least most of this this template the issue may be automatically closed. Thanks in advance!

Bug Description

I can't get nav:breadcrumbs to render. Through the beta updates this code has worked but currently is not rendering any breadcrumbs.

  {{ nav:breadcrumbs include_home="false" }}           
      <li>
        <a{{ if is_current }} class="current"{{ /if }} href="{{ url }}">{{ title }}</a>
      </li>                      
  {{ /nav:breadcrumbs }}

How to Reproduce

Here's how I can recreate the bug:

  1. Go to 'Template'
  2. Add 'nav:breadcrumbs'
  3. View 'page that uses template'
  4. See no breadcrumbs

Expected Behavior

I expected to see breadcrumbs

Screenshot/Exception

Here's where you can add screenshots, screencasts, or a link to a Flare exception message to help explain the problem.

Environment

Statamic version: 3.0.0.-beta-23
run php please -V to find it.

Install method:
Fresh install from statamic/statamic

PHP version: 7.2.11
run php -v to find it

Operating System:
Windows

Browser:
Firefox

@vertexer
Copy link
Contributor

vertexer commented Apr 3, 2020

Issue confirmed.
Possible workaround:
Try without include_home="false" and use {{ if !first }}...{{ /if }}.

{{ nav:breadcrumbs }}{{ if !first }}<li><a{{ if is_current }} class="current"{{ /if }} href="{{ url }}">{{ title }}</a></li>{{ /if }}{{ /nav:breadcrumbs }}

@twd3
Copy link
Author

twd3 commented Apr 3, 2020

I can confirm this workaround works.

@jackmcdade jackmcdade added the tags label Apr 7, 2020
@fitzage
Copy link

fitzage commented Oct 15, 2020

Just ran into this myself. Using include_home="false" as the documentation says to do just breaks the output altogether.

@FrankPeters
Copy link

Also ran into this issue migrating from v2. Workaround works for me.

I am sorry to say that I am a bit worried about the state of v3 so far. We have gotten so many of these smaller and also bigger issues that really blocked us or forced us to redo complete parts of our v2 data structure. And some major breaking changes weren't even documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants