|
| 1 | +--- |
| 2 | +title: Version 10.2.0 release notes |
| 3 | +description: Get the latest version of Front Matter CMS with improved logging, snippet card actions, and multilingual support. |
| 4 | +date: 2024-06-10T12:51:00.297Z |
| 5 | +lastmod: 2024-06-10T13:25:34.684Z |
| 6 | +slug: v10.2.0 |
| 7 | +type: changelog |
| 8 | +--- |
| 9 | + |
| 10 | +## Logging improvements |
| 11 | + |
| 12 | +In this release, we have added a new setting `frontMatter.logging` which allows you to define the logging output. The options are `info`, `warn`, `error`, and `verbose`. The default is `info`. |
| 13 | + |
| 14 | +We also added some colors to highlight the different logging levels in the Front Matter CMS output. |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +## Snippet card actions |
| 19 | + |
| 20 | +Similar to the previous release, we have added common actions at the bottom of the snippet cards. This allows you to perform actions on the snippets without having to open the snippet menu. |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +## Snippets dialog is now a slide-over |
| 25 | + |
| 26 | +The snippets dialog has been updated to be a slide-over dialog. This makes it easier to work with longer snippet forms. |
| 27 | + |
| 28 | +## Hiding the data sidebar when editing data files |
| 29 | + |
| 30 | +When you are editing a data file, the data sidebar will now be hidden. This allows you to focus on the data file you are editing. Additionally, a dropdown of data files is shown, allowing you to switch between data files. |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +## Enhance multilingual support by adding the locale placeholder |
| 35 | + |
| 36 | +We have added a new placeholder `{{locale}}` which can be used in the `previewPath` property. This allows you to generate different preview URLs based on the locale of the content. |
| 37 | + |
| 38 | +```json {{ "title": "Example: Use the locale in your preview path" }} |
| 39 | +"frontMatter.content.pageFolders": [ |
| 40 | + { |
| 41 | + "title": "docs", |
| 42 | + "path": "[[workspace]]/src/content/docs", |
| 43 | + "previewPath": "/{{locale|ignore:en}}", |
| 44 | + "trailingSlash": true, |
| 45 | + "contentTypes": ["blog"] |
| 46 | + } |
| 47 | +] |
| 48 | +``` |
| 49 | + |
| 50 | +The preview path will generate the following path for English content: `/<slug>/`. For other locales, the preview path will generate the following path: `/<locale>/<slug>/` (e.g. `/nl/<slug>/`). |
| 51 | + |
| 52 | +> **Info**: You can read more about the `{{locale}}` placeholder in the [special placeholders](/docs/content-creation/placeholders#example-5-using-the-locale-placeholder) section. |
| 53 | +
|
| 54 | +## Added support for trailing slashes in the preview path |
| 55 | + |
| 56 | +You can now define whether you want to have trailing slashes in the preview path. This can be done by setting the `trailingSlash` property to `true` or `false`. The setting can be defined on global, content folder, and content type levels. |
| 57 | + |
| 58 | +```json {{ "title": "Example: Use trailing slashes in the preview path" }} |
| 59 | +{ |
| 60 | + "frontMatter.preview.trailingSlash": true |
| 61 | +} |
| 62 | +``` |
| 63 | + |
| 64 | +## Related issues/enhancements |
| 65 | + |
| 66 | +### ✨ New features |
| 67 | + |
| 68 | +- [#797](https://github.com/estruyf/vscode-front-matter/issues/797): Adding common actions at the bottom of the snippet cards |
| 69 | + |
| 70 | +### 🎨 Enhancements |
| 71 | + |
| 72 | +- [#441](https://github.com/estruyf/vscode-front-matter/issues/441): Show input descriptions for snippet and data forms |
| 73 | +- [#442](https://github.com/estruyf/vscode-front-matter/issues/442): Hide sidebar on data view when data file is selected + show dropdown of data files |
| 74 | +- [#788](https://github.com/estruyf/vscode-front-matter/issues/788): Show a warning on setting update when it exists in an extended configuration |
| 75 | +- [#798](https://github.com/estruyf/vscode-front-matter/issues/798): Changed dialog to slide-over for the snippet forms |
| 76 | +- [#799](https://github.com/estruyf/vscode-front-matter/issues/799): Added `frontMatter.logging` setting to define the logging output. Options are `info`, `warn`, `error`, and `verbose`. The default is `info`. |
| 77 | +- [#800](https://github.com/estruyf/vscode-front-matter/issues/800): Add colors for the Front Matter CMS output |
| 78 | +- [#808](https://github.com/estruyf/vscode-front-matter/issues/808): Add support to generate field groups and `block` fields in content type generation |
| 79 | +- [#810](https://github.com/estruyf/vscode-front-matter/issues/810): Update the tab title based on the view |
| 80 | +- [#811](https://github.com/estruyf/vscode-front-matter/issues/811): Added `panel.gitActions` view mode option to hide the Git actions in the panel |
| 81 | +- [#812](https://github.com/estruyf/vscode-front-matter/issues/812): Added the `{{locale}}` placeholder, which can be used in the `previewPath` property |
| 82 | + |
| 83 | +### ⚡️ Optimizations |
| 84 | + |
| 85 | +- [#802](https://github.com/estruyf/vscode-front-matter/issues/802): Update `glob` to the latest version and remove the sync method |
| 86 | + |
| 87 | +### 🐞 Fixes |
| 88 | + |
| 89 | +- [#796](https://github.com/estruyf/vscode-front-matter/issues/796): Fix issue in retrieving folders/files on dashboard load |
| 90 | +- [#801](https://github.com/estruyf/vscode-front-matter/issues/801): Faster folder processing on updates |
| 91 | +- [#804](https://github.com/estruyf/vscode-front-matter/issues/804): Fix blinking of the front matter content area |
| 92 | +- [#806](https://github.com/estruyf/vscode-front-matter/issues/804): Fix preview URL for `index.md` files in root of the page folder path |
| 93 | +- [#809](https://github.com/estruyf/vscode-front-matter/issues/809): Fix retrieving the `filePrefix` when updating the file name on slug change |
0 commit comments