Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Docs about partial modifier outdated

オープン
#1,446 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
documentation

調査の方向性

Read the partial modifier documentation at https://statamic.dev/modifiers/partial and compare its theme guidance with the reported Statamic 5.23.0 behavior. The issue also reports that passing key-value pairs from a Bard field does not load the partial, but gives no reproduction beyond the example; determine whether the docs need correction for that use case. Done means the outdated guidance and relevant partial usage are accurately documented.

索引モデルが issue の本文から書いたものです。

説明

Outdated

I tried to use the partial modifier, but there are several issues:

  1. The docs page mentions themes, that are outdated since v3.
  2. It does not work. I need to pass key-value-pairs of an array as variables to a partial. But the partial does not load – neither hard-coded nor dynamic.

This is my use-case (page_builder/_article.antlers.html from Peak starter, a Bard field):

{{ articleRaw = article | raw }}

{{ articleRaw }}
  {{ values = attrs:values }}

  {{ values | partial("components/{values:type}") }}
  {{# ... or hardcoded ... #}}
  {{ values | partial('components/pull_quote') }}
{{ /articleRaw }}

I am on Statamic 5.23.0 by the way.
Docs page: https://statamic.dev/modifiers/partial

主要言語
PHP
スター
133
フォーク
405
平均マージ
21時間 45分
マージ済み PR(30日)
12

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

statamic/docs のほかの issue

statamic/docs の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。