Skip to content

Commit e4ead1e

Browse files
committed
Changes for 9.4.0 release
1 parent 7e48ee0 commit e4ead1e

File tree

7 files changed

+91
-7
lines changed

7 files changed

+91
-7
lines changed

.frontmatter/database/mediaDb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/changelog/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## [9.4.0] - 2023-xx-xx
3+
## [9.4.0] - 2023-xx-xx - [Release notes](https://beta.frontmatter.codes/updates/v9.4.0)
44

55
### ✨ New features
66

content/changelog/v9.4.0.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Version 9.4.0 release notes
33
description: ""
44
date: 2023-12-07T15:05:16.280Z
5-
lastmod: 2023-12-07T16:40:53.318Z
5+
lastmod: 2023-12-08T09:17:28.790Z
66
slug: ""
77
type: changelog
88
---
@@ -68,12 +68,26 @@ const width = answers.width;
6868

6969
> **Info**: More information can be found in the [asking questions to users](/docs/custom-actions#asking-questions-to-users) documentation.
7070
71-
### Scheduled content
71+
## Scheduled content
7272

7373
You can now filter and group the content dashboard by scheduled content. This allows you to see which content is scheduled to be published in the future.
7474

7575
![Scheduled content](/releases/v9.4.0/scheduled-content.png)
7676

77+
## Creating sub-content
78+
79+
When creating sub-content, you can now select the parent folder. This allows you to create you content in any folder you want.
80+
81+
You can enable this feature on the content type by setting the `allowAsSubContent` or `isSubContent` property to `true`.
82+
83+
> **Info**: More information can be found in the [creating sub-content](/docs/content-creation/content-types#creating-sub-content) documentation.
84+
85+
## Content type name shown in the panel
86+
87+
A small enhancement which we added in this release to the editor panel is the content type name in the metadata section. Now you can easily see which content type your content is using.
88+
89+
![Content type name](/releases/v9.4.0/content-type-name.png)
90+
7791
## Related issues/enhancements
7892

7993
### ✨ New features

content/docs/content-creation/content-type.md

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Content types
33
slug: content-creation/content-types
44
description: null
55
date: 2022-03-14T08:43:17.483Z
6-
lastmod: 2023-09-11T07:47:18.146Z
6+
lastmod: 2023-12-08T09:13:41.283Z
77
weight: 200.1
88
---
99

@@ -128,6 +128,8 @@ For the content type you can configure the following properties:
128128
| `postScript` | `string` | An optional post script that can be used after new content creation. In order to use this, you will have to set the value to the ID of your [content script][04] | `null` |
129129
| `previewPath` | `string` | Defines a custom preview path for the content type. When the preview path is not set, the value from the [`frontMatter.preview.pathName`][03] setting will be used | `null` |
130130
| `template` | `string` | Specify a path to a template file that will be used when creating new content with the content type | `null` |
131+
| `allowAsSubContent` | `boolean` | Allow the content type to be used as sub-content | `false` |
132+
| `isSubContent` | `boolean` | Defines the content type as sub-content | `false` |
131133

132134
## Define your own type
133135

@@ -180,6 +182,61 @@ type: documentation
180182

181183
> **Fields**: Check out the [fields][05] section to learn which fields are supported.
182184
185+
## Creating sub-content
186+
187+
By default, when you create new content, it will always be created in one of your defined folders
188+
in the `frontMatter.content.pageFolders` setting.
189+
190+
In some cases, you want to create a hierarchy of content. For example, you want to create a
191+
documentation site, where each topic has its own folder. The starting point is a page bundle which
192+
contains the `index.md` file and all the related topics are created as separate files in the same
193+
folder.
194+
195+
To support this, you can now make use of the `allowAsSubContent` and `isSubContent` properties on
196+
your content type.
197+
198+
### Allow as sub-content
199+
200+
The `allowAsSubContent` property is intended to be used for content types with a page bundle
201+
(`pageBundle: true`). When you set this property to `true`, during the content creation, you will be
202+
able to choose if you want to create content as parent or sub-content.
203+
204+
```json {{ "title": "Using the allowAsSubContent property" }}
205+
{
206+
"frontMatter.taxonomy.contentTypes": [
207+
{
208+
"name": "parent",
209+
"pageBundle": true,
210+
"allowAsSubContent": true,
211+
"fields": [
212+
...
213+
]
214+
}
215+
]
216+
}
217+
```
218+
219+
### Is sub-content
220+
221+
The `isSubContent` property is intended to be used for content types which will always be created as
222+
sub-content. When you set this property to `true`, during the content creation, you be able to
223+
select the parent folder.
224+
225+
```json {{ "title": "Using the isSubContent property" }}
226+
{
227+
"frontMatter.taxonomy.contentTypes": [
228+
{
229+
"name": "child",
230+
"pageBundle": true,
231+
"isSubContent": true,
232+
"fields": [
233+
...
234+
]
235+
}
236+
]
237+
}
238+
```
239+
183240
## Using a template with the content type
184241

185242
When creating content that requires a pre-defined structure, you can use the `template` property.

content/docs/content-creation/fields.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Fields
33
slug: content-creation/fields
44
description: null
55
date: 2022-03-14T08:42:21.626Z
6-
lastmod: 2023-12-01T09:24:51.920Z
6+
lastmod: 2023-12-08T08:57:08.344Z
77
weight: 200.2
88
---
99

@@ -447,6 +447,8 @@ When the tag is created, you will be able to re-use it for other content.
447447

448448
- `taxonomyLimit`: Defines the maximum number of items that can be selected. By default set to `0`
449449
which allows unlimited items to be selected.
450+
- `singleValueAsString`: When set to `true`, a single value will be added as a string value instead
451+
of an array.
450452

451453
> **Info**: When a limit is defined, this will get reflected in the UI as well:
452454
@@ -479,6 +481,8 @@ The `categories` field is similar to the [tags][09] field. Categories are also s
479481

480482
- `taxonomyLimit`: Defines the maximum number of items that can be selected. By default set to `0`
481483
which allows unlimited items to be selected.
484+
- `singleValueAsString`: When set to `true`, a single value will be added as a string value instead
485+
of an array.
482486

483487
```json {{ "title": "Usage" }}
484488
{
@@ -506,6 +510,8 @@ taxonomy values and structure.
506510
which allows unlimited items to be selected.
507511
- `taxonomyId`: Set the id of your custom taxonomy definition defined in the
508512
`frontMatter.taxonomy.customTaxonomy` setting.
513+
- `singleValueAsString`: When set to `true`, a single value will be added as a string value instead
514+
of an array.
509515

510516
### Custom taxonomy
511517

content/docs/settings/available-settings.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Settings overview
33
slug: settings/overview
44
description: null
55
date: 2023-02-13T16:44:09.618Z
6-
lastmod: 2023-10-27T07:02:42.637Z
6+
lastmod: 2023-12-08T09:03:00.096Z
77
weight: 1100.2
88
---
99

@@ -771,6 +771,13 @@ Specifies the tags which can be used in the Front Matter.
771771
> (`.frontmatter/database/taxonomyDb.json`). The setting can still be used to predefine the tags.
772772
> Once the project gets initialized, the tags will be moved to the database file.
773773
774+
### frontMatter.taxonomy.quoteStringValues
775+
776+
Specify if you always want to wrap string values in quotes.
777+
778+
- Type: `boolean`
779+
- Default: `false`
780+
774781
### frontMatter.telemetry.disable
775782

776783
Specify if you want to disable the telemetry.
47.1 KB
Loading

0 commit comments

Comments
 (0)