h2o
September 16, 2022, 10:46am
1
Hi,
We want to display all the available tags, which we got through a query, for our editor.
Default behavior is that if you enter a character, it will give you all tags containing this character.
But is it possible to somewhere show all tags, maybe in the help area?
Best,
h2o
texnixe
September 16, 2022, 12:29pm
2
Yes, you could show a comma separated list of all text in the help text or a separate info field below the field.
h2o
September 16, 2022, 12:44pm
3
Okay!
How would that work, I do not see an option to put the query content to the text property of the info field, only plain text?
h2o
September 20, 2022, 11:25am
4
Anyone else has an idea how we can get all tags by query?
texnixe
September 20, 2022, 12:41pm
5
Create a custom pages method that returns what you want to show. Then query that either in the help prop or in your info fields text property.
Assuming you have a pages method getAllTags()
that returns a comma separated list of all tags plucked from the pages, you can then use it like this:
tags:
type: tags
help: '{{page.siblings.getAllTags}}'
Same for the text property of an info field.