TagManager resolve not working
Hi,
I am trying to create a filter component - to filter based on tags. The idea is to pass tags from a specific path to front, so user can choose from dropdown.
I am having an issue, with Tag Manager methods, like resolve.
Code below:
@9944223
public String getAllTags(){
Tag tag = null;
TagManager tagManager = null;
tagManager = resourceResolver.adaptTo(TagManager.class);
tag = tagManager.resolveByTitle("Region");
String name = tagManager.getNamespaces()[3].getTitle();
return tag.getPath();
}
This is just a test method. I know that the return type should be List<Tag>, but for now I just want to get a specific tag path, to understand hot this works. But it is returning null. I know most of the times this issue is related to user permissions, but I already updated the permission to read for content/cq:tags. Thanks!