[6.x]: New sections are not automatically organized under their corresponding headings

Abierto
#21,307 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php
Área
backend

Línea de trabajo

Start by tracing how newly created sections are added to the section navigation and how the default headings for Channels, Structures, and Singles are represented. Reproduce the issue by creating a Channel section and checking where it appears. Done means it appears under Channels when that heading exists, with a sensible fallback when no matching heading exists.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug repo:cms
What happened?
Description

When creating a new Channel section, it is automatically placed under the Structure heading in the section navigation, even though a Channels heading already exists.

I understand that these headings are customizable, but I haven't created or modified any of the initial headings. They were present by default.

It would be helpful if Craft could determine the appropriate heading based on the section type (Channels, Structures, or Singles) and place the new section accordingly. If a matching heading doesn't exist, it could fall back to a "New" or "Uncategorized" heading to indicate that the section needs to be organized.

Also a consideration for V5.

Steps to reproduce
  1. Navigate to Settings → Sections.
  2. Create a new Channel section.
  3. Return to the section navigation.
  4. Observe where the new section is listed.
Expected behavior

A newly created Channel section should appear under the Channels heading, assuming that heading exists.

If no corresponding heading exists, the section should be placed under a default heading indicating that it needs to be organized

Actual behavior

The newly created Channel section appears under the Structure heading, rather than Channels.

Craft CMS version

6

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions
Lenguaje dominante
PHP
Estrellas
3.6k
Forks
800
Merge medio
15 h 20 min
PR fusionados (30 d)
715

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de craftcms/cms

Todos los issues de craftcms/cms

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.