craftcms / craftcms/cms

Allow all entries to be searched when limiting entry sources for entry fields

Open
#2,822 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

Currently, you can only search all entries when adding an entry to an entries field when All sources are available. As soon as you limit the available sources, you can only select and search within each of the limited sources.

We need to be able to limit entry sources to prevent users from selecting entries that are used for relational data and don't have public URLs. We'd like to do this without making it more difficult to quickly find and add a desired entry.

Ideally, you'd still be able to search from all of the limited number of sources.

Steps to reproduce
  1. Create an entry field with a few sources available. (Not all)
  2. Add field to a section.
  3. Add an entry to the field and attempt to search.
  4. Compare to entry field with all sources available.
Additional info
  • Craft version: 3.0.4

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

Reproduce the behavior in an entries field configured with several, but not all, available sources, then compare its search behavior with a field allowing all sources. Trace the entries-field source selection and search entry points; done means searches cover all limited sources while selection remains restricted to those sources.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.