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: docusaurus/docs/cms/configurations/features.md
+10-16Lines changed: 10 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ To enable a future flag:
31
31
32
32
1. (_optional_) If the server is running, stop it with `Ctrl-C`.
33
33
2. Open the `config/features.js|ts` file or create it if the file does not exist yet. The file will export a `future` object with all the future flags to enable.
34
-
3. To enable a future flag, add its property name (see [full list](#available-future-flags)) to the `future` object and ensure the property's value is set to `true`. The following example shows how to enable the `contentReleasesScheduling` future flag:
34
+
3. To enable a future flag, add its property name (see [full list](#available-future-flags)) to the `future` object and ensure the property's value is set to `true`. The following example shows how to enable the `experimental_firstPublishedAt` future flag:
35
35
36
36
<TabsgroupId='js-ts'>
37
37
@@ -40,8 +40,7 @@ To enable a future flag:
40
40
```ts title="/config/features.ts"
41
41
module.export= ({ env }) => ({
42
42
future: {
43
-
// You could also simply write: contentReleases: true
If your environment file does not include this value, the `contentReleasesScheduling` future flag property value will default to `false` and the experimental feature will not be enabled.
55
+
If your environment file does not include this value, the `experimental_firstPublishedAt` future flag property value will default to `false` and the experimental feature will not be enabled.
57
56
58
57
</TabItem>
59
58
@@ -62,19 +61,18 @@ To enable a future flag:
62
61
```ts title="/config/features.ts"
63
62
exportdefault {
64
63
future: {
65
-
// You could also simply write: contentReleases: true
If your environment file does not include this value, the `contentReleases` future flag property value will default to `false` and the experimental feature will not be enabled.
75
+
If your environment file does not include this value, the `experimental_firstPublishedAt` future flag property value will default to `false` and the experimental feature will not be enabled.
78
76
79
77
</TabItem>
80
78
</Tabs>
@@ -107,10 +105,6 @@ Developers can use the following APIs to interact with future flags:
107
105
108
106
## Available future flags
109
107
110
-
There are currently no available future flags. This section will be updated once new experimental features are available for testing.
111
-
112
-
<!-- The following future flags are currently available and can be used in the `future` object of the `config/features` configuration file:
113
-
114
-
| Property name | Related feature | Suggested environment variable name |
Copy file name to clipboardExpand all lines: docusaurus/docs/cms/features/draft-and-publish.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,14 @@ For your content types to be managed with Draft & Publish in the Content Manager
44
44
}}
45
45
/>
46
46
47
+
### Recording the first publication date <FeatureFlagBadgefeature="experimental_firstPublishedAt" /> {#recording-the-first-publication-date}
48
+
49
+
When this future flag is enabled (see [features configuration](/cms/configurations/features)), Strapi automatically adds a `firstPublishedAt` attribute to all content-types that use Draft & Publish. The attribute saves the date and time when an entry is first published and never changes even if the entry is unpublished and published again.
50
+
51
+
:::caution
52
+
If the feature flag is disabled later, the `firstPublishedAt` attribute and its stored values are removed.
53
+
:::
54
+
47
55
## Usage
48
56
49
57
With Draft & Publish enabled, the [Content Manager's edit view](/cms/features/content-manager#overview) indicates the current status of your content type's entry at the top of the interface. Your content can have 3 statuses:
@@ -101,10 +109,13 @@ When a document has both a draft and a published version available, the publishe
101
109
}}
102
110
/>
103
111
112
+
104
113
:::tip
105
114
To schedule publication (i.e. convert a draft to a published entry at a given date and time) you can include it in a release and schedule the publication of that release. Please refer to the [Releases feature](/cms/features/releases) documentation for more information.
106
115
:::
107
116
117
+
118
+
108
119
### Unpublishing content
109
120
110
121
**Path:** <Iconname="feather" /> Content Manager, edit view of your content type
0 commit comments