Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Choosing an Asset From the Dialog

Asset choose dialog is used when there is a need to inject an asset in some place visually (e.g. in PageEditor). The dialog is provided by the Assets app and it is quite easy to set up. All you have to do is:

  • Obtain the Assets app instance:  App assetsApp = appController.startIfNotAlreadyRunning("assets", new DefaultLocation("app", "assets",...));
  • Open the dialog by calling the following: ChooseDialogPresenter<Item> dialogPresenter = assetsApp.openChooseDialog()
  • Observe the value choice: dialogPresenter.addValuePickListener(new ValueChosenListener<Item>() {...})

Migration

For migration details please see: Concept - DAM migration tasks