Not taking visibility condition for Custom entity type

Created on 22 January 2022, almost 3 years ago
Updated 27 February 2023, almost 2 years ago

Problem/Motivation

Steps to reproduce

  1. Create "myentities" module (drush)
  2. Create "myentity" custom entity (web)
  3. Create a Visibility Group with "myentities type" condition set to "myentity"
  4. Create a block, and place somewhere at the layout, and set to the visibility group created above

I expect the block being visible when viewing "myentity" content ( myentities/ID ), however never displayed.

If instead of this, the condition is set to display on "/myentities/*" then the block is visible, but that workaround doesn't apply if you have multiple entities definied, and want visibility groups take into account each "myentities type" separately.

Proposed resolution

By creating a visibility group condition on a custom entity type, get visible when the condition meets.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain ramon.roca

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.

Production build 0.71.5 2024