Implementing the deprecated UGC feature
The deprecated User Generated Content (UGC) feature allows visitors of your website to submit ratings and comments, and to enable your moderators to moderate the submitted comments.
- UGC validators
Use content validators to validate submitted comments and ratings. You can switch on the default validators in the User Generated Content configuration. You can also create your own custom validation behavior and add it to the User Generated Content configuration. - UGC commands
This section contains all the commands used by User Generated Content. The commands are listed as: TCDL tags, JSP tag library tags, and ASP.NET Server Controls. The commands you use depends on the Web site technology you use. - Comment metadata
You can allow your visitors to specify, in addition to a comment they submit, any amount of additional information in the form of comment metadata, so long as each piece of metadata is in the form of a string (which can be XML, JSON or plain text). When retrieving the comments, you can then retrieve the metadata along with each comment. - Flat comments and threaded comments
Use the UGC API to specify whether a webpage should have a flat commenting area, in which all comments are on the same hierarchy level, or a threaded commenting area, where commenters can respond to each other's comments. - UGC comment filtering and pagination options
To paginate or filter a list of flat or threaded comments, use theSimpleCommentsFilterclass in the Java Content Interaction Libraries (CIL) for UGC. - Commenting example JSP webpage
The following sample JSP code is a simple example of a webpage featuring the display of, and forms for submitting, comments. Also included is the CSS stylesheet that defines its styles. - Content Delivery web service error handling
If something goes wrong with your Content Delivery web service call, an exception is raised. The web service logs this exception and adds it to your webpage's page context variable. - Content Delivery web service error handling JSP example
JSP example that catches any exception raised by the web service and displays it on the webpage. - Content Delivery web service error handling ASP.NET example
ASP.NET example that catches any exception raised by the web service and displays it on the webpage. - UGC configuration reference
cd_ugc_conf.xml specifies scoring threshold and a whitelist for comments. The configuration reference documentation describes the elements and attributes contained in the configuration file.