List all tags in a Site

Howdy all. Hope you are well.

Listing all tags in a site; i.e. that belong to the distinct tag field (tags):

Is that a thing in Kirby?

Yes, possible.

$siteWideTags = $site->index()->pluck('tags', ',', true);

Be aware that $site->index() can harm performance if you have a big site.

1 Like

I will keep that in mind.

Thanks a lot pixelijn.