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

Đang mở
#21,307 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
PHP
Star
3.6k
Fork
800
Merge trung bình
15 giờ 20 phút
Pull request đã merge (30 ngày)
715

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của craftcms/cms

Tất cả issue của craftcms/cms

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.