Added support for an Advertisement Banner on the homepage
made home publish/draft
This commit is contained in:
@@ -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");
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user