<<

. 37
( 87 .)



>>


Document and Content Management within WebSphere Portal 209


4. Click Properties tab and then assign the rights, as shown in Figure 11-5.
5. Click Security tab and assign read access to AptrixUIAccessGroup
and delete access to both Administrators and Site Administrators.
6. Click Close, Save, and Refresh.

Repeat for the Review and Publish stages. When de¬ning the Publish
stage, you must inform ILWWCM that it is the Publish stage by clicking
on the Properties tab, clicking on Execute on Entering Stage, and selecting
Publish (see Figure 11-6).
Next, you need to tell ILWWCM the order of the stages in the work¬‚ow.
Under Security and Work¬‚ow, do the following:

1. Click Work¬‚ows, Stages, and Actions, and then click New.
2. Select Work¬‚ow from the drop-down box.
3. Name the Work¬‚ow Work¬‚ow1 .
4. Click the Properties tab and then click Work¬‚ow stages and move
them all to the right-hand window as seen in Figure 11-7. You de¬ne
the order with the arrows on the right.




Figure 11-6 De¬ning the Publish stage.
P1: FCH/SPH P2: FCH/SPH QC: FCH/SPH T1: FCH
WY009-11 WY009-BenNatan-v1.cls May 11, 2004 14:48




210 Chapter 11




Figure 11-7 De¬ning Work¬‚ow order.


5. Click Security tab and assign read access to AptrixUIAccessGroup
and delete access to both Administrators and Site Administrators.
6. Click Close, Save, and Refresh.


Creating Your Content Template
First, you need to create a content template that will be used by the content
creators when they create new content. You can have as many as you want,
each tailored for different types of content. For the particular Web site in
this example, show the book title, a picture of the cover, some information
on the book, and the book URL.
Do the following to create a content template WebSphere Books:
1. Expand Design and Development and Select Content Templates.
2. Click New and enter WebSphere Books as the name of content
template.
3. Click Content Template tab.
4. In the Name ¬eld enter a description that will tell the author what
information is needed such as [Enter Book Information].
P1: FCH/SPH P2: FCH/SPH QC: FCH/SPH T1: FCH
WY009-11 WY009-BenNatan-v1.cls May 11, 2004 14:48




Document and Content Management within WebSphere Portal 211


5. Next click the Work¬‚ow button and select the work¬‚ow process
associated with the template. For this particular work¬‚ow, it is
work¬‚ow1 .
6. Next click Component Manager and click Add. Enter BookTitle and
select the type as text. Then go back and add BookCover,
BookDescription, and BookLink as another component where picture
is an image component, BookDescription is a Rich Text component,
and BookLink is an HTML component.
7. Click Content Template and you will notice that ¬elds for all the
components have been added.
8. Click the Security tabs and give permissions to the appropriate
people. Obviously, Page Designers will need delete access, Content
Editors read access, and All Users will need live access.
At this point, you should be aware of the components that are used to
build the template. You saw that ILWWCM supports not only text, but
also various types of objects into a WCM object. Speci¬cally, the following
objects are supported:
Text.
Rich Text, which is Text with Web Content Management component
tags. A Rich Text editor is included.
HTML.
File Resource”a ¬le that is accessible from anywhere on the site or
from syndication.
Image ¬le.
Component-Reference”a reference to a library component.


Categorizing the Content
ILWWCM enables you to personalize content by de¬ning content into cat-
egories. In ILWWCM you de¬ne a category tree that will enable you to
display lists of content based on the category. For the example you have
been using, you will de¬ne a very simplistic category tree with the taxon-
omy being WebSphere and the categories being Portal, Application Server,
J2EE, and EJB. Do the following to create the category tree:
1. Expand Site Management, Click Category Management, and click
New.
2. Select Taxonomy from the drop-down box and click OK.
3. Under the ID tab, give it a name and description. Call it WebSphere.
P1: FCH/SPH P2: FCH/SPH QC: FCH/SPH T1: FCH
WY009-11 WY009-BenNatan-v1.cls May 11, 2004 14:48




212 Chapter 11


4. Under the Security tab, all security settings must be the same for the
categories and the taxonomy. Give Site Administrators delete access,
Page Designers and Content Editors read access, and All Users live
access.
5. Click Close, Save, and Refresh.

Now under WebSphere, create the categories:

1. Expand Site Management, Click Category Management, and click
New.
2. Select Categories from the drop-down box and click Next.
3. Highlight the Taxonomy with which the categories will be associated.
4. Under the ID tab, give it a name and description. Call it Portal.
5. Under the Security tab, all security settings must be the same for the
categories and the taxonomy. Give Site Administrators delete access,
Page Designers and Content Editors read access, and All Users live
access.
6. Click Close, Save, and Refresh.

Repeat for the categories Application Server, J2EE, and EJB.


