[CONTEDIT-525] Content editor apps UI6 - block availability Created: 15/Mar/23  Updated: 02/Feb/24  Resolved: 02/Feb/24

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: 2.1.6
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Krystof Raiskub Assignee: Lam Nguyen Bao
Resolution: Outdated Votes: 3
Labels: None
Remaining Estimate: 0d
Time Spent: 0.75d
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2023-03-14 at 13.29.40.png     PNG File Screenshot 2023-03-14 at 13.53.05.png    
Issue Links:
Relates
dependency
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: AuthorX Support
Team: AuthorX
Work Started:

 Description   

Hello,

We are currently migrating our custom content editor apps from UI5 to UI6 syntax on the corporate website project, but we ran into the following issue - the block availability does not work as expected. In the block chooser dialog, we see all of the registered blocks from the whole project, even those which are meant to be used in other content-editor apps, etc. The expected behavior would be to show just those blocks defined in the app definition.

For the following block field definition:
 

blocks: 
  $type:multiJcrBlock 
  initialBlock:text 
  defaultBlock:text 
  blocks: 
   - text 
   - heading2 
   - code2 
   - ctaHorizontal2 
   - image 
   - video_corp2 
   - html 
   - quote2 
   - list2 
   - infobox 
   - link 
   - faq2 
   - table 
   - line2 
   - lottie

 
 
We see the following in the block chooser dialog - shows all registered blocks in the repository:

 
What I have also found is that if I reduce the list of available blocks to something like:
 

blocks: 
  $type:multiJcrBlock 
  initialBlock:text 
  defaultBlock:text 
  blocks: 
   - text

 
 
Then in the dropdown, it works fine, but in the block chooser dialog, it still shows all registered blocks.

 
Thanks a lot for looking into that,
Krystof
 
 



 Comments   
Comment by Frank Sommer [ 20/Oct/23 ]

Furthermore the title of the choose dialog shouldn't relate to the stories app.

Comment by Rainer Blumenthal [ 29/Jan/24 ]

we urgently need this to be fixed plz

Comment by Lam Nguyen Bao [ 31/Jan/24 ]

rgange the old behavior is that all the blocks are loaded, regardless the blocks are registered in other content apps.

However, with the changes from https://jira.magnolia-cms.com/browse/CONTEDIT-552. The definitions are respected and loaded only defined blocks in app definition

cc: ldelnevo miguel.martinez  

Generated at Mon Feb 12 00:21:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.