'Add button Preview (custom) Header EditView Strapi V4
I’m trying to add a button and Preview next to the Save and Publish button in EditView, but it’s complicated. I already tried putting a plugin (strapi-plugin-preview-button) but it seems that it doesn’t work in version 4+ of Strapi. So, I tried to edit in the EditView Header index.js (src/admin/src/content-manager/pages/EditView/Header/index.js), the button even appears, but after doing the build, it disappears. I’ve already tried to edit directly in the build, but it also disappears the button after doing the build. Do you have any tips, any tutorials to put this Preview button on the page before publishing?
System Information
Strapi Version: 4.1.10
Operating System: Linux Ubuntu
Database: SQLite3
Node Version: 16.0.0
NPM Version: 7.10.0
Yarn Version: 1.22.18
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|