Closed JonKaric closed 3 months ago
Not sure if I understand your issue and if it's similar. But I don't seem to get any navigation blueprint data returned in Antlers for root items. It does seem to work for children (in my case).
tree:
-
id: c818add2-f657-474b-ae28-fa4cec914bc2
title: Follow
data:
contents: social_media
{{ nav:footer max_depth="2" select="contents|title|url|collection_source|buttons" }}
{{ contents | dump }}
This dumps nothing. Only the Title and URL are available. When I dump the whole nav I don't see the data:
@robdekort Do you have any conditions anywhere? That is what seems to be messing mine up, but only for groups.
What do you mean with groups? Even without conditions the data doesn't seem available on root items. Only on children (in my case).
Group fieldtypes (and possibly other fields that produce the same data structure, but I didn't test them)
Gotcha!
Mine might be a separate issue. We'll see :-)
Mine might be a separate issue. We'll see :-)
It seems like both issues are related 😄
Reverting the changes made in https://github.com/statamic/cms/pull/9636 seem to fix both issues.
Ah good. Jason suggested I create a separate one so it doesn’t get lost. I’ll do that tomorrow.
Bug description
When you create a group and give it a condition of show when, you can no longer access the data if a child precedes it.
Copy the data below and try re-ordering them inside your navigation to see what I mean.
How to reproduce
inside antlers:
content/navigation/test.yaml
content/trees/navigation/default/test.yaml
resources/blueprints/navigation/test.yaml
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response