This Question is Answered

1 "helpful" answer available (2 pts)
4 Replies Last post: Nov 4, 2007 12:35 PM by Shannon Krebs  
Click to view Shannon Krebs's profile Novice 15 posts since
Aug 23, 2007

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?

Click to view Steve Traut's profile Expert 79 posts since
Jun 14, 2007
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

Click to view Steve Traut's profile Expert 79 posts since
Jun 14, 2007
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 ...