mattmilburn / strapi-plugin-preview-button

A plugin for Strapi CMS that adds a preview button and live view button to the content manager edit view.
MIT License
99 stars 35 forks source link

Nothing appears on the entry page of Strapi Content Manager #135

Closed maximehamou closed 4 months ago

maximehamou commented 4 months ago

Hello, I just installed the plugin on Strapi v4.23.1. I also configured it in ./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!

maximehamou commented 4 months ago

I am sorry, it was a dumb mistake : I forgot the "s" in plugins.js.