@webbio/strapi-plugin-published-at
v0.1.6
Published
A plugin that adds an extra field to customize the published at date.
Downloads
181
Maintainers
Keywords
Readme
Strapi plugin published at
Features
- 1 Adds a custom field
customPublishedAt
to the configured content types - 2 Inherits original
publishedAt
date - 3 Enables customization of new
customPublishedAt
field - 4 Original
publishedAt
field will remain untouched.
Installation
To install this plugin, you need to add an NPM dependency to your Strapi application.
# Using Yarn
yarn add @webbio/strapi-plugin-published-at
# Or using NPM
npm install @webbio/strapi-plugin-published-at
How it works
Your content type will receive an extra field: customPublishedAt
that will initially inherit the original publishedAt date. Unlike the original publishedAt, the customPublishedAt
is editable in the sidebar of the configured content types.
Configuration
./config/plugins.js
module.exports = ({ env }) => ({
// ...
'published-at': {
enabled: true,
config: {
contentTypes: {
// Example for a content type called "page"
'api::page.page': {}
}
}
}
// ...
});
Then, you'll need to build your admin panel:
# Using Yarn
yarn build
# Or using NPM
npm run build