[MGNLUI-4459] Let programmer decide what subapp show in a chooseDialog Created: 07/Jun/18  Updated: 08/Mar/21  Resolved: 08/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: content app, dialogs
Affects Version/s: 5.6.5
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: David Caviedes Marquez Assignee: Unassigned
Resolution: Obsolete Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File security-groups.png    
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)
Date of First Response:

 Description   

Nowadays it is not possible to choose what subapp show in a chooseDialog, because first subapp is always shown.

Use case: we need to configure a chooseDialog to choose a user group from Security app

Problem: we cannot do that because we cannot choose what subapp to use

What can we do in this case? We think it should be changed to let choose subapp



 Comments   
Comment by Roman Kovařík [ 08/Jun/18 ]

Hi dmarquez,

If the roles are in a flat structure, I'd use Select field with the repository and path properties.

Regards.
rkovarik

Comment by Richard Gange [ 08/Jun/18 ]

Hello dmarquez-

One way to work around this problem is to create another app which targets the content you want to see. At the moment I am not sure which subapp you want to use but the idea is to isolate it in another app. Then use this new app in your choose dialog.

HTH
Rich

Comment by David Caviedes Marquez [ 08/Jun/18 ]

Hello,

it is a poor solution to use a Select field, because is a flat structure, and maybe the content to choose can be in a hierarchical structure. User roles are only an example to show you the problem.

Moreover, the workaround creating another app that contains the desired subapp is a "heavy" development and not a good solution...

Subapp to show in chooseDialogs must be configuriable...

Thanks a lot

Comment by Richard Gange [ 08/Jun/18 ]

Hi David-

Moreover, the workaround creating another app that contains the desired subapp is a "heavy" development and not a good solution...

We have things like YAML inherit that would make this a 5 minute job. Which subapp are you trying to target? I will provide the YAML for you if you'd like.

Or you could also use JCR extends:

Comment by David Caviedes Marquez [ 08/Jun/18 ]

Hello Richard,

we know it´s about a few minutes, but it´s not a good practice and then not a good solution at all. Really we have to create another app to achieve this functionality? We think is not the best way but a workaround.

Cheers

Comment by Roman Kovařík [ 08/Mar/21 ]

Closing this as the new framework provides configurable datasource (e.g. JCR workspace) and is not bound to an app anymore.

Generated at Mon Feb 12 09:16:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.