OpenText Website Management (reddot) social communities howto

by Yuval Ararat on 22/06/2011

My first howto in the OpenText world, after almost 4 years in the asylum. nice.
Social communities on the Website Management offers a great assortment of features that is enabling you to support User Generated content.
But the standard feature dont show you how you can integrate a comment section under your articles.
That is part due to the way this implementation came to be.
The core of this implementation is the Vignette Community Application, a stand alone interface to forums, blogs, wikis, ideas and media spaces. this core assumes the full functionality in a page and thus is not interfaced in a way that you easily figure out where are the components. Its sole brother (by core at least) is the Vignette Community Services which took the integration, rather then standalone, from his brother and is a set of components easily integrated into your environment.
Because both have the same core, the Social communities will support every call you can think off. that is the great news.
So how do you go about and create the comments region under the article of yours.
Lets start with the piping.
You will need to create HTTP connectors to the following XAPI calls:

  1. Create New Object
  2. Delete Objects

Before i will start with the code lets look at the way we will implement the creation of comments.
Assuming we want comments on pages in the CMS that have an ID, without it you cannot differentiate the pages, we will need to create a remote object to represent the page.
The remote object is capable of uniquely identifying the comments, the Remote object is the ID of the Comments parent in our case though it can be responsible to more.
We will start with creating a new HTTP connector for the creation of the remote object.
Create a new HTTP connector group for your site.
Click on Prepared Operations.
Then create a new operation using the star (Add a new data group) at the top left of the screen.
Give the group a name – “remoteobject.create”
add the URL postix – “CreateNewObject”
Method should be “Post”

Go to the Request Parameters and add the following.

  • extObjType
  • extObjRealm
  • extObjSystemType
  • extObjSystemID
  • extObjContext
  • extObjID
  • name
  • type

Do the same to the delete operation
Give the group a name – “remoteobject.delete”
add the URL postix – “DeleteObjects”
Method should be “Post”
In this case you only need to point the objectID (x.x.x) for it to be deleted.

Now we have the ability to create the basic item that is capable of holding comments, ratings etc.
This method will enable you to later expand with creation of comments and ratings on the remote object.
The best place to figure out the required parameters is in the developer guide for the Vignette Community Application and the XML API Documentation

Digiprove sealCopyright secured by Digiprove © 2011 Yuval Ararat

{ 2 comments… read them below or add one }

Neveah July 7, 2011 at 11:07 am

Real brain power on dispaly. Thanks for that answer!

Viney July 9, 2011 at 2:11 pm

Wow! Great tihnknig! JK

Leave a Comment

Previous post:

Next post: