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

Blade: Variables like index only available in Antlers #1597

Open
duncanmcclean opened this issue Jan 22, 2025 · 0 comments
Open

Blade: Variables like index only available in Antlers #1597

duncanmcclean opened this issue Jan 22, 2025 · 0 comments

Comments

@duncanmcclean
Copy link
Member

On the collection/taxonomy docs, it mentions the fact there should be an index variable available.

However, the index variable (along with a couple others) is only available in Antlers loops, not in Blade loops.

Laravel Blade has its own $loop variable which can be used to get stuff like the index instead.

I'm not sure where/how, but we should document that things work differently in Antlers vs Blade.

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

No branches or pull requests

1 participant