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

Aperta
#685 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php
Ambito
backend

Direzione di ricerca

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.

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

Descrizione

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).

Lingua principale
PHP
Stelle
1
Fork
1
Merge medio
1h 40m
PR unite (30g)
143

Preparare l'ambiente

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 temecms/teme

Tutte le issue di temecms/teme

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.