Creating Navigators and Menus
The next step in designing your site is to provide some sort of structure
so that users can get around your site. ILWWCM provides navigators and
menus. Navigators enable users to travel between areas of your site by
showing the logical view of your site while menus are a list of related pages.
A Navigator component consists of a start area, a child depth, a parent level,
and a sibling value relative to the start area. ILWWCM is designed such that
if you change your site using ILWWCM, your navigators and menus will
re¬‚ect the changes. Navigators can also be used to create breadcrumbs or
site maps. Breadcrumb shows a user where a page ¬ts within his or her site
while site map shows you the framework of your site.
Menus are usually just a list of hyperlinks on a page that, when clicked,
will display the content. In ILWWCM, menus can search for content within
matching site area, content templates, categories, key words, or any combi-
nation of the latter. Searches can also be based on category pro¬les. For the
example in this chapter, you will create a menu that will list all the books
that reference WebSphere in their title or description.
To get a sense of how WCM implements menu, create a menu that lists
all the books on the site.
P1: FCH/SPH P2: FCH/SPH QC: FCH/SPH T1: FCH
WY009-11 WY009-BenNatan-v1.cls May 11, 2004 14:48




Document and Content Management within WebSphere Portal 213


Do the following to create a Menu component:
1. Under Design and Development, go to Component Library
2. From the dropdown box, select Menu Component and click OK.
3. Enter ID Name. In this case, input WebSphereList.
4. Click the Menu Component tab.
5. Click Matching Content Templates and add select WebSphere Books.
6. Select Publish Date for the Results Primary Key and Name for the
Results Secondary Sort Key.
You will then see a box for header, footer, and Component Design for Each
Matching Content. The header and footer are for (surprise!) de¬ning the
header and footer. In these boxes, you place HTML for rendering the menus.
The HTML consists of special ILWWCM tags used to display information
about components.
In the header box, add <h1>WebSphere Books</h1><br>. This will
provide a title to the menu page.
In Component Design for Each Matching Content, you enter your HTML
code to display information about the Navigator component. In this case,
enter:
<A HREF="<Placeholder tag="href"/>"><AptrixCmpnt context="autoFill"
key="BookTitle" type="content"/></A><br>

The placeholder tag can have multiple values. In this case, you instructed
it to insert the URL of the matching content detail using Book Title as the
link text.
Don™t forget to set security; otherwise, nobody will be able to use these
components. The Page Designer needs delete access, Content Editors need
read access, and All Users need live access.


Page Design
The Page Design component accepts content and library components and
enables them to be displayed in a formatted layout.
1. Under Design and Development, highlight Page Design and click
New.
2. Under ID, assign a name. In this case, give it the name WebSphere
Page design.
3. Click the Page Design tab and add the HTML code, as shown in
Figure 11-8. Basically, all you need is to add straight HTML code with
special ILWWCM that point to our content, site, or site area objects,
P1: FCH/SPH P2: FCH/SPH QC: FCH/SPH T1: FCH
WY009-11 WY009-BenNatan-v1.cls May 11, 2004 14:48




214 Chapter 11




Figure 11-8 Page design HTML code.


as illustrated in Figure 11-8. The <AprtrixCpmt> tag is pointing to
the components we de¬ned from our content template. You can also
click Import and bring in other saved HTML code. The contact
parameter refers to whether the object is in the current site or
whether it will be determined from the Name tag or the Menu,
Navigator, or Taxonomy component.
4. Under Security, the Page Designer needs delete access, Content
Editors need read access, and All Users need live access.


Building the Site
Now it™s time to set up your site and de¬ne the content. Like categories, IL-
WWCM enables you to de¬ne your site in a hierarchical manner by de¬ning
your site framework. The top node is your site, and the children are your
site areas. For the example in this chapter, the WebSphere site will be very
simple. It will consist of a WebSphere Area, your portlet. Do the following
to de¬ne the site:

1. Expand Site and Framework and click New.
2. Select Site from the drop-down box and click OK.
P1: FCH/SPH P2: FCH/SPH QC: FCH/SPH T1: FCH
WY009-11 WY009-BenNatan-v1.cls May 11, 2004 14:48




Document and Content Management within WebSphere Portal 215


3. Click ID tab and assign a name: WebSphereSite.
4. Select the Properties tab.
5. Click Content Template and highlight WebSphere Books. Click OK.
6. Choose Page Design and highlight WebSphere Page Design.
7. Under the Security tab, give Site Administrators delete access, Page
Designers and Content Editors read access, and All Users live access.
8. Click Save, Close, and Refresh.
9. Click New and select Site Area from the drop-down box. Click Next.
10. Highlight the site area or site framework that is the parent and choose
the link order, which speci¬es where the site area is below the parent.
11. Click the ID tab and assign a name. In this case, use the name
WebSphereArea.
12. Select the Properties tab.
13. Choose Content Template and highlight WebSphere Books. Click OK.
14. Click Page Design and highlight WebSphere Page Design.
15. Under the Security tab, give Site Administrators delete access, Page
Designers and Content Editors read access, and All Users live access.
16. Click Save, Close, and Refresh.


Adding Content
Up to this point, you have spent a signi¬cant amount of time de¬ning the
site, and the menus, security, work¬‚ow, and the content templates. Now,

<<

. 37
( 87 .)



>>