Site Creation Example
This example describes the steps required to render a simple Web Page by creating and linking various Web Content Management Items. It is important to follow the steps in the order they are written. To create and preview a simple Web Page create the following items:
You will also need to build the following links between items. There will need to be:
- A Site
- A Site Area
- A Presentation Template
- an Authoring Template
- A Content item
- Components
- A link between an Authoring Template and Presentation Template set in each Site or Site Area.
- A Web Content Management Tag for each Component to be displayed within a Presentation Template.
- Placeholders within Menus and Navigators to display search results.
Refer to the relevant sections in the Site Creation Guide for details on creating these items.
Create a Simple Workflow
Before creating any other item, make sure you have a simple Workflow created to use with items that require Workflows.
- Create a Workflow Stage called TestStage with an Action of Publish selected in the "Execute on Entering Stage" parameter.
- Create a Workflow called TestWorkflow with TestStage selected as the only Workflow Stage.
Create a Site and Site Area
- Create a Site called TestSite and a Site Area called TestSiteArea
Create a Presentation Template
- Create a Presentation Template called TestPresentationTemplate
- Create a simple HTML Table in the Presentation Template by adding the following code into the Presentation Template section.
<html> <head></head> <body TEXT="Black" BGCOLOR="White" BACKGROUND="" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0"> <table border="1"> <tr> <td></td> <td></td> <td></td> </tr> </table> </body> </html>- Save the Presentation Template
Create an Authoring Template
- Create an Authoring Template called TestAuthoringTemplate
- From within the TestAuthoringTemplate form, open the Component Manager by clicking on the Component Manager button
- Add a Text Component called Body to the Authoring Templat.
- Save and Close the Authoring Template.
Create some Content
- Create a new Content item called TestContent
- Select TestAuthoringTemplate and TestSiteArea when creating the new Content.
- Go to the Contents section and enter some text in the Body Component.
- Go to the Workflow section and select the Test Workflow
- Save and Close TestContent.
Map Templates and Link Content
- Go back to the Site Framework view and open TestSiteArea
- Edit the Template Map and link TestPresentationTemplate and TestAuthoringTemplate
- Set TestContent as the default Content for the Site Area.
Reference the Body Component in your Presentation Template
- Go back to the Presentation Template view and open Testpresentationtemplate
- Enter the following Web Content Management Tag into one of the Table Cells of the Presentation Template.
<AptrixCmpnt type="Content" context="current" key="Body"/>Using "current" as the context means that the content of this Web Content Management Tag will change depending on which Content item is currently being referenced.
Preview the Web Page
- Go back to the Content Library view and preview TestContent
- The text you typed in the Body Component should appear on the rendered Web Page.
Add a Navigator
- Create a new Navigator Component in the Component Library called TestNav with the following parameters:
- Start Type = Current Content
- Ancestor Level = All
- Add a placeholder in Component Design 1 to display links in the Navigator
<placeholder tag="Namelink"/><br>- Save and Close TestNav.
Reference the Navigator in your Presentation Template
- Go back to the Presentation Template view and open Testpresentationtemplate
- Enter the following Web Content Management Tag into one of the Table Cells of the Presentation Template.
<AptrixLibCmpnt name="TestNav" />As we are referencing the Navigator directly from the Component Library, the Navigator will always display when this Presentation Template is used. The content of the Navigator will change depending on which Site Area and Content items are currently being referenced.
Preview the Web Page
- Go back to the Content Library view and preview TestContent
- A Navigator should appear on the rendered Web Page.
Add an Image Component
- Create a new Image Component in the Component Library called TestImage
Reference the Image Component in your Presentation Template
- Go back to the Presentation Template view and open Testpresentationtemplate
- Enter the following Web Content Management Tag into one of the Table Cells of the Presentation Template.
<AptrixLibCmpnt name="TestImage" />As we are referencing the Image directly from the Component Library, the Image will always display when this Presentation Template is used. The content of the Navigator will change depending on which Site Area and Content items are currently being referenced.
Preview the Web Page
- Go back to the Content Library view and preview TestContent
- An Image should appear on the rendered Web Page.
Parent topic: Web Content Management Examples.
IBM Workplace Web Content Management - V5.1.0.1 -
Workplace Web Content Management 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.