I noticed that when I create a new draft the autocomplete won’t work until I’ve published it and reloaded the page. I’m using kirby 3.3.1. Anyone else having this issue?
Thats by quirk of design. That query looks for tags on the pages siblings - it’s a draft, and so does not have any sibliings yet. (unless you make more drafts that have tags). In this case, the siblings are whatever pages are in the _drafts folder.
To autocomplete the tags while it is a draft, you would need to change the query to target the published pages.
Thats the problem part, and why there was no change in behaviour. Your still telling it to look at the pages sibliings. You need to find the parent page the draft will belong to when its published instead, and looked at it’s children.
oh, I get it now! Thanks a lot!
It ended like this for me, 'cause I wanted only the listed pages tags: query: site.find('parentpage').children.listed.pluck("tags", ",", true)