I’m trying to find a page by using findBy on a tags field, but I get NULL.
$category = $site->index()->findBy('tag_category_tags', 'sovsäck'); // give me NULL
In the blueprint of the page I like to find I have this field:
tag_category_tags:
label: Taggar som styr vilka produkter kategorien ska innehålla
type: tags
separator: ;
options: query
query:
fetch: site.find("tag-manager").global_tags.toStructure
text: "{{ structureItem.tag }}"
value: "{{ structureItem.tag }}"
I also tried
$category = $site->index()->findBy('tag_category_tags', 'sovsäck', ';');
But still NULL