Ability to add only one occurrence of a block/widget to a homebox in D8

Created on 9 December 2020, over 3 years ago
Updated 31 October 2023, 8 months ago

Problem/Motivation

As described in #1066304 it is possible to add multiple copies of the same block to a homebox. This applies to the D8 branch of homebox.

Steps to reproduce

Add a block to a homebox. Add the same block again.

Proposed resolution

Add an option to disallow multiple copies of the same block and update the list of available blocks to match. Based on the patch in #1066304 - updated to the D8 branch.

User interface changes

New option for a homebox "Allow only a single instance of each block".

Data model changes

New option is stored in the options array for a homebox. Default is false to maintain BC.

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia damyon

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.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @Grevil: Any ideas where we could put this in the new concept?
    Perhaps per HomeboxType we should add a list for HomeboxPortletTypes to select different options for them within this specific homebox type:

    Status (Select):

    • Allowed: Once instance
    • Allowed: Unlimited instances
    • Disallowed

    Any better ideas for naming?

    And only allowed portlet types can be used in the Homeboxes of this type?
    New portlets should NOT be available by default, so you have to enable them explicitly.

    I think that's a good concept!

  • Status changed to Fixed 8 months ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    This is now fixed in 3.0.x! πŸŽ‰πŸŽ‰πŸŽ‰

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024