Return to Jive Software

This Question is Answered (go to answer)

1 "helpful" answer available (2 pts)
2,490 Views 4 Replies Last post: Nov 4, 2007 12:35 PM by Shannon Krebs RSS
Shannon Krebs Novice 15 posts since
Aug 23, 2007
Currently Being Moderated

Nov 2, 2007 3:02 PM

Objects available within FTL templates

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?

Steve Traut Jive Employee 83 posts since
Jun 14, 2007
Currently Being Moderated
Nov 2, 2007 4:14 PM in response to: Shannon Krebs
Re: Objects available within FTL templates

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

Steve Traut Jive Employee 83 posts since
Jun 14, 2007
Currently Being Moderated
Nov 2, 2007 5:16 PM in response to: Shannon Krebs
Re: Objects available within FTL templates

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

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.