@webbio/strapi-plugin-published-at
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @webbio/strapi-plugin-published-at

Weekly Downloads

15

Version

0.1.6

License

MIT

Unpacked Size

259 kB

Total Files

82

Last publish

Collaborators

  • fred-webbio
  • smdehaas
  • jaapwebbio
  • rowanpaul
  • mikewebbio
  • hayedewit
  • tomwebbio
  • maikelm
  • joerismits
  • martijn-webbio