What widget to use for tags

I need a widget that will output tags: one, two, three in the markdown header.
I thought the List widget would be the right one, but it outputs:

I then tried the simple String widget but it adds single quotes to enclose the string.

Any help would be appreciated.

The list widget doesn’t support tags: one, two, three because it isn’t a valid array syntax (like tags: [one, two, three]) in yaml. Therefore I don’t see the project supporting it in the future.

Same goes for the quotes around a string. The string is escaped with quotes because it contains special characters (the commas). It’s default yaml behavior, which the CMS follows.

You could create a build script that replaces the dashes and newlines of the yaml lists with commas if you want to use the list widgets UI.

Ok, thanks for the clarification. I can see why the project won’t support that in the future, but custom formatters might be an interesting idea. I see on GitHub that yaml, toml, and json formatters are already included.

Any way to do tags and keywords?

Hi there, @Almog :wave:

Thanks for your interest in Netlify CMS. Looks like you posted your question a little while ago, but that you haven’t received a solution yet. Here’s where you might get more help:

netlifycms.org - the site houses our extensive documentation that likely contains helpful information to get you back on track.

netlify cms slack - join our friendly slack channel and chat with other cms pros to get the help you need.

GitHub Issues - think you’ve found a bug, or would like to make a feature request? Make your voice heard here. Netlify CMS is open source - PRs and other contributions are also welcome!

Stack Overflow Check StackOverflow for questions tagged “Netlify CMS” if you don’t get an answer in the Slack or the GH issues. StackOverflow reaches a worldwide audience of knowledgeable people.

Your question will be left open here for anyone to comment - but we encourage you to check out the above resources if you are still looking for a solution!

Hey there @Almog. Without any other information e.g. name of framework your using, it’s hard to help you.

1 Like

Thanks, I got everything working

That is great to hear, @Almog :netliconfetti: