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

Root nav items don't return custom field data #10080

Closed
robdekort opened this issue May 15, 2024 · 0 comments · Fixed by #10086
Closed

Root nav items don't return custom field data #10080

robdekort opened this issue May 15, 2024 · 0 comments · Fixed by #10086

Comments

@robdekort
Copy link
Contributor

robdekort commented May 15, 2024

Bug description

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" }}
   {{ contents | dump }}

This dumps nothing. Only the Title and URL are available. The data also isn't available when I remove the select attribute. When I dump the whole nav I don't see the data:
Screenshot 2024-05-14 at 08 55 58

How to reproduce

Create a nav with custom fields
Add root items with custom fields filled in
Request it in Antlers

Logs

No response

Environment

Environment
Laravel Version: 11.7.0
PHP Version: 8.2.19
Composer Version: 2.7.6
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Livewire
Livewire: v3.4.12

Statamic
Addons: 8
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.1.0 PRO

Statamic Addons
jacksleight/statamic-bard-mutator: 2.3.1
jonassiewertsen/statamic-livewire: 3.3.1
rias/statamic-color-swatches: 2.3.0
stillat/relationships: 2.2.0
studio1902/statamic-peak-browser-appearance: 3.4.0
studio1902/statamic-peak-commands: 8.3.0
studio1902/statamic-peak-seo: 8.13.2
studio1902/statamic-peak-tools: 6.0.0

Installation

Starter Kit using via CLI

Additional details

Possibly related to #10055

@duncanmcclean duncanmcclean changed the title [5.x] Root nav items don't return custom field data Root nav items don't return custom field data May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant