In the panel, I am adding a field to input tags, which will be a list of names.
I would like to paste in a long list of names separated by a comma, instead of adding each name individually.
An example of the text pasted into the field would be: “Name 1, Name 2, Name 3” etc.
When pasting in the list of names, the panel shows this as a single tag, like so:
How can I make the tags field define each name that is pasted in as an individual tag?
This is my desired result:
Here is the blueprint:
tag_with:
label: 'Tag: With'
type: tags
required: true
options:
type: query
query: site.index.pluck("tag_with", ",", true)
width: 1/2
merci!
Hm, when you save and reload, they will be separated into single tags, but no idea how to achieve that while pasting.
@texnixe Thanks for the reply. That seems odd that the panel will only separate the tags once saving and refreshing the page.
I believe that wasn’t the case with earlier versions of Kirby right?
I’m having this issue with 4.1.1, while on another site running 3.9.8 there is no issue and it separates the tags immediately once they are pasted.
Then I’d consider that a bug, could you create an issue on GitHub?
Ok, I’ve created the issue on GitHub as it definitely seems like a bug.
Here is the GitHub link to the issue :
Hopefully this is a simple fix, as it appears to have worked in earlier releases.