Let admins control the number of matches shown

Created on 20 December 2022, almost 2 years ago
Updated 28 May 2024, 6 months ago

Problem/Motivation

Right now, the "matching content" list shows 5 items that match the title. It would be nice to let admins control the number of items shown.

Proposed resolution

  1. Add a configuration setting for "Number of matches to show".
  2. Use that value to control the number of items shown.

Remaining tasks

  1. Merge patch.
Feature request
Status

Needs review

Version

4.0

Component

Code

Created by

🇺🇸United States jrb Raleigh-Durham Area, NC, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States jrb Raleigh-Durham Area, NC, USA

    Patch re-rolled for latest.

  • Status changed to Needs work over 1 year ago
  • 🇳🇴Norway matsbla

    This patch forces a limit, what if the site builder do not want a limit (want to always show all relevant)?

    And shouldn't there be any possibility to show the rest of the option, e.g. click on "show all results" or something similar? If not relevant duplicates can be hidden.

  • Attaching the patch with possibility to show all results or show specific number of items.

  • Status changed to Needs review about 1 year ago
  • Status changed to Needs work 7 months ago
  • 🇳🇴Norway matsbla

    I tested #8 manually, tried to restrict to 3 results, but I still see more than 3 results.

  • Status changed to Needs review 6 months ago
  • 🇺🇸United States jrb Raleigh-Durham Area, NC, USA

    New patch for 4.1.0 that includes the option to show all matches.

    For this:

    And shouldn't there be any possibility to show the rest of the option, e.g. click on "show all results" or something similar? If not relevant duplicates can be hidden.

    That could be nice as a future update, but could lead to UI issues if there were hundreds (or thousands) of matches. Then, we'd probably need to add some sort of paging which would complicate things even more. I'd suggest just adding the new "Number of matches to show" functionality as is for now.

Production build 0.71.5 2024