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

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
backend

調査の方向性

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.

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

説明

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
主要言語
PHP
スター
3.6k
フォーク
800
平均マージ
15時間 20分
マージ済み PR(30日)
715

環境構築

はじめの一歩

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

craftcms/cms のほかの issue

craftcms/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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