Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
landure opened this issue Apr 3, 2022 · 3 comments
Closed

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

landure opened this issue Apr 3, 2022 · 3 comments

Comments

@landure
Copy link

landure commented Apr 3, 2022

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.

@estruyf
Copy link
Owner

estruyf commented Jun 2, 2022

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

estruyf added a commit that referenced this issue Jun 2, 2022
@estruyf
Copy link
Owner

estruyf commented Jun 2, 2022

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

@estruyf
Copy link
Owner

estruyf commented Jun 2, 2022

The configuration of the list field looks as follows:

{
  "title": "Alias",
  "name": "alias",
  "type": "list"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants