mattmilburn/strapi-plugin-preview-button

Option to show both "preview" and "live" open buttons

ecosse3 opened this issue ยท 6 comments

Hi,

I would really appreciate showing both "preview" and "live" open buttons option when content is already published. When using Strapi with SSR content is published by making a deployment manually and then content user would be able to view draft state which is not yet published (even when editing already "published" content).

It could just add a button:
image

What do you think about that? Thanks

Hi @ecosse3 That is a great point! Currently the plugin does not work that way but I agree it should be made possible. I'll keep you updated as I include that new feature. ๐Ÿ‘๐Ÿป

Just a side note - In the future, Strapi will change how it handles draft/publish states by implementing a more advanced and "true" draft system. In other words, we will one day be working with multiple draft versions of an entity rather than an on/off draft state. Once that happens I'm sure this plugin will need a significant update.

Hey ๐Ÿ‘‹ Curious to know the status of this feature :)

Hi @Mcastres I'm currently doing lots of house keeping with my Strapi plugins and the preview button is certainly one of them. Expect this feature in this month of August 2023 ๐Ÿ‘๐Ÿป I'll ping everyone on this issue when it is released ๐Ÿ™‚

Hi @ecosse3 @Mcastres This plugin has now been upgraded to version 2.0.0 with breaking changes to the configuration and a lot of improvements behind the scenes.

This includes the new draft.alwaysVisible option that was requested on this issue. Please let me know how it goes for you and see the migration guide before upgrading.

@mattmilburn This works great for me! Thank you so much!

Awesome! Thanks @mattmilburn ๐Ÿ”ฅ