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

Explain that Blade fluent tags don't have context #1573

Open
jasonvarga opened this issue Dec 12, 2024 · 0 comments
Open

Explain that Blade fluent tags don't have context #1573

jasonvarga opened this issue Dec 12, 2024 · 0 comments

Comments

@jasonvarga
Copy link
Member

Regarding conversation here: statamic/cms#11247

Blade fluent tags don't automatically get the context, and some tags rely on the context.

For example, the locales tag needs to know the ID. In Antlers it can just grab the nearest id from the available variables, but since Blade is just PHP, it's not as magical so you need to pass it in.

On the Blade tags page we should mention that context might be necessary on some tags. And, on those tag pages we could consider explaining whenever things are retrieved from context and note what's needed to be done when using Blade fluent tags.

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