Is scheduled publish feature in the roadmap now? #567
Replies: 5 comments 21 replies
-
This could use a detailed example or made as a plugin, but what you can do is add your own fields with versions with drafts, and manage it through access control to create your own workflows for publishing content. Say you have a collection for const Post: CollectionConfig = {
slug: 'posts',
labels: {
singular: 'Post',
plural: 'Posts',
},
versions: {
drafts: true,
},
access: {
read: ({ req: { user } }) => {
// a logged in user will be able to read all posts
if (user) {
return true;
}
// a guest will see only posts that have been published for published at a time before the current time for the request
return {
and: [
{
publishAt: {
less_than: new Date().toJSON(),
},
_status: {
equals: 'published',
},
},
],
};
},
readVersions: ({ req: { user } }) => Boolean(user),
},
fields: [
{
name: 'publishAt',
type: 'date',
admin: {
position: 'sidebar',
},
// ... other fields for the content
],
}; There are situations that can add complexity to your workflows to plan around:
Does that help? |
Beta Was this translation helpful? Give feedback.
-
Yes, it helps. I’m currently using Contentful and investigating alternatives to that(Just too expensive and hard to customize). How to solve them with payloadcms then? |
Beta Was this translation helpful? Give feedback.
-
👍🏼 bumping this feature, we've implemented 50+ CMS solutions for clients over the years and this almost always a requirement (fwiw this is a core feature in most CMS solutions I've worked with), would strongly support this to be considered for core and not plugin/roll your own |
Beta Was this translation helpful? Give feedback.
-
any updates on this feature or have i missed the functionality? |
Beta Was this translation helpful? Give feedback.
-
This discussion should probably be closed |
Beta Was this translation helpful? Give feedback.
-
What I found is this: https://payloadcms.com/blog/version-0-15-0
Beta Was this translation helpful? Give feedback.
All reactions