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

Nav tag with from parameter always returns empty #1683

Closed
mikemartin opened this issue Apr 15, 2020 · 4 comments
Closed

Nav tag with from parameter always returns empty #1683

mikemartin opened this issue Apr 15, 2020 · 4 comments

Comments

@mikemartin
Copy link

Bug Description

There seems to be an issue with the from parameter on the nav tag. When I add from="/" or from="/{segment_1}" the structure collection always returns empty.

{{ nav from="/" }}
        <a href="{{ url }}" >{{ title }}</a>
{{ /nav }}

Environment

Statamic version: 3.0.0.-beta-26

PHP version: 7.{?}

Install method (choose one):

  • Fresh install from statamic/statamic
  • Starter kit
  • Existing Laravel app
  • Other (please explain this magic!)
@wm-simon
Copy link

Could be the same:
#1542

@jasonvarga
Copy link
Member

Do you have a collection named pages? What's in its yaml file?

@edalzell
Copy link
Contributor

title: Pages
template: subjects/show
layout: layout
blueprints:
  - default
  - subject
revisions: false
route: '{parent_uri}/{slug}'
sort_dir: asc
structure:
  root: true
  tree:
    -
      entry: home
    -
      entry: 9ac8d33f-ff87-4a4f-b8b2-05b0c1b266e4
    -
      entry: 0f9f2a2a-b21a-4d99-9d9d-b95ffc75540c
    -
      entry: 3d9ad4cc-12c9-4d6d-99d6-4991ccefa1e4

@jasonvarga
Copy link
Member

I think this issue is solved by 5a9d7a0. Feel free to reopen if not.

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

No branches or pull requests

5 participants