[6.x] Replicator and Bard Set Preview Images#12532
Conversation
modals currently sit on top of everything. if you open the asset browser, you cant use it. the drawer component doesn't stack correctly when used within stacks.
|
Is there any way to make this work just right out of the box — at least with new sites — without having to set the AppServiceProvider and map to a container in the config before being able to use the feature? I feel like nobody will discover it. |
…ard in the set picker
|
I've changed it so that it'll default to an asset container named That'll work for new sites, as well as probably most existing sites that haven't changed their asset containers from the default. If you don't have a container named // config/statamic/assets.php
'set_thumbnails' => [
'container' => 'your_asset_container',
'folder' => 'optionally-a-folder',
], |
|
Is "thumbnail" the right word for this feature? |
Good point, I think maybe not. Thumbnail implies a small, cropped version of an image while |
|
This might be a naive suggestion, but is a simpler solution here setting a resource path in the config and then a preview image is shown for sets that match a file in that directory? If one isn't located it would just not show a preview. For example: This would skip needing to implement a UI for selecting images uploaded to the CMS directly. |
|
Maybe, but lets say you are using the DB (or not even) and building your blueprints using the UI. Now you have to also upload/commit images. We prefer that you can do it all from the UI. Or, you have a set named |
|
Makes sense! |

This PR allows you to pick preview images for your Replicator and Bard sets that will be displayed in the picker UI.
By default it will use the
assetscontainer in a folder ofset-previews. You may customize it:Closes statamic/ideas#1190
Closes statamic/ideas#361