Display Connections Files in IBM WebSphere Portal using WCM Personalization Component
We will now see how to display Connections files hosted in a remote Connections server using the Personalization component of WCM Authoring Template in IBM WebSphere Portal.
1. Log in to IBM WebSphere Portal as an Administrator.
2. Click on Applications → Web Content Management
3. Click New → Component
. Create a Personalization component with name as MalarPZN
and Display title as Connections Federated Documents
4. Under Personalization Element, click New
to create a new Rule.
5. In the New Rule screen, modify the action rules. Click on Web Content
link and choose Federated Documents
6. After selecting Federated Documents, click on Feed URL value
. Choose Select Document Folder
. It displays a window where we should be able to specify the CMIS URL and the credentials to connect to remote Connections server as shown in the below figure. If you have logged in with Connections user, choose the Authentication method as Use current user
. Here, we have logged in to Portal as Administrator, so choose Use Credential Vault
to select the connections_slot
Credential Vault and Click Next
7. In the figure below, we can find that the files and folders of the logged in Connections user firstname.lastname@example.org
is displayed. Choose MalarFiles
folder and Click Finish
8. Now, we can find that Feed URL is referring to Connections folder in the Personalization Rule.
Till now, we have configured to select the federated folder from Connections. Next Step is to render the documents from the selected folder MalarFiles
in an appropriate format. We will see how to display the files from the folder in a tabular format. In the List Presentation Markup of Personalization component, modify the Header, Footer, Menu search result elements as below.
<head>Federated Documents from Connections</head>
Result Design :
<b>[AttributeResource attributeName="title" separator=","]</b>
<b>[AttributeResource attributeName="authors" separator=","]</b>
<a href="[AttributeResource attributeName="contentLink" separator=","]">Download</a>
<b>[AttributeResource attributeName="contentType" separator=","]</b>
<td><b>[AttributeResource attributeName="updated" separator=","]</b>
9. Click Save and Close
to save the Personalization changes.
10. Edit the Presentation Markup in the Presentation Template MyFilesPT
as below to present this Personalization component. Save the changes.
the content in FilesSiteArea
. We can find that the Personalization component with all the files in the MalarFiles
folder is displayed in a tabular format as shown below.
12. We can also add this SiteArea FilesSiteArea
to a Web Content Viewer Portlet
in a New Page
and view the results. In Portal Administration portlet → Portal User Interface → Manage Pages. Create a Page CMISFiles
Page. Click Edit Page layout
page and add Web Content Viewer portlet. In the added portlet, select Edit Shared Settings
and add FilesSiteArea
to the Content. Click Apply
. Now the CMISFiles Page is configured and added under Home
13. Click the CMISFiles
tab under Home
Page. We can find that the IBM Connections Files from MalarFiles
folder are displayed. Click on the Download
link, it may ask you to enter the connections user and password for the first time. Then, you can either open or save the document.
This section showed how to render Connections Files in a WebSphere Portal Page using the Personalization and Rich Text Element of WCM components.
This article is one of several which describes how to use WCM to render social content:
5.4 Using WCM to render social content