Enhancement: allow for string content fields with multiple values #243

Closed
opened 2026-10-05 02:35:36 +02:00 by adam · 3 comments
Owner

I'm using Hugo site generator. Hugo allow for Aliases.

The definition of the aliases front matter field should be:

				{
					"title": "Aliases",
					"name": "aliases",
					"type": "string",
					"single": true,
					"multiple": true
				},

But the "multiple" option is not valid for string fields.

The solution is to allow for "multiple" option to work for string fields, as it does for images.

I'm using Hugo site generator. Hugo allow for [Aliases](https://gohugo.io/content-management/urls/#aliases). The definition of the aliases front matter field should be: ``` { "title": "Aliases", "name": "aliases", "type": "string", "single": true, "multiple": true }, ``` But the "multiple" option is not valid for string fields. The solution is to allow for "multiple" option to work for string fields, as it does for images. <!-- github-sync-id:1190905024 -->
adam closed this issue 2026-10-05 02:35:36 +02:00
Author
Owner

It might be better to have an option for a free text choice field.

It might be better to have an option for a free text choice field. <!-- github-comment-id:1144480315 -->
Author
Owner

It made more sense to have a new list field.

Screenshot 2022-06-02 at 09 16 46

Screenshot 2022-06-02 at 09 16 59

Available for testing in the latest beta

It made more sense to have a new `list` field. ![Screenshot 2022-06-02 at 09 16 46](https://user-images.githubusercontent.com/2900833/171574902-4b2bb571-f1c4-478c-9479-91b976671a32.png) ![Screenshot 2022-06-02 at 09 16 59](https://user-images.githubusercontent.com/2900833/171574920-e972b1eb-ede0-4bb6-bbe6-32d6ce1dc351.png) Available for testing in the latest beta <!-- github-comment-id:1144531896 -->
Author
Owner

The configuration of the list field looks as follows:

{
  "title": "Alias",
  "name": "alias",
  "type": "list"
}
The configuration of the list field looks as follows: ```json { "title": "Alias", "name": "alias", "type": "list" } ``` <!-- github-comment-id:1144533188 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#243