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

[FEATURE] Allow different names than only "tags" #17

Open
Tracked by #28
mdenchev-aiopsgroup opened this issue Apr 19, 2021 · 3 comments
Open
Tracked by #28

[FEATURE] Allow different names than only "tags" #17

mdenchev-aiopsgroup opened this issue Apr 19, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mdenchev-aiopsgroup
Copy link

Is your feature request related to a problem? Please describe.
I'd like to use this functionality in a bit more flexible way. Instead of using it for "tags", I want to use it to describe a document in a certain way. For example I want to describe my document with "Regions". However it seems that the autocomplete list only works if my field is named "tags".

Describe the solution you'd like
I'd like the plugin to use the "name" property of the field instead of relying on a hardcoded "tags" name.

Describe alternatives you've considered
I can continue using the plugin with the name "tags" but it messes up with the rest of the schema.

Additional context
Allowing the use of different name than "tags" would allow multiple fields of type "tags" on the same document.

@aaadotpm
Copy link

This would be great! And is somewhat related to #12. Right now, it's possible to use a custom name, but as you point out, the autocomplete will not work. #12 suggests defining which path in the document the plugin should base the autocomplete on.

@crankymaracuja
Copy link

I would love this feature too!

In my case I have tags and skills that could work with autocompletion. An author can have tags and skills whereas articles only have tags. My idea is to bind the autocompletion to the name of this array field. Like, tags autocompletes with all tags through the project and skills autocompletes with all skills throughout the project.

Would love that!

@rosnovsky
Copy link
Owner

Sorry folks, it's been a rough few months. I'm on it now :) Thank you for your patience!

@rosnovsky rosnovsky added this to the v1.1 milestone Dec 20, 2021
@rosnovsky rosnovsky mentioned this issue Dec 20, 2021
8 tasks
@rosnovsky rosnovsky moved this from Triage to Todo in Sanity Autocomplete Tags Dec 21, 2021
@rosnovsky rosnovsky moved this from Todo to Triage in Sanity Autocomplete Tags Nov 2, 2022
@rosnovsky rosnovsky modified the milestones: v1.1, v2 Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

4 participants