You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+22-4
Original file line number
Diff line number
Diff line change
@@ -59,14 +59,30 @@ This value will also be passed to the `DatePicker` component. Defaults to 5 mins
59
59
Custom configuration for the scheduled posts collection that gets merged with the defaults.
60
60
61
61
62
+
## Utils
63
+
64
+
### `SafeRelationship`
65
+
66
+
Drop-in replacement for the default [`relationship` field](https://payloadcms.com/docs/fields/relationship) to prevent users from publishing documents that have references to other docs that are still in draft / scheduled mode.
In a nutshell, the plugin creates a `publish_date` field that it uses to determine whether a pending draft update needs to be scheduled.
81
+
In a nutshell, the plugin creates a `publish_date` field that it uses to determine whether a pending draft update needs to be scheduled. If a draft document is saved with a `publish_date` that's in the future, it will be scheduled and automatically published on that date.
65
82
66
83
### `publish_date`
67
84
68
-
Custom Datetime field added to documents in enabled collections.
69
-
Includes custom `Field` and `Cell` components that include schedule status in the client-side UI.
85
+
Datetime field added to enabled collections. Custom `Field` and `Cell` components display the schedule status in the client-side UI.
70
86
71
87
### `scheduled_posts`
72
88
@@ -81,4 +97,6 @@ A configurable timer checks for any posts to be scheduled in the upcoming interv
81
97
82
98
* This plugin doesn't support Payload 3.0 beta. I intend to update it once 3.0 is stable, but it'll require substantial re-architecting to work in a serverless environment.
83
99
84
-
* There's no logic in place to dedupe schedules across multiple instances of a single app (see https://github.com/wkentdag/payload-plugin-scheduler/issues/9)
100
+
* There's no logic in place to dedupe schedules across multiple instances of a single app (see https://github.com/wkentdag/payload-plugin-scheduler/issues/9)
101
+
102
+
* There's no logic in place to automatically publish any pending scheduled posts that weren't published due to server downtime.
0 commit comments