AEM Tagging - Not pulling results with TagManager.find
- March 7, 2016
- 1 reply
- 6685 views
Sorry, I really hope that this is not too basic of a question. That said, please forgive the basic-ness of the question as this is really my first foray into tagging. My local environment is a Windows environment running AEM 6.1, but I don't think I have gotten around to installing SP1 there yet. Alternatively, my Dev environment is on Linux, AEM 6.1 and we do have SP1 installed on there.
So I have a component built on tagging that works just fine in my local environment (both Author and Publisher) but when I promoted it to our Dev environment it is not pulling the results with TagManager.find in Publisher only (but it does work in Author). When I first tested on Publish in my local environment it didn't work there either at first, until I found https://docs.adobe.com/docs/en/aem/6-1/develop/tags/framework.html and added cq:Taggable to the Page Component, at which point it worked fine. Based on the displays I have setup in the code, TagManager.find is returning null (and not throwing any sort of error). I am doing a ResourceResolver.adaptTo to create the TagManager. Please see attached screen shots.
Thanks in advance for your help!
Brad W