Open robdekort opened 1 month ago
This sounds like an Antlers bug to me. It passes the footer
global as the nav handle, rather than the footer
handle being specified.
This is intentional but in hindsight kinda dumb.
We can't change it now though, as some people might be relying on this behavior.
The use case is something like this:
{{ nav:a_field_where_you_picked_a_nav }}
...
{{ /nav:a_field_where_you_picked_a_nav }}
For v6 we can remove that behavior, and if people want to reference a field they could do {{ nav :handle="a_field_where_you_picked_a_nav" }}
For now, just stick with your workaround.
Gotcha 👍
Bug description
Lets say you:
footer
.footer
.{{ nav:footer }}
Statamic\Tags\Structure::ensureStructureExists()
error.Stuff starts working when you do
{{ nav handle="footer" }}
instead.How to reproduce
Do the above.
Logs
Environment
Installation
Starter Kit using via CLI
Additional details
No response