How to render a list of colleagues in no time
i just wanted to share how easy it is starting from the IBM Social Rendering Templates for Digital Data Connector to come up with your own lists of social objects. Investigating the DDC profiles for Social Rendering, you can investigate the various profiles that are already available for reuse.
I would like to show the ease of realizing a list of colleagues for a user that is currently logged in to your portal.
This requires that you have the aforementioned IBM Social Rendering Templates installed and configured successfully.
To realize the list of colleagues requires only the existence of three items:
A URL that points to the feed of the colleagues for the user that is logged in
A List appearance that defines how the list of colleagues will look like
A Content Item that is bringing together three elements:
first the source of data mentioned in 1.
the ddc profile used to extract data from what is served by the data source
the design for defining the visual appearance mentioned in 2.
Create a Data Source Serving the Colleagues Feed
The data source that would serve the list of colleagues for the user that is currently logged in is very similar to the data source for the pending network invitations of the current user. Note that an additional parameter called 'outputType' is provided which means that the contents will be served as profile entries. The final URL would look something like this:
Create a List Appearance Defining the Visual Appearance of Your List of Colleagues
As you want to control the look and feel of your list of colleagues, a new appearance will be created. You could for instance start of from the list of network invitations appearance component and alter it respectively. This is basically what i have done:
I did change the result design however to a newly created HTML Component representing a stripped down version of the user profile entry:
Create a Content Item bringing things together
Now that we have all at hand, the data source as well as the design component for the list of colleagues, the last step to perform is to create a content item that is making use of all this. Again you could copy one of the existing content items and alter the fields to represent what we have created here.
In short the following content item comprises:
the newly created design component that controls the visual appearance of the list of colleagues
the data source that is providing the url to the colleagues feed
the list rendering profile 'ibm.portal.sr.profiles' . This profile provides access to all details of a given user which goes beyond what is provided by the profile for network invitations for instance.
You can use this profile due to the fact that in the data source that provides the URL to the connections feed, the outputType=profile parameter is explicitly set.
Enjoy Your List of Colleagues
So this is how the list of colleagues looks like after roughly half an hour.