Themes: group a long settings list (sub-groups inside a fieldset)

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
laravel, php
領域
backend

調査の方向性

The issue names the theme settings declaration, the four fieldsets (site, latest, content, archive) and the existing visible_when option, but no source files or tests. Start by finding where theme settings and visible_when are parsed and rendered, then decide the shape of the group key with a maintainer before coding. Done means a grouped setting renders as a titled, collapsible section and a group collapses when its owning switch is off.

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

説明

area/themes type/enhancement when/later

A theme's settings are one flat list under four fieldsets (site, latest, content, archive). visible_when can hide a setting until a switch is on, but it cannot group them. A skin that gives every block its own on/off switch ends up with a very long Settings › Design page: one theme port declares 128 settings, 35 of them in site, with nothing to tell the administrator which belong together.

What the theme did meanwhile: prefix every label with its area ("Home: top stories strip", "Share: WhatsApp", "Pattern: show on the rail") so related settings sort together, and use visible_when for sub-options.

Wanted, in order of need:

  1. Sub-groups inside a fieldset: a group key on a setting (or a heading entry) that the page draws as a titled, collapsible section.
  2. A way to collapse a whole group when the switch that owns it is off, so a switched-off block doesn't leave its sub-options on screen.

Related: #373 (more setting types and more fieldsets), #371 (a skin setting that switches template set and tokens: with several skins the list grows further).

主要言語
PHP
スター
1
フォーク
1
平均マージ
1時間 40分
マージ済み PR(30日)
143

環境構築

はじめの一歩

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

temecms/teme のほかの issue

temecms/teme の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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