Skip to content

Conversation

@skurfuerst
Copy link

@skurfuerst skurfuerst commented May 25, 2021

In Flow applications or "traditional" Neos modules which are not implemented with React, you still sometimes
need to choose assets. The Media UI provides an extra entry point to allow this. The process works roughly as follows:

  1. You open an iFrame, where you display the IFrameMediaChooser Controller.

  2. The user can pick an image.

  3. When the image is chosen, a JavaScript callback function in your outer frame (at location window.NeosMediaBrowserCallbacks.assetChosen)
    is called.

frontendConfiguration:
Flowpack.Media.Ui:
useNewMediaSelection: true
useNewMediaSelection: false
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

@skurfuerst skurfuerst force-pushed the media-chooser-iframe-api branch 2 times, most recently from 7385b3c to e8e9203 Compare June 21, 2021 19:08
@skurfuerst skurfuerst changed the title DRAFT: TASK: Initial version of IFrame Media Chooser (not yt fully working yet) FEATURE: Add IFrame Media Chooser API Jun 21, 2021
@skurfuerst skurfuerst marked this pull request as ready for review June 21, 2021 19:09
In Flow applications or "traditional" Neos modules which are not implemented with React, you still sometimes
need to choose assets. The Media UI provides an extra entry point to allow this. The process works roughly as follows:

1) You open an iFrame, where you display the `IFrameMediaChooser` Controller.

2) The user can pick an image.

3) When the image is chosen, a JavaScript callback function in your outer frame (at location `window.NeosMediaBrowserCallbacks.assetChosen`)
   is called.
@skurfuerst skurfuerst force-pushed the media-chooser-iframe-api branch from e8e9203 to 1f905e5 Compare June 21, 2021 19:11
@erickloss erickloss force-pushed the media-chooser-iframe-api branch from fdef6a0 to 1f905e5 Compare July 15, 2021 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant