Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Explain that Blade fluent tags don't have context

Đang mở
#1,573 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
49/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
laravel, php
Lĩnh vực
documentation

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
133
Fork
405
Merge trung bình
21 giờ 45 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của statamic/docs

Tất cả issue của statamic/docs

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.