Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Add IFrame Media Chooser API #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

Readme.md Outdated Show resolved Hide resolved
@@ -3,7 +3,7 @@ Neos:
Ui:
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

Classes/Eel/MediaChooserNeosConfigHelper.php Show resolved Hide resolved
Resources/Private/JavaScript/media-module/src/index.tsx Outdated Show resolved Hide resolved
@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