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

Open
#685 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
laravel, php
Domain
backend

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
PHP
Stars
1
Forks
1
Avg merge
1h 40m
Merged PRs (30d)
143

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temecms/teme

All issues in temecms/teme

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.