Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Explain that Blade fluent tags don't have context

Aperta
#1,573 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
49/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
laravel, php
Ambito
documentation

Direzione di ricerca

Update the Blade tags page and consider the tag pages that retrieve values from context; the issue does not name specific files. Start by locating those documentation pages and reviewing the linked Statamic CMS discussion for the context requirements. Done when the Blade fluent tags documentation explains that some tags need context passed explicitly and the affected tag pages describe what Blade users must provide.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Regarding conversation here: https://github.com/statamic/cms/issues/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.

Lingua principale
PHP
Stelle
133
Fork
405
Merge medio
21h 45m
PR unite (30g)
12

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di statamic/docs

Tutte le issue di statamic/docs

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.