Create Content using Web Content Viewer

Use the Web Content Viewer to add IWWCM content and menus to a portal page as a portlet. I.e., your welcome page can have portlets such as the World clock and Personalization, and also a portlet containing content from an IWWCM site or site area.

For this example we will be using an IWWCM site called Employee News to display as a portlet in a Portal page.

  1. Go to...

    WebSphere Portal Administration | Portlet Management | Portlets

  2. In the Search window type Web, and click the Search button.

  3. Find the Web Content Viewer portlet and click the Copy Portlet icon (second one from left).

  4. Name both the new portlet application and portlet, Employee News

  5. Click OK.

  6. Create a second portlet application and portlet by clicking the Copy Portlet icon again next to the Web Content Viewer portlet.

  7. Name both the new portlet application and portlet, Employee News Detail. Then Click OK.

 

Create a New Page and Add Portlets

  1. Go to...

    My Portal | New Page

  2. Name the new page, Employee News. Click OK.

  3. In the Left frame, click the Add Portlets icon.

  4. In the Search window type Employee, and click the Search button.

  5. In the returned portlet list select Employee News

  6. In the Right frame, click the Add Portlets icon.

  7. In the Search window type Employee, and click the Search button.

  8. Select Employee News Detail.

  9. Click Done

 

Configure the New Portlets

  1. In the left frame click the Configuration icon (looks like a wrench).

  2. In the Content section, select Library Component.

  3. Click on the Edit icon in the Library Component section.

  4. Select Menu Component in the left frame.

  5. Select Newslist, click OK. You may have to scroll to the last page.

    Note that you do not have to use a Library component, such as a menu, to broadcast links from. You can use a content component, such as a site area. Note that anonymous users might have trouble using a Menu component. Instead, broadcast links from a Content component.

  6. Click on the Edit icon in the Default Context section.

  7. Click on the plus (+) icon next to NewsSite.

  8. Select NewsArea.

  9. Select DeptNews in the right frame. Click OK.

  10. In the Links section, select This page under Broadcast To.

  11. Click OK.

  12. In the right frame click the Configuration icon (remember what it looks like?).

  13. In the Content section verify Content has been selected.

  14. Click the Edit icon in the Content section.

  15. Click on the plus (+) icon next to NewsSite.

  16. Select NewsArea.

  17. Select DeptNews in the right frame.

  18. Click OK.

  19. Click on the Clear button under Alternate Presentation Template.

  20. If it isnt set already, make sure the Broadcast Links To: is set to None.

  21. In the Links section, select the Other portlets and this option under Receive Links.

  22. The last step is to expand the drop down box in the Select a target portal page area, find EmployeeNews, select it and Click OK.

 

View the Content in a Portal Page

  1. Click on the My Portal icon.

  2. Click on the page EmployeeNews.

  3. You should now see the content you created on a portal page.

 

Broadcast links from a Content component

Using Menu components from a page used by anonymous users is problematic. Rather than using a Menu library component within a Web Content Viewer portlet for broadcasting links to other portlets, you can use a Content component that accesses a Menu component.

Here is an example of how to setup up a Content component menu for use by anonymous users. In this case it points back to a menu component called SafetyMenu:

  1. Create an Authoring template: SimpleComponent

  2. Create a Presentation template: SimpleComponent

    Use the following code to reference the menu:

    <AptrixCmpnt context="current" 
                 end="&lt;/h3&gt;" 
                 key="DisplayTitle" 
                 start="&lt;h3&gt;" 
                 type="content"/>
    <AptrixCmpnt context="current" 
                 key="ComponentReference" 
                 type="content"/>
    

  3. Edit "YourSiteArea" to have a mapping for the SimpleComponent Authoring and Presentation templates.

  4. Create a Content item, SafetyMenu, that references a Menu component.

  5. Set your Web Content Viewer portlet accessed by anonymous users to point to the SafetyMenu content item, rather than to a menu component.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.