FeatureFuel
24

Improved preview options

Source: directus/directus#19044 · opened by @WoLfulus
Summary Would be nice to be able to provide additional interface elements (input, dropdowns, and things like this) to the preview window, or at least a way to implement extensions on top of it to add custom interface elements like these (+ being able to dispatch messages to the preview iframe): ![image]( Basic Example It could be either a repeater where you can select the type of interface, or an extension where you define what needs to be rendered on the preview top bar. Motivation One use case I have right now is that I have to switch between languages in the preview mode (which changes the URL). I had to write a wrapping page + another iframe in order to switch between languages since what I'm previewing isn't an actual "page". I also had to workaround the state by persisting it into the local storage, because changing the item data will refresh the preview page url, thus removing the ?language=X I added myself to the preview window. Woul…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests