Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

How to get a TagManager instance?

$
0
0

Hey there!

 

I'm trying within one of my components to get a reference to a valid TagManager so that I can call resolve on some Tag IDs that I have.

 

The documentation I've read says to do either:

TagManager tagManager = JcrTagManagerFactory.getTagManager(session);

TagManager tagManager = resourceResolver.adaptTo(ResourceResolver.class);

 

but I can't get either of these to work. Anyone have any code they've used in a component to get a TagManager?


Viewing all articles
Browse latest Browse all 12476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>