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.
- Go to...
WebSphere Portal Administration | Portlet Management | Portlets- In the Search window type Web, and click the Search button.
- Find the Web Content Viewer portlet and click the Copy Portlet icon (second one from left).
- Name both the new portlet application and portlet, Employee News
- Click OK.
- Create a second portlet application and portlet by clicking the Copy Portlet icon again next to the Web Content Viewer portlet.
- Name both the new portlet application and portlet, Employee News Detail. Then Click OK.
Create a New Page and Add Portlets
- Go to...
My Portal | New Page- Name the new page, Employee News. Click OK.
- In the Left frame, click the Add Portlets icon.
- In the Search window type Employee, and click the Search button.
- In the returned portlet list select Employee News
- In the Right frame, click the Add Portlets icon.
- In the Search window type Employee, and click the Search button.
- Select Employee News Detail.
- Click Done
Configure the New Portlets
- In the left frame click the Configuration icon (looks like a wrench).
- In the Content section, select Library Component.
- Click on the Edit icon in the Library Component section.
- Select Menu Component in the left frame.
- 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.
- Click on the Edit icon in the Default Context section.
- Click on the plus (+) icon next to NewsSite.
- Select NewsArea.
- Select DeptNews in the right frame. Click OK.
- In the Links section, select This page under Broadcast To.
- Click OK.
- In the right frame click the Configuration icon (remember what it looks like?).
- In the Content section verify Content has been selected.
- Click the Edit icon in the Content section.
- Click on the plus (+) icon next to NewsSite.
- Select NewsArea.
- Select DeptNews in the right frame.
- Click OK.
- Click on the Clear button under Alternate Presentation Template.
- If it isnt set already, make sure the Broadcast Links To: is set to None.
- In the Links section, select the Other portlets and this option under Receive Links.
- 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
- Click on the My Portal icon.
- Click on the page EmployeeNews.
- 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:
- Create an Authoring template: SimpleComponent
- Create a Presentation template: SimpleComponent
Use the following code to reference the menu:
<AptrixCmpnt context="current" end="</h3>" key="DisplayTitle" start="<h3>" type="content"/> <AptrixCmpnt context="current" key="ComponentReference" type="content"/>- Edit "YourSiteArea" to have a mapping for the SimpleComponent Authoring and Presentation templates.
- Create a Content item, SafetyMenu, that references a Menu component.
- 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.