Did you know that you can build your widget to display content that’s responsive to a user’s group membership?? By programmatically determining if a user is part of a specific group, we can render content in the widget tailored to that group.
First things first
For us to build a widget that displays group specific content, we must first create or repurpose a group. Remember to add some users to the group!
Let’s start coding
The first thing that we need to do is create an object with the groups you’d like to target content for. In this example we’ll add one property to our groups object - ITGroup. We’ll also populate this property with the group’s ID. While we’re doing this statically in our example, a great improvement would…
Who Are You? – Authenticating To Igloo
Making any API call against IGLOO requires you to authenticate. Authentication creates a session key which holds the context of the user who authenticated. If you create a blog while authenticated as Joe, the creation event will be attributed to Joe.
Authentication requires that you have:
- an appId and an appPassword
- a digital workplace and user credentials
These are provided to you when you register as a developer.
Configuring Your Widget
Dynamically configuring your widget’s parameters at run time
Hard coding configuration parameters is never a good idea, and you don’t have to when you’re building a widget. We are going to build a widget that allows us to:
1) Use the configuration options array
2) Add values through the options tab of your widget
3) Display these fields in your widget
Igloo’s Integration Widget framework allows you to create and pass parameters to the widget when it’s configured on a…
About this channel
- 1,543 views
- 10 articles
- 4 followers