Closed maximehamou closed 4 months ago
Hello, I just installed the plugin on Strapi v4.23.1. I also configured it in ./config/plugin.js :
./config/plugin.js
"use strict"; module.exports = { "preview-button": { config: { contentTypes: [ { uid: "api::article.article", draft: { url: "http://localhost:8000/api/preview", query: { type: "article", slug: "{slug}", }, openTarget: "_blank", }, published: { url: "http://localhost:8000/{slug}", }, }, ], }, }, };
Then I rebuild the app and went to the Content Manager, and opened the collection type "article". In any of the entries, no "open preview" button appears.
I probably missed something in the configuration.
Feel free to ask for additional informations.
Thank you for your help!
I am sorry, it was a dumb mistake : I forgot the "s" in plugins.js.
plugins.js
Hello, I just installed the plugin on Strapi v4.23.1. I also configured it in
./config/plugin.js
:Then I rebuild the app and went to the Content Manager, and opened the collection type "article". In any of the entries, no "open preview" button appears.
I probably missed something in the configuration.
Feel free to ask for additional informations.
Thank you for your help!