An Introduction to WebSphere Portal content publishing channels

Similar documents
WebSphere Portal content publishing and IBM Content Manager Workflow

An Introduction to Web Content Publisher Authoring Templates

Advanced Authoring Templates for WebSphere Portal content publishing

Using the WPCP Portlets By Gregory Melahn Robert Will March 2003

IBM ThinkPad USB Portable Diskette Drive. User s Guide

Setting Up Swagger UI for a Production Environment

Setting Up Swagger UI on WebSphere

IBM ThinkPad 770 Setup Guide

IBM Software. Maximo Asset Management Version 7 Releases. Enabling Enterprise Mode for Internet Explorer. Maximo Report Designer/Architect.

Lotus Forms Designer 3. What s New

IBM. Cúram JMX Report Generator Guide

Version 1.2 Tivoli Integrated Portal 2.2. Tivoli Integrated Portal Customization guide

Tivoli Access Manager for Enterprise Single Sign-On

IBM Worklight V5.0.6 Getting Started

Tivoli Access Manager for Enterprise Single Sign-On

Integrated use of IBM WebSphere Adapter for Siebel and SAP with WPS Relationship Service. Quick Start Scenarios

Release Notes. IBM Tivoli Identity Manager Rational ClearQuest Adapter for TDI 7.0. Version First Edition (January 15, 2011)

IBM WebSphere Sample Adapter for Enterprise Information System Simulator Deployment and Testing on WPS 7.0. Quick Start Scenarios

***OPEN IMODULES IN CHROME*** 1) Choose Home:

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Version 9 Release 0. IBM i2 Analyst's Notebook Premium Configuration IBM

Tivoli Access Manager for Enterprise Single Sign-On

Release Notes. IBM Tivoli Identity Manager Oracle PeopleTools Adapter. Version First Edition (May 29, 2009)

Migrating Classifications with Migration Manager

IBM Kenexa LCMS Premier on Cloud. Release Notes. Version 9.3

IBM i2 ibridge 8 for Oracle

IBM Cognos Dynamic Query Analyzer Version Installation and Configuration Guide IBM

Build integration overview: Rational Team Concert and IBM UrbanCode Deploy

SliceAndDice Online Manual

Technical Guide Login Page Customization

First Edition (September 1990)

IBM Rational Synergy DCM-GUI

Tables *Note: Nothing in Volcano!*

Tivoli Access Manager for Enterprise Single Sign-On

Version 9 Release 0. IBM i2 Analyst's Notebook Configuration IBM

IBM Tivoli Composite Application Manager Solution: Using ITCAM to Monitor In-House website Solutions

Rational Focal Point Technical Overview 2(15)

Setting up Single Sign On Between xmii and Enterprise Portal

Tivoli Access Manager for Enterprise Single Sign-On

ServeRAID-MR10i SAS/SATA Controller IBM System x at-a-glance guide

Version 4 Release 1. IBM i2 Enterprise Insight Analysis Data Model White Paper IBM

Release Notes. IBM Security Identity Manager GroupWise Adapter. Version First Edition (September 13, 2013)

Using Netcool/Impact and IBM Tivoli Monitoring to build a custom selfservice

IBM Spectrum LSF Process Manager Version 10 Release 1. Release Notes IBM GI

PlantVisorPRO Plant supervision

IBM OpenPages GRC Platform Version Interim Fix 5. Interim Fix ReadMe

IBM Security QRadar Version Customizing the Right-Click Menu Technical Note

Implementing a chat button on TECHNICAL PAPER

IBM Endpoint Manager for OS Deployment Linux OS provisioning using a Server Automation Plan

White Paper: Configuring SSL Communication between IBM HTTP Server and the Tivoli Common Agent

Release Notes. IBM Tivoli Identity Manager GroupWise Adapter. Version First Edition (September 13, 2013)

IBM OpenPages GRC Platform Version 7.0 FP2. Enhancements

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on Java SE

Speaker Notes. IBM Software Group Rational software. Exporting records from ClearQuest

IBM Content Analytics with Enterprise Search Version 3.0. Expanding queries and influencing how documents are ranked in the results

Patch Management for Solaris

Release Notes. IBM Tivoli Identity Manager Universal Provisioning Adapter. Version First Edition (June 14, 2010)

IBM TRIRIGA Application Platform Version 3 Release 5.3. User Experience User Guide IBM

IBM Integration Designer Version 8 Release 5. Hello World for WebSphere DataPower Appliance IBM

Version 1 Release 1 November IBM Social Marketing Solution Pack User's Guide IBM

Tivoli Access Manager for Enterprise Single Sign-On

IBM z/os Management Facility V2R1 Solution Guide IBM Redbooks Solution Guide

IBM Operational Decision Manager. Version Sample deployment for Operational Decision Manager for z/os artifact migration

Release Notes. IBM Tivoli Identity Manager I5/OS Adapter. Version First Edition (January 9, 2012)

Using application properties in IBM Cúram Social Program Management JUnit tests

HTML Tags <A></A> <A HREF=" CNN </A> HREF

IBM Maximo Calibration Version 7 Release 5. Installation Guide

IBM Security SiteProtector System Configuring Firewalls for SiteProtector Traffic

Secure Held Print Jobs. Administrator's Guide

Tivoli Access Manager for Enterprise Single Sign-On

Enterprise Caching in a Mobile Environment IBM Redbooks Solution Guide

IBM. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns. Version 2 Release 1 BA

IBM Control Desk 7.5.3

IBM ThinkPad 380XD/385XD Setup Guide

TIBCO Spotfire Cobranding

IBM VisualAge for Java,Version3.5. External Version Control

IBM Tivoli Identity Manager Authentication Manager (ACE) Adapter for Solaris

Installation and User s Guide

IBM SmartCloud for Social Business. Sametime Chat and Meetings mobile User's Guide

NCR Customer Connect Working with Templates: ADVANCED

Printing Systems Division. Infoprint Manager for Windows NLV Release Notes

Version 2 Release 1. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns IBM BA

IBM Security QRadar Version Forwarding Logs Using Tail2Syslog Technical Note

IBM Network Station Runtime Environment for RS/6000 Network Station Browser Guide

2004 WebGUI Users Conference

IBM ThinkPad 600 Setup Guide

IBM emessage Version 8.x and higher. Account Startup Overview

iscsi Configuration Manager Version 2.0

HTML Overview. With an emphasis on XHTML

Implementing IBM Easy Tier with IBM Real-time Compression IBM Redbooks Solution Guide

Information and Communication Technology: TECHNOLOGY (EXTENDED MEANING) presented by: Rhiza S. Sadjad

IBM Decision Server Insights. Installation Guide. Version 8 Release 6

HYPERTEXT MARKUP LANGUAGE ( HTML )

IBM UrbanCode Cloud Services Security Version 3.0 Revised 12/16/2016. IBM UrbanCode Cloud Services Security

IBM. IBM i2 Analyze Windows Upgrade Guide. Version 4 Release 1 SC

Best practices. Starting and stopping IBM Platform Symphony Developer Edition on a two-host Microsoft Windows cluster. IBM Platform Symphony

XCLI Utility User Manual

TIBCO Spotfire Cobranding

ServeRAID-BR10il SAS/SATA Controller v2 for IBM System x IBM System x at-a-glance guide

Netcool/Impact Version Release Notes GI

Transcription:

An Introduction to WebSphere Portal content publishing channels By Gregory Melahn Software Engineer, IBM Corp. May 2003 Abstract WebSphere Portal content publishing (WPCP) allows you to import news stories and other syndicated content in the form of channels. This paper provides an overview of this support and shows examples of how you can generate and preview news lists from channels. What are channels? Syndicated content is typically described using XML and organized into collections called channels. For example, one can find a channel about IBM and another channel about Celebrity News. A channel is described in a single file. One popular XML format for describing syndicated content is called RSS.

Here is an example of a channel. I There are different versions of RSS. WPCP supports the 0.91 and 0.92 versions. The version of a channel can be found in the <rss version> tag.

Where can I find channels? Syndicated content is made available to Web sites by content aggregators. Aggregators take content from a variety of sources and make it available in formats like RSS. One easy way to find sources of channels is to search the Web for the term RSS. You may be surprised what you find. For example, you will find Web log providers sometimes externalize their blogs as channels. Some providers I have found include. Meerkat Moreover My.UserLand Network 54 NewsIsFree Syndic8 Xmltree 10.am Once you find a channel provider, check to make sure you understand and can comply with the service terms before using their content on your web site. Then, note the URL s of the channels you are interested in. For example, moreover.com provides a URL for IBM news, http://p.moreover.com/cgi-local/page?c=ibm%20news&o=rss

Importing channels into WPCP The first step of importing a channel is to define the channel in WPCP. This is done on the WPCP Admin page. Click the Channels node on the Administration page.

Then click the Add channel button.

If you want to preview the contents of the channel, click the Preview button and you will see the links provided by this channel.

If you like what you see, click the Create button and the channel will be added to WPCP s channel list.

Since the contents of the channel change often, you may want to schedule automatic updates. To schedule automatic updates, click the clock icon, enter the desired frequency, and click the Save button.

When you add the channel, the items in the channel are added to the WPCP content list. To see these items, go back to the Content tab and click on the IBMNews folder.. What can I do with channels? Think of channels as raw material for your content. There are a number of things you can do with this raw material to turn it into content that is usable on your Web site. First, it is useful to write a preview template that allows you to view the news story to see if is an appropriate item for your site. Here is an example of such a simple preview template. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <title>channel Item</title> <jsp:usebean id="getresource" class="com.ibm.wcm.getgenericresource" type="com.ibm.wcm.getgenericresource"><% getresource.getresource(request); %></jsp:usebean> <jsp:usebean id="resobj" scope="request" type="com.ibm.wcm.resources.rsschannelitem"/> <body bgcolor="#cfcfcf"> <CENTER> <% { Object propvalue = null;

propvalue = resobj.getchanneltitle(); if( propvalue==null ) propvalue = new String(" "); %> <H1><I><U>Breaking News from <%= propvalue.tostring() %></I></U></H1> <% } %> <br> <% { Object propvalue = null; propvalue = resobj.gettitle(); if( propvalue==null ) propvalue = new String(" "); %> <H2><%= propvalue.tostring() %> <% } %> </H2> <% { Object propvalue = null; propvalue = resobj.getdescription(); if( propvalue==null ) propvalue = new String(" "); %> <P><%= propvalue.tostring() %> <% } %> <% { Object propvalue = null; propvalue = resobj.getlink(); if( propvalue==null ) propvalue = new String(" "); %> <br> <A HREF="<%= propvalue.tostring() %>"><IMG SRC="/wps/WPCPfr/news.gif"></A> <% } %> </CENTER> </body> </html>

Then associate your template with the WPCP folder in which you stored the contents of the channel, as in this example.

Now you can preview the contents of the channel by just clicking on the link, then clicking on the News button.

Clicking on the News button shows the actual story.

If the contents of this folder are news stories that you want to appear on your site, you can create a WPCP generation template that writes the link to an html page. Here is an example of such a template. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>News Summary</TITLE> <META http-equiv="content-type" content="text/html; charset=iso-8859-1"> <META http-equiv="content-style-type" content="text/css"> </HEAD> <BODY> <% // The resource can be retrieved using this generic class %> <jsp:usebean class="com.ibm.wcm.getgenericresourcelist" id="getresourcelist" type="com.ibm.wcm.getgenericresourcelist"><% getresourcelist.setrequest(request); %></jsp:usebean> <% java.util.enumeration enumobjs = getresourcelist.getresourcelist(); String path=""; if( enumobjs==null ) { out.println("<br>getresourcelist.getresourcelist() returned null object"); return; } java.util.enumeration enumobjs2 = getresourcelist.getresourcelist(); if( enumobjs2==null ) { out.println("<br>getresourcelist.getresourcelist() returned null object"); return; } else { com.ibm.wcm.resources.rsschannelitem anewsstory = (com.ibm.wcm.resources.rsschannelitem)enumobjs2.nextelement(); path = (String)aNewsStory.get("PATH"); if (path.equals("/")) { path="root"; } path = path.replace('/',' '); } %> <H1>The Latest News</H1> <H2>Topic:<%=path%></H2> <TABLE width="100%" align="middle" cellpadding="0" cellspacing="0" border="0"> <TBODY> <!--Spacer row--> <TR> <TD colspan="3" height="8" width="100%"></td> </TR>

<!--Nav bar: bottom section--> <TD width="50%" align="center"> <TABLE width="400" align="center" cellpadding="0" cellspacing="0" > <!--How to show a news story list--> <TR> <TD align="center" valign="top"> <% try { %> <TABLE border="0" cellpadding="2" cellspacing="0" width="500"> <TBODY> <TR> <TD align="left" valign="top"><font color="3366cc"><b>news Story</B></FONT></TD> <TD align="left" valign="top"> </TD> </TR> <TR> <TD align="left" colspan="4" height="1" valign="middle" width="400"><img alt="blue line" border="0" height="1" src="../../../theme/bluepixel.gif" width="396"><br></td> </TR> <% while( enumobjs.hasmoreelements() ) { com.ibm.wcm.resources.rsschannelitem news = (com.ibm.wcm.resources.rsschannelitem)enumobjs.nextelement(); %> <TR> <TD align="left" valign="top"><u><a href="<%= news.getlink() %>"><%= news.gettitle() %></U> </A></TD> <TD align="left" valign="top"> </TD> </TR> <% } %> <TR> <TD align="left" colspan="4" height="1" valign="middle" width="400"><img alt="blue line" border="0" height="1" src="../../../theme/bluepixel.gif" width="396"><br></td> </TR> </TBODY> </TABLE><% } catch( Exception exc ) { out.println( exc ); exc.printstacktrace(); } %> </TD> </TR> </TABLE>

</TD> <TD width="25%"> </TD> </TR> </TBODY> </TABLE> </BODY> </HTML>

Associate this template as a summary generation template, as shown here.

Then click the Generate button to generate an html page.

Notice the page has now been generated in WPCP. Click on the page to see the contents as they will appear on your web site. Note that the format of this page is under your control if you want to change it, just modify the summary template and regenerate the page.

Trademarks Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. ActiveX, Microsoft, Windows, Windows NT(R), and the Windows logo are trademarks or registered trademarks of Microsoft Corporation in the United States, or other countries, or both. UNIX is a registered trademark of The Open Group. Other company, product, and service names, which may be denoted by a double asterisk (**), may be trademarks or service marks of others. Notices The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION AND ANY ASSOCIATED CODE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Copyright International Business Machines Corporation 2003. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.