Tag Title rendering - Publish server on 6.1
I'm having issues while rendering the tag titles on the publish server (AEM 6.1). I'm not facing this issue on Author environment as I'm logging as 'admin' user and even if I login as admin user on the publish server then tag names are rendering properly. I have checked the following options, in both the cases title is null
Option -1
tagPath =/etc/tags/<my tag>
Resource tagResource = resource.getResourceResolver().getResource(tagPath); //Resource is not null but tagResource is returning null
if(tagResource !=null){
Tag tag = tagResource.adaptTo(Tag.class);
title = tag.getTitle();
}
Option2
tagManager = resourceResolver.adaptTo(TagManager.class); //tagManager is not null here but Tag is returning null
Tag tag = tagManager.resolve(tagPath);