Details
-
New Feature
-
Resolution: Won't Do
-
Major
-
None
-
1.1
-
None
-
None
-
-
Empty show more show less
Description
Add the possibility to re-use dialogs configured in repo as prototypes for Blossom configured dialogs.
Sometimes there are just a couple of controls that you really need/like to configure through Blossom, and many that just fit well in the repo (so it's quicker to change live label/descriptions and such, or simply are already there). Sometimes also all the Blossom controls are in a single dialog tab, and all the other tabs of the dialog could have been loaded from the repo, or simply a repo-configured tab is shared among many dialogs.
@DialogFactory(value="my-dialog", prototype="some-other-dialog")
@Paragraph(value="my-paragraph", prototype="some-other-dialog")
When my-dialog (or the dialog for my-paragraph) is created it will include all the tabs and controls of some-other-dialog. That way you could configure some parts of your dialog in the repository, under a different dialog name.
A @TabFactory("Content") method would not create a new tab if one with the label "Content" already exists, instead it would add/remove/edit controls in it.
It would be nice to have also the same pattern on @TabFactory, like @TabFactory(value="Content", prototype="/config/modules/myModule/dialogs/dialog/tab/title") so a tab can inherit directly from some repo configured tab, overriding the DialogFactory prototype, if any.