Is there some documentation somewhere that list alll of the objects that are availble from within a freemarker template (when editing one of the default templates already provided)?
I am specifically interested in this case how I can get a hold of the groupManager from within a template to try and work out which groups the current user is a part of?
Hi Shannon,
There's no documentation that I know of that lists the objects available to FreeMarker. I agree that that would be good to have. We do have a list of utility classes in another incarnation of the plugin documentation that somehow didn't get migrated to Jivespace. I'll move that content in soon.
Steve
Thanks Steve,
There doesn't appear to be anything in there related to getting user groups etc, so I'm guessing I'm out of luck unless I create a new action. ( Although I can't seem to find some of these classes in the javadocse.g SkinUtils, DocumentPermHelper etc so I may be missing something?)
Have you tried using JiveContext? I haven't confirmed that you have access to this from a plugin, but I think you should be able to use something like this:
<#assign groups = jiveContext.getGroupManager().getUserGroups(user)/>, where "user" is a User object.
Steve
Thanks Steve, thats exactly what I'm looking for.