Added support for an Advertisement Banner on the homepage

made home publish/draft
This commit is contained in:
Joao Ramos
2024-04-08 18:48:35 +01:00
parent 5dbe466dff
commit 3d4005a62a
8 changed files with 429 additions and 59 deletions

View File

@@ -21,5 +21,24 @@ module.exports = ({ env }) => {
},
},
},
publisher: {
enabled: true,
config: {
hooks: {
beforePublish: async ({ strapi, uid, entity }) => {
console.log("beforePublish");
},
afterPublish: async ({ strapi, uid, entity }) => {
console.log("afterPublish");
},
beforeUnpublish: async ({ strapi, uid, entity }) => {
console.log("beforeUnpublish");
},
afterUnpublish: async ({ strapi, uid, entity }) => {
console.log("afterUnpublish");
},
},
},
},
};
};