craftcms / craftcms/cms

[4.x]: Customize sources lacks setting for section type

Open
#13,530 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug craft4
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

Due to the new way of creating globals, categories etc it would be great to see an source option for section type (Single, Structure, Channel). When entrifying a global set it becomes a single section. WIthin the Entries > singles there is now a cluttered overview with entries lacking urls (because they don't have them) and the actual single pages.

When adding a new custom source there is no option to only view single sections. This would resolve this issue. But maybe it's also an idea to add the filter to the singles source, display only when URL is set.

Steps to reproduce
  1. Add a single section (eg. contact)
  2. Add a single section for global use (no URL set)
Expected behavior

The single source within the Entries tab to filter out the globals for clarity in the overview.

Actual behavior

Everything is presented within the Single source. Custom sources are possible but with big sites containing a lot of sections, you need to manually add them to the source filter.

Screenshot 2023-08-09 at 09 33 01
Craft CMS version

4.4.16.1

PHP version

8.2.8

Operating system and version

macOS Ventura 13.5 (22G74)

Database type and version

MariaDB 10.4.30

Image driver and version

Imagick 3.7.0

Installed plugins and versions

N/A

Contributor guide

Open the contributing guide

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.

Research direction

Start in the Entries tab and inspect how custom sources and the Singles source define their filters. Trace how section types and URLs are represented for single sections, then verify that a source can distinguish regular singles from globals and that the Entries overview shows only the intended sections.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.