Professional Documents
Culture Documents
cover
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
DB2® HACMP™ System i™
System p™ System x™ System z™
Windows is a trademark of Microsoft Corporation in the United States, other countries, or both.
Linux is a trademark of Linus Torvalds in the United States, other countries, or both.
Other product and service names might be trademarks of IBM or other companies.
TOC Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Exercise 11. Working with the Content Template Catalog and Site Builder . . . . . . . . . . .11-1
Section 1. Getting started with CTC and Site Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-3
Section 2. Create a website by using the Internet Site Template wizard . . . . . . . . . . . . . . . . .11-18
Section 3. Customizing the site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-28
iv Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
TMK
Trademarks
The reader should recognize that the following terms, which appear in the content of this training
document, are official trademarks of IBM or other companies:
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
DB2® HACMP™ System i™
System p™ System x™ System z™
Windows is a trademark of Microsoft Corporation in the United States, other countries, or both.
Linux is a trademark of Linus Torvalds in the United States, other countries, or both.
Other product and service names might be trademarks of IBM or other companies.
vi Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
pref
Exercises description
This course includes the following exercises:
• Overview of IBM Web Content Manager
• Creating templates, components, and items
• Pages, portlets, and page templates
• Adding navigational components and search queries to a website
• Item management
• Personalization and categories
• Custom authoring features
• Working with drafts, workflows, and projects
• User access and security
• Adding CSS to your website
• Working with Content Template Catalog (CTC) and Site Builder
• Working with the IBM Mobile Preview
• Using the IBM Script Portlet
In the exercise instructions, you can check off the line before each step as
you complete it to track your progress.
Most exercises include required sections which should always be completed.
It might be necessary to complete these sections before you can start later
exercises. Some exercises might also include optional sections that you
might want to complete if you have sufficient time and want an extra
challenge.
viii Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 1. Overview of IBM Web Content
Manager
Estimated time
00:40
Introduction
This exercise introduces you to Web Content Manager. You learn how to
access Web Content Manager and switch between different websites. You
create a content library that you use in later exercises. You explore roles
within the Web Content Manager as you assign access to the library.
Requirements
You need administrative permissions to create a library and specify access to
it.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Start, stop, and query the status of the WebSphere Portal server
In this section, you query the status of the WebSphere Portal server by using the command line.
You also learn the commands to start and stop the server.
To check the WebSphere Portal server status now, and at any time during the course, follow this
procedure.
__ 1. Query the status of the WebSphere Portal server.
__ a. Open the command window.
__ b. Go to C:\IBM\WebSphere\wp_profile\bin.
__ c. Type serverStatus.bat -all. When prompted for user name and password use:
wpsadmin/wpsadmin. If WebSphere_Portal is STARTED, then skip step 2.
__ d. If the server is not yet started, use the following procedure to start it.
1-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. Wait until you see the message that the WebSphere_Portal is open for e-business. You
can close the command window and proceed.
Information
To stop the WebSphere Portal server, use the command: stopServer.bat WebSphere_Portal
For all these commands, the server name is case-sensitive and it is "WebSphere_Portal"
If prompted for credentials, the user ID is wpsadmin and the password is wpsadmin.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Logging in
__ 1. Open the Mozilla Firefox browser and go to: http://wcm:10039/wps/portal.
Important
Do not be concerned if the website you see looks different than shown in this screen capture. There
are two websites. Later in this exercise you see how to move between them.
1-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 2. Locate and click Log in on the right side of the home page. If you do not see the button,
scroll to the right.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. Click the site menu icon to display the names of different websites that you can display.
In the student lab environment, the two sites are: Content Template Catalog
(CTC) Demo and the Home site.
1-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. Click Site menu > CTC Demo. The CTC Demo is an example website for a fictitious
conference. This website is used in a later exercise.
__ d. Click Site menu > Home. The site shown in the screen capture is used in this exercise.
Use this site for the exercises unless directed otherwise.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Creating a library
__ 1. Go to Administration (the wrench icon) menu in the upper left and click the icon.
1-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 4. Create a library.
__ a. On the Web Content LIbraries page, click Create new Library.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. On the Create new Library page, type Training as the library name.
1-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. Still on the Create new Library pane, check Prohibit library from being deleted.
__ d. Click OK.
__ e. Wait for the verification message that the library was created.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ f. On the Web Contents Libraries page, type “Training” in the search box and click the
search icon to the right. When the new library is shown, notice the control icons to the
right of the library name.
__ g. Click the Set Permissions icon for the new Training library.
1-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ c. Notice the breadcrumb trail identifies your location, which is Resources > Contributor
> Add Role Members. Check All Authenticated Portal Users.
__ d. Click OK.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. On the Resource Permissions pane, verify that All Authenticated Portal Users are
now listed as members.
__ 6. Modify permissions for the User role. Refer to previous section if you need to see screen
captures.
__ a. In the breadcrumb trail, click the Resources link. Breadcrumb trails help identify your
current location and are also an easy way to move to different places.
__ b. Click the Edit Role icon for the User role.
__ c. Click Add and then select Anonymous Portal User.
__ d. Click OK.
__ 7. Modify permissions for the Editor role.
__ a. Click the Resources link to return to the Resource Permissions page.
__ b. Click the Edit Role icon for the Editor role.
1-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. Click Add and, on the Resource Permissions pane, click Search.This action expands
the users and user groups displayed.
__ 8. Exit after you are done setting permissions for different roles.
__ a. Click the Resources link.
__ b. Click Done.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
1-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 10. On the Library Resources Training pane, click Set Permissions for the Content resource.
__ 11. On the Resource Permissions pane, click the Edit Role icon for the Editor role.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 13. On the Add Role Members pane, click Search. Notice that more names become visible.
1-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 15. Click the Resources link in the breadcrumb trail and then click Done.
__ 16. On the Library Resources Training, click OK.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
1-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 7. On the Edit Shared Settings pane, expand Library Selection and then select Training.
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 8. Click Add.
__ 9. Click OK under the label Edit Shared Settings or at the bottom of the pane.
__ 10. The Training Library should now be displayed in the authoring portlet.
1-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 5. Select the left icon to display a list.The list is the default choice.
__ 6. Select the right icon to display a tree. Expand the Training library.
End of exercise
© Copyright IBM Corp. 2015 Exercise 1. Overview of IBM Web Content Manager 1-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
1-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 2. Creating templates, components, and
items
Estimated time
01:15
Introduction
Authoring templates are like forms that content authors can use to create
new content. It defines default settings for the items that are created by using
the authoring template. There are two types in authoring templates, site area
and content.
Content items are based on authoring templates. You add elements to
content item to store Web content specific to the content item.
Each content item that you create contains at least one element type. The
elements that are stored in a content item are determined by the authoring
template that is selected when you created the content item.
Requirements
To complete this exercise, you must have:
• Exercises 1 completed
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Hint
You might already have the Firefox browser opened to WebSphere Portal from an earlier exercise.
2-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Information
When the user is already in the training library, there is no need to select the location. If the
Location is not set, click Select Location and set the location to Training.
__ g. Go to the top or bottom of the page and click Save and Close.
__ h. You should see a message that Home was saved under Training. There is also a
Warning that indicates that default content is needed. Click Content.
A site area that is named Home now exist in the Content view. Next, you create an
authoring template. In an upcoming section, you create the content.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
2-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ f. Click Add.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ g. After the element is successfully added, you can see it listed under Element type. Click
OK.
Information
__ k. Go to the top or bottom of the page and click Save and Close. You should see a
message that indicates Landing - Internet was saved under Training.
2-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 2. Verify the authoring template, Landing - Internet, exists in the Authoring Templates view.
__ a. In the breadcrumb trail, click Training.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
2-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ d. In the Select a Site Area pane, select the radio button next to Home as the site area. Do
not click the Home link. In the Placement section, select First child.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. Click OK.
__ f. Verify that the location is set to Training / Home (First child).
Information
You can enter any text into the Body field. You want to have some text that you can examine when
you view the site. The text that you enter does not matter as you just need something in the body
that you can verify in the site.
__ h. Go to the top or bottom of the page and click Save and Close.
__ 2. Verify the content item.
__ a. In the breadcrumb trail, click Training.
__ b. Click Content.
2-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. You can see the Home site area as it has the hierarchy diagram icon next to the name.
Click Home.
__ d. The content item Home now exists in the Home site area. You can see that it has the
content icon next to the name.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
2-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ f. Edit the type parameter of both tags to change them from “content” to “auto”.
Information
The type content parameter displays the property of the current content item. If a site area is
selected, then nothing is displayed.
The type auto parameter displays the property of the item currently being rendered.
Changing the content type from content to auto is required since
__ g. Go to the top or bottom of the page and click Save and Close.
__ 2. Verify the presentation template.
__ a. If needed, in the breadcrumb trail, click Training.
__ b. Click Presentation Templates. You can see that the presentation template Landing –
Internet is listed.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
2-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. Go to the Site Area Properties section. In the Child Template Mappings section, you can
see that currently there are no mappings. Click Manage Template Mappings.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. In the Presentation Templates section, select Landing - Internet. Your selections should
look like the following screen capture:
__ f. Click OK. This step maps the authoring template and presentation template together.
__ g. You are placed on the Manage Template Mappings pane. Here you can see that the
Authoring Template Training / Landing - Internet, is mapped to the Presentation
Template Training / Landing - Internet. Go to the bottom of the page and click OK.
2-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ h. In the Site Area Properties section, you can see the updated Child Template Mappings.
You can see that the Authoring Template Training / Landing - Internet, is mapped to the
Presentation Template Training / Landing - Internet.
__ i. In the Site Area Properties section, click Select Default Content next to Default
Content.
__ j. Click Home, which is the Home site area. This step takes you to Training > Home.
__ k. Select the Home content item (which has the content item next to the name).
__ l. Click OK.
__ m. Click Save and Close.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 2. Now that you have created the content, you want to preview the content.
__ a. Select the box next to the Home content item and click Preview.
__ b. The first time that you preview an item, you need to enable pop-up windows for this
website. Click Option > Allow pop-ups for localhost. You might also see to Allow
pop-ups for wcm which is the hostname of the computer.
__ c. Since you encountered the pop-up blocker, you need to repeat the previous step. Select
the box next to the Home content item and click Preview.
Hint
Make sure that you select the Home content item and not the Home site area. Your icons may be
listed different from the list in the screen capture in step 2.
2-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ d. Your content previews in another window. You can see the title of the content, which is
Home, and the body of the content.
__ e. Close the Firefox browser pop-up window that shows the preview of the body.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
2-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ i. Verify that the image is uploaded into the Image field in the Image Element section.
Then, click Save and Close.
2-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ c. Go to the Presentation Template Options section and replace the body markup. Replace
the current HTML markup in the presentation template with the following code:
<div style="margin:0 auto; width: 960px">
<div style="float: clear; width: 100%; padding-bottom:
20px;text-align: center;">
<hr>
</div>
<div style="float:left; width: 70%"><h1>[Property context="current"
type="auto" field="title"]</h1>
[Element context="current" type="auto" key="Body"]
</div>
<div style="float:right; width: 28%">
</div>
</div>
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Information
As you edit this markup, make sure that the Property and Element tags are not removed from the
markup.
__ d. In the body, place your cursor before the <hr> tag and add a blank line.
__ e. Place your cursor in the blank line and add the banner image. Click Insert Tag.
__ f. In the Select a tag type field, select Component.
__ g. Click Select a library component.
__ h. Click Training.
2-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ j. In the Insert a Tag window, verify that the Banner Image is referenced and click OK.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-25
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ k. You can see the markup that is added to the body. Verify that your markup looks like the
following screen capture:
__ l. Go to the top or the bottom of the page. Click the down-arrow to the right of Save and
Close and click Save. Do not click Save and Close. You want to save the changes, but
remain on the page and not close the page.
__ m. Click Preview.
__ n. Select the radio button next to the Home site area. The reason that you only need to
select the Home site area is that in an earlier section you gave the Home site area a
default piece of content. Click OK.
2-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
You can still see the Home title and body content, but now you see the image and a
horizontal line below the image.
__ p. Close the preview browser window.
__ q. Now, click Save and Close.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-27
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
- Click Add.
- Verify that you see the HTML Element type listed and click OK.
2-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ f. Select the radio button next to Training and click OK.
__ g. Click the Default Site Area tab. Make sure to click the Default Site Area tab and not the
Default Site Area Properties tab.
__ h. Expand the Site Area Properties section.
__ i. In the Rendering Behavior field, select Render the site area directly.
__ c. Next, create five new child site areas under the Home site area by using the Training /
Sections site area template that you created. First, create the Our Company site area
under the Home site area. Click New > Site Area > Training / Sections.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-29
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Note
The Name field cannot accept the & symbol. You must use the word and instead. However, you set
the Display title field to use the & symbol, which is acceptable.
- Create the Name Business Support with the Body This is the Business
Support site area
- Create the Name Employee Services with the Body This is the Employee
Services site area
- Create the Name Search with the Body This is the Search site area
2-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ b. When completed, your child site area listing should look like the following screen
capture:
__ 4. Edit the Home site area and add a template map for the Sections authoring template and
the Landing – Internet presentation template.
__ a. In the breadcrumb trail, click Content.
__ b. Select the box next to Home (the site area with the hierarchy icon next to it) and click
Edit.
__ c. In the Site Area Properties section, click Manage Template Mappings.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-31
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ d. You can see the current list of template maps which includes one map. To add another
map, click Add.
2-32 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ h. In the Site Area Properties section, verify that you see can the two mappings under the
Child Template Mappings section.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-33
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. From the tree view, you can see an overall hierarchy of the content. In the tree view of all
entries, click Home to expand the Home site area.
__ c. You can see that Home is the parent site area, which has five child site areas and a child
content item.
2-34 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-35
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
- Click Add.
- When you see the Element type Rich Text listed, click OK.
2-36 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. Clear the box next to Enable workflow for items created with this authoring
template.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-37
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. You need to create content items for the following site areas:
- Our Company
- News & Community
- Business Support
- Employee Services
__ c. You can create the content from this page or you can go to the site area where you are
going to create the content, the child site area. To create content for the first site area,
click Our Company.
__ d. Click New > Content > Training / Topics.
__ e. In the Element Manager pane, make the following changes:
- In the Name field, enter: Our Company 1
- In the Body, enter: Our Company 1
__ f. Click Save and Close.
__ g. Click New > Content > Training / Topics.
__ h. In the Element Manager pane, make the following changes:
- In the Name field, enter: Our Company 2
- In the Body, enter: Our Company 2
__ i. Click Save and Close.
2-38 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ j. Repeat the prior steps to create six content items for Our Company. You must create
Our Company 3, Our Company 4, Our Company 5, and Our Company 6.
When completed, your content items should look like the following screen capture:
__ k. Repeat step three creating content for the following child site areas:
- For the News & Community site area, create the content News and Community
1, News and Community 2, News and Community 3, News and
Community 4, News and Community 5, and News and Community 6.
Note
The Name field cannot accept the & symbol. You must use the word and instead. However, you can
set the Display title field and Body to News & Community 1. Make sure to set the fields for
each of the six content items.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-39
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
- For the Business Support site area, create the content Business Support 1,
Business Support 2, Business Support 3, Business Support 4,
Business Support 5, and Business Support 6
- For the Employee Services site area, create the content Employee Services
1, Employee Services 2, Employee Services 3, Employee Services
4, Employee Services 5, and Employee Services 6
__ l. Verify that you did not create any content items under the Search site area. Click Search
and no content items are listed.
2-40 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-41
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
2-42 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ f. You can see the component tag that is added to the presentation markup. The
Component id in the screen capture and what you have in the markup are different.
Verify that the name is set to Training/Topic Menu.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-43
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ g. Go to the top or the bottom of the page. Click the small down-arrow to the right of Save
and Close and click Save. Do not click Save and Close. You want to save the changes,
but remain on the page and not close the page.
__ h. Click Preview.
__ i. Select the radio button next to the Home site area and click OK.
__ j. The page opens in a new window and looks like the following screen capture:
__ k. On the left, you see the name Home in bold and the description below the name. On the
right, you see the Home menu with a single bullet point. When completed, close the
preview window.
__ l. On the Landing - Internet pane, click Save and Close.
__ 3. Create a new HTML component that is named Right Column.
__ a. Click New > Component > HTML.
__ b. In the Name field, enter: Right Column
__ c. In the HTML Markup section, click Insert Tag,
__ d. In the Insert a Tag pane, make the following changes:
- For Select a tag type, select Component.
- Click Select a library component.
- Select the radio button next to Topic Menu and click OK.
- Verify the tag entry appears and click OK.
2-44 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ e. You can see the component tag that is added to the presentation markup. The
Component id in the screen capture and what you have in the markup are different.
Verify that the name is set to Training/Topic Menu.
Reminder
Note
The presentation template is updated to remove the Topic Menu because in the next exercise you
display the content by using multiple web content viewer portlets. The Menu component and the
content detail display in different portlets.
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-45
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ g. The page opens in a new window and looks like the following screen capture:
__ h. On the left, you see the name Home in bold and the description below the name. Now,
on the right, the Home menu with a single bullet point is no longer there. When
completed, close the preview window.
__ i. On the Landing - Internet pane, click Save and Close.
__ j. In the Library Explorer pane, click the List view of all entries icon in the Display menu
on the right. This changes the display back to the list view.
__ k. Log out of WebSphere Portal.
End of exercise
2-46 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 2. Creating templates, components, and items 2-47
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
2-48 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 3. Pages, portlets, and page templates
Estimated time
01:00
Introduction
In this exercise, you create several pages from your own template. In Section
1, you create a template that specifies the layout. You associate a portlet with
with a portlet container on the new page. You also configure the portlet
containers. In Section 2, you create pages from that template. In Section 3,
you update the presentation template.
Requirements
This exercise depends upon assets that are created in Exercises 1 and 2.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
3-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
3-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. Type mySection in the Title field. Click the Friendly URL name field and the title is
automatically completed.
__ h. Click OK.
__ i. Go to Portal User Interface > Page Templates.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Notice that the layout outline becomes visible. There are two equal sized columns. The pur-
pose of the next steps is to define a different layout.
__ c. Click Layout.
3-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ d. Select the Top column 2 column unequal layout. Verify the success message that
appears across the top with a blue background.
__ 4. Associate the Web Content Viewer portlet with the top portlet container.
__ a. Click the Create tab and then select Applications.
__ b. Type web in the search box in the upper left of the dialog and press Enter. Find the Web
Content Viewer portlet in the list.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. Drag this portlet to the top row of the mySection template layout.
__ d. Associate the Web Content Viewer portlet with the other two portlet containers by
repeating steps 4a through 4c for each.
__ 5. Specify content for the top Web Content Viewer portlet.
__ a. In the upper right of the portlet, click Display Portlet Menu and then click Edit Shared
settings.
3-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ f. Verify that the text Banner Image now appears in the content.
3-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. Below the Content Behavior, locate the Content header. In the Content section, click
Edit.
__ h. In the Select Content Item pane, use the breadcrumb trail to move around easily. Select
Libraries > Training > Home (site area) > Home (content item).
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ i. Click OK and verify that the selection appears on the Content pane.
__ j. Towards the bottom of the pane, expand the Advanced Options section.
Note
Use the Links section to enter the details of how you want to receive and broadcast links with other
portlets. This option determines whether rendering portlets are aware of the state or context of other
portlets.
Select a broadcast link option:
• Select None if you do not want to broadcast the context of the current portlet to other portlets.
• Select This page to broadcast the context of the current portlet to other portlets on the same
portal page.
• Select Another page to broadcast the context of the current portlet to portlets on a different
portal page. You must then select the target portal page.
• Select Dynamically select a Web Content page to dynamically determine the best
web content page to use when rendering the linking content item.
Select a receive link option:
3-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty • Select None if you do not want to receive the context of any other portlets.
• Select This portlet to use the context of the content item, component, or element that is
displayed in the rendering portlet.
• Select Other portlets and this portlet to receive the context from any rendering portlet that
broadcasts its context.
__ l. Click OK.
__ m. Verify that the banner image displays in the top Web Content Viewer portlet. This screen
capture is taken in VIew, rather than Edit mode.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 6. Specify the content for the right column portlet container that uses the same procedure but a
different component.
__ a. On the mySection template page, with Edit mode still enabled, click the Display
Portlet Menu for the right (smaller) column, and select Edit Shared Settings.
__ b. Configure the Web Content Viewer Content for the right column by using these values:
• Content Type: Component
• Component: Training/Right Column
3-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ d. Click OK.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
3-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. Select the Page option from the left menu below Getting Started (not peer to Create).
__ d. In the center Templates column, type mySection into the search field. Select the
mySection template.
3-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ e. In the Page Settings column, type Our Company in the Page title field. In the Page
insertion point section, select Next sibling of current page.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 5. On the confirmation pane, choose to View or edit page information. To close the Create
dialog, click the X in the upper right corner.
3-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 7. Modify the new page. The first step is to associate content you created with the lower left
portlet container.
__ a. Verify that you are in Edit mode.
__ b. Click Page > General and select the Details tab.
__ c. On the far right column that is labeled Contents and Templates:, click the edit (pencil)
icon for the Default site area.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
3-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ e. Select the Training library on the last page of library listings. Select the Home site area
and select Our Company site area. Click OK.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ f. Now select this item (Training / Home / Our Company) as the web content for the
page. Click OK.
3-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. The Our Company page you created now appears in the portlet container in the left
lower column. Later, you refine this so the banner does not appear twice. For now, verify
that your text appears.
__ 8. Modify the right portlet container to display content from the web site you developed in
Exercise 2.
__ a. Make sure that you are in Edit mode.
__ b. Edit the shared settings of the portlet in the right column. Click the Display Portlet
Menu and select Edit Shared Settings.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-25
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
3-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Hint
If a default value does not appear, select Our Company from the site area content item under
Training / Home.
__ 11. In the right column, verify that you see links from the Our Company page.
.
Table 1: Page name with the page mapping
Page name Page - Site Area Mapping
News & Community Training > Home > News and Community
Business Support Training > Home > Business Support
Employee Services Training > Home > Employee Services
__ 12. Repeat the process in Steps 4 - 10 to create three pages. Substitute the value in the Page
name column in Table 1 on page 3-27 for Our Company. In step 6e, substitute the values in
the Page - Site Area Mapping column for the specified mapping.
__ 13. Delete pages.
__ a. Go to the Getting Started page.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-27
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Information
With this step, you create a clean website that is specific to the lab. You are deleting the
unnecessary portal pages that are included with WebSphere Portal. It is not necessary to remove
them, but is helpful to get a clean website at the end.
3-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 4. Click the Web Content Authoring tab, and then go to the Library Explorer.
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-29
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
3-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 7. Edit the Landing – Internet presentation template. Check the Landing - Internet template
and click Edit.
__ 8. In the section Presentation Template options, edit the markup so that only the following
markup is used:
<h1>[Property context="current" type="auto" field="title"]</h1> [Element
context="current" type="auto" key="Body"]
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-31
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 11. Verify that your site looks something like the following screen capture. In particular, check
that the left lower column no longer has the duplicate banner.
When replacing the markup, you lose the banner image. As the banner image is already added in
the portlet as an image component in the previous steps, you do not require the banner image in
the presentation template now.
__ 12. Log out of the portal.
End of exercise
3-32 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 3. Pages, portlets, and page templates 3-33
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
3-34 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 4. Adding navigational components and
search queries to a website
Estimated time
01:15
Introduction
A page navigation element provides navigation controls that are used to
browse through a set of results that are generated by menus, navigators,
personalization, and search elements.
Requirements
To complete this exercise, you must have:
• Exercises 1 through 3 completed
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Hint
You might already have the Firefox browser opened to WebSphere Portal from an earlier exercise.
4-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Hint
You can also click Insert Tag. For the Select a tag type field, select Placeholder. For the Select
placeholder tag type field, select Title Link and click OK. This step adds the Placeholder line in
the Result design 1 field.
Information
In the Separator field, you enter a space followed by | followed by another space. Do not enter the
word space into the field.
__ k. Go to the top or bottom of the page and click Save and Close.
__ 3. Edit the Landing – Internet presentation template.
__ a. In the breadcrumb trail, click Training.
__ b. Click Presentation Templates.
__ c. Select the box next to Landing - Internet and click Edit.
4-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ d. Go to the Presentation Template Options section. In the Presentation Markup field, place
your cursor before the <h1> tag and add a blank line. Place your cursor back in the
blank line.
Reminder
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. In the preview window, you can see the banner navigator that is added.
4-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Hint
You can also click Insert Tag. For the Select a tag type field, select Placeholder. For the Select
placeholder tag type field, select Title Link and click OK. This step adds the Placeholder line in
the Result design 1 field.
Information
In the Separator field, you enter a space followed by > followed by another space. Do not enter the
word space into the field.
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 2. Edit the Landing – Internet presentation template to replace a tag that references the
Banner with one that references the Breadcrumb.
__ a. In the breadcrumb trail, click Training.
__ b. Click Presentation Templates.
__ c. Select the box next to Landing - Internet and click Edit.
__ d. Go to the Presentation Template Options section. In the Presentation Markup field, place
your cursor before the <h1> tag and add a blank line. You still want the banner
component to be at the top. Place your cursor back in the blank line.
4-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Reminder
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ d. In the preview window, you can see the breadcrumb navigator that is added. You can
see the banner, the banner navigator, horizontal rule, and then the breadcrumb
navigator.
4-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. Go to the List Paging Options section. Change the Results per page field from 10 to 5.
__ c. Go to the List Presentation Markup section. In the Footer field, place your cursor before
the </ul> tag and add a blank line. Place your cursor back in the blank line.
__ e. Place your cursor after the <br> tag and add a blank line. Place your cursor on the blank
line.
__ f. Click Insert Tag.
__ g. In the Insert a Tag pane, make the following changes:
- For the Select a tag type field, select Component.
- Click Select a library component.
- Select PN - Paging and click OK.
- Click OK. This adds the component line in the markup.
4-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Reminder
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. In the preview window, you can see the paging control that is added below the menu
options on the right. You should see five menu options only, not all six. This is because
the Results per page field for the page navigation component is set to five.
__ d. Click 2 to go to page 2 and examine the details. You can also use the forward and back
arrows to move between the pages.
__ e. Click any of the other pages, such as Employee Services, to verify that the paging
controls are added.
__ f. Log out of WebSphere Portal.
4-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. In the Collect documents linked from this URL field, enter the following URL:
http://wcm:10039/wps/seedlist/myserver?SeedlistId=Training/Home&Source=co
m.ibm.workplace.wcm.plugins.seedlist.retriever.WCMRetrieverFactory&Action
=GetDocuments
Hint
If you copy the URL from the book, make sure that the entire URL is on one line and it does not
contain spaces. Copying and pasting from the PDF book into the browser adds spaces into the
URL. Make sure you remove the spaces in the URL before you continue.
4-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ k. Verify the details in the Security realms section. You should see wpsadmin.
__ l. Then, at the bottom of the form, click Create. You should see the new content source,
Training.
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ m. Verify that you also have a message at the top of the pane that indicates the collection is
OK.
Hint
If you do not get the OK message, click the Edit Content Source icon (the pencil) next to Training
and examine each of the configuration settings. Verify the URL and Security settings and fix any
mistakes or typos.
__ c. After a few moments, click Refresh. Continue to click Refresh until the Status is Idle
again. This step ensures that the crawler starts successfully and that documents are
found. You should see the number of documents increase.
Note
4-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ d. Go to the navigation pane on the left. Under Access, click Resource Permissions.
__ e. Click PSE Sources.
__ f. Click the Assign Access icon next to WebContentCollection.
__ g. Next to the Editor Role, click the Edit Role icon (the pencil).
__ h. Click Add.
__ i. Verify that the Search Users or User Groups field is set to User Groups. Next to the
Search by field, click Search.
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ l. Click Apply.
__ m. When prompted if you want to modify the resource, click OK.
__ n. Log out of WebSphere Portal.
4-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. Go to the Search Options section. For the Search collection field, verify that
WebContentCollection is selected.
__ d. Go to the List Presentation Markup section. In the Header field, enter the following
markup:
<div>
<ul>
__ e. In the Result design field, enter the following markup:
<li>
<span>
<b>
[Placeholder tag="titlelink"]
</b>
</span>
</li>
__ f. In the Footer field, enter the following markup:
</ul>
</div>
__ g. In the No result design field, enter the following markup:
<b>No results matched your search. Try a different search.</b>
__ h. Click Save and Close.
__ 4. In the Right Column HTML component, insert a component tag to put the search form below
the existing Topic Menu component tag.
__ a. Select the box next to Right Column and click Edit.
__ b. Go to the HTML Element section. In the HTML Markup field, go to the end of the line
and add a blank line.
__ c. Click Insert Tag.
4-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Reminder
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Reminder
__ d. In the toolbar menu in the upper left, click Create > Page.
__ e. In the Template section, verify that Basic is selected.
__ f. In the Page Settings section, make the following changes:
- In the Page title field, enter: Search
- For Page insertions point, verify that Next sibling of current page is selected.
- Click Create Page.
__ g. In the toolbar menu in the upper left, click Page > General
__ h. Click the Details tab.
__ i. In the Contents and Templates section, next to Default site area, click the Edit icon (the
pencil).
__ j. Click Add web content.
__ k. Click Training > Home.
__ l. Select the radio button next to Search and click OK.
4-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ m. Select the radio button next to Search Training/Home/Search and click OK.
__ n. In the tool menu in the upper left, click Create > Applications.
__ o. In the search field in the top right of the window, enter: web content (and enter)
__ p. Find the Web Content Viewer portlet in the list. Hover your mouse over Web Content
Viewer and the add icon (plus) appears in the upper right. Click the plus to add the Web
Content Viewer portlet.
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-25
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ q. Close the Create pane. You are placed on the Search page and you can see the portlet
added on the left.
__ r. Next, you need to edit the shared settings. In the upper right corner of the portlet, click
the Display portlet menu icon.
4-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-27
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
End of exercise
4-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 4. Adding navigational components and search queries to a 4-29
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
4-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 5. Item management
Estimated time
00:15
Introduction
In the first part of this exercise, you learn how to organize content into
folders.
In the second part of this exercise, you view existing version numbers. You
create a new version and restore an earlier version.
Requirements
To complete this exercise, you must have completed
• Exercises 1 - 4
5-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
5-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
5-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 2. Make note of the current version. In the screen capture, the current version is 9.
__ b. Change the presentation markup so you can easily spot the change. In the Presentation
Template Options, in the markup add a line which says “This is an obvious
change.”.
5-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 6. Verify that the Landing - Internet presentation template is restored to its previous version,
that is, without the text you added. To view the presentation template, refer to Section 2,
step 1c, that is, check the template and click Read.
__ 7. Log out of WebSphere Portal.
End of exercise
5-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 6. Personalization and categories
Estimated time
01:30
Introduction
Personalization allows a portal or website to choose which content appears
for particular site visitors. For example, a site that uses Personalization can
show different news articles to managers than to regular employees, or
different information to valued customers.
You can define content through a number of applications, including IBM Web
Content Manager. Personalization automatically detects the content
definition from these applications. After you define the content type,
attributes of the content are shown to the rule author. The rule author can use
these attributes to make conditions. These conditions can define if and when
Requirements
To complete this exercise, you must have:
• Exercises 1 through 5 completed
6-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Hint
You might already have the Firefox browser opened to WebSphere Portal from an earlier exercise.
Reminder
6-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ f. Next to the User role, click the Edit Role icon (the pencil).
__ g. There is already an entry for All Authenticated Portal Users. Next, add anonymous
access. Click Add.
__ h. Select the box next to Anonymous Portal User and click OK.
__ i. You now have two entries for Members in the Role for User.
6-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ i. At the top of the page, you also should see the following text:
Log in to use authoring capabilities
Hint
If the user name message does not show when you are logged in as Designer, then the browser
and server caching might be the cause. Clear the browser cache and wait for the server cache to
time out resolves those two situations. Then, you can clear the cache or reload the page as new.
If you still see the problem, you can restart the server, WebSphere_Portal.
6-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
6-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ d. Click Add.
6-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. Repeat the prior steps to create Event 2, Event 3, Event 4 and Event 5. Make
sure that you select a date in the future.
__ h. Next, create events in the past. Click New > Content > Training / Events.
__ i. In the Name field, enter: Past Event 1
__ j. In the Body field, enter: Past Event 1
__ k. Go to the Date section. In the Date field, select a date in the past.
__ l. Click Save and Close.
__ m. Repeat the prior steps to create Past Event 2, Past Event 3, Past Event 4,
and Past Event 5. Make sure that you select a date in the past.
__ n. When completed, you should see all ten events listed under the Events site area. Five
events in the future and five events in the past.
6-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ h. Next to the Editor role, click the Edit Role icon (the pencil).
__ i. You can see the message that there are no members found in the role. Next, you add
the Designer group as a member. Click Add.
__ j. Since the Designer group is not listed, you must click Search.
6-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ r. Next to the Editor role, click the Edit Role icon (the pencil).
__ s. Again, there are no members in the role and you need to add a member. Click Add.
__ t. Since the Designer group is not listed, you must click Search.
__ u. Select the box next to Designers and click OK.
__ v. In the breadcrumb trail, click Workspace.
__ w. Click Done.
__ x. Log out of WebSphere Portal.
6-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ f. In the Rule field, next to whose Location is, click value.
__ g. In the menu, click the down arrow to see all of the options. Keep clicking the down arrow
until you see Select Location.
6-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ q. Select the box next to Events that is in the Training library. It is on the final page of the
options, page 6. Click OK.
__ v. In the line whose Events.Date is, click is. Then, click is greater than.
6-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ w. Hover your mouse over the word value. Click the arrow (>) symbol next to value and
then click Date > Date.
Hint
Place your mouse over the word value and the arrow (>) symbol appears. Make sure that you click
the arrow, and not the word value.
__ x. Click current Date.Date and select today’s date and click Submit. You can see the date
appears in the field.
6-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Hint
Information
Reminder
6-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ b. Click Our Company. You should see the upcoming events on the right.
Hint
Make sure that you select Taxonomy and not Taxonomy Component.
6-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ b. Expand Categories > All Categories > Feature Article. You should see Featured
News and Home Page Feature, which are children of Feature Article.
__ c. Go back to the regular list display. Next to Display, click the List view of all entries
icon.
6-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ e. In the Option Selection Field Properties pane, set the following parameters:
- Select Multiple select, so users can select multiple categories.
- For Option Type, select Use Taxonomy, so you can select existing categories to
populate your option selection element.
- For the Category selection options field, select Selected Categories.
- Click Add Categories.
- Click All Categories > Feature Article and select the box next to both the Featured
News and Home Page Feature categories. Click OK.
- For the User interface, select Check boxes as the user interface option.
__ f. Click Save and Close.
__ 3. Create a template map in the Home site area to map the News authoring template to the
Landing – Internet presentation template.
__ a. In the breadcrumb trail, click Training > Content.
__ b. Select the box next to the Home site area and click Edit.
__ c. Go to the Site Area Properties section and click Manage Template Mappings.
__ d. Click Add.
__ e. Select News as the authoring template.
6-32 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ f. Click OK.
__ g. Examine the results at the top of the page and look for the number of items that are
updated. A total number of 6 items are updated.
__ 2. Edit one of the News items and select the Home Page Feature category under the new
Categories section.
__ a. You can select any of the News & Community content items, but it is best to start at the
beginning. Select the box next to News & Community 1 and click Edit.
__ b. Go to the Categories section. Select /Training/All Categories/Feature Article/Home
Page Feature.
__ c. Click Save and Close.
__ i. On the next line, add an element tag to display the body element. Click Insert Tag.
6-34 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ j. Go to the Menu design properties section. For Formatting, select Use a list
presentation.
__ k. Click Select List Presentation.
6-36 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Reminder
__ b. Click News & Community. The content of the featured Home Page is now displayed.
You can see News & Community 1 listed.
End of exercise
6-38 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
6-40 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 7. Custom authoring features
Estimated time
01:15
Introduction
In Section 1 of this exercise, you add buttons to create, modify, or delete
content. These inline buttons allow people with the appropriate authorization
to author content conveniently.
In Section 2, you create and configure a page to Manage Content.
In Section 3, you create and configure a page for writers.
In Section 4, you verify access to the different authoring environments that
you created.
In Section 5, you create a default authoring template for writers.
In Section 6, you update the authoring template that you created. You specify
which fields are included and which are hidden.
Requirements
To complete this exercise, you must complete:
• Exercises 1 - 6
__ d. Click OK.
__ e. Add the following markup to the specified design sections. You are not adding text in
every possible field so be careful to find the correct fields.
7-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
• Click OK twice.
__ f. Verify that you see the component tag before the </div>. Click Save and Close.
Note
Your component ID is different than the one shown in the screen capture.
7-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ d. Click Edit and modify the text on this page. In this example, the word MODIFIED was
added to the text on Our Company. The screen capture shows a successful example
of modifying the text by using the Edit capability.
7-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ h. Look at the Applications menu and notice the options that you saw in Step 2 are no
longer available.
7-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ e. Click Set page layout properties and select the One Column layout.
__ f. Click OK to confirm the layout choice, and click OK again to save the page.
__ g. Click the Edit Page Properties icon for the Manage Content row. The icon looks like a
page with the upper right corner folded.
__ h. On the Edit page: Manage Content page, expand Advanced options. Click I want to
set parameters.
__ b. For the User role, click Edit Role (the pencil icon).
7-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ d. Click OK.
__ e. Click Manage Content in the breadcrumb trail, and then click Done.
__ 6. Now you edit the layout of the page.
__ a. Click the Edit Page Layout (pencil icon) of the Manage Content page.
__ c. Type web in the search field, click Search and select the Web Content Authoring
portlet.
__ d. Click OK.
7-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ g. From the Edit Mode selector, click the edit mode toggle to turn on editing.
7-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 9. Remove any other libraries from the Selected Libraries list. Select each other library and
click Remove. Verify that the library moves to the Available Libraries column.
__ 10. Expand the User Interface Options section. Select the following options.
• Navigation bar visibility: Hide when the home page or launch page is open
• Default view: Home Page
7-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Information
This section is similar to Section 2 except the authoring environment is for writers. The procedures
are the same but some values are different.
__ 1. Create a page.
__ a. Click Administration menu (the wrench icon) > Portal User Interface > Manage
Pages.
__ b. Click Content Root, if you are not there already.
__ c. Click New Page.
__ d. Enter Write Content in the Title field.
__ e. Under Type of Page, select Standard Portal Layout.
__ f. Click Set Page Layout Properties and select the One Column layout.
__ g. Click OK to confirm the layout choice, and click OK again to save the page.
__ 2. Configure Advanced Options.
__ a. On the Write Content page, click the Edit Page Properties icon.
__ b. Under Advanced options, click I want to set parameters.
__ c. Add the following parameter and value:
• New parameter: resourceaggregation.profile
• New value: profiles/profile_wcmauthoring.json
__ d. Click Add.
__ e. Click OK and OK again.
__ 3. Configure permissions.
__ a. For the Write Content page, click Set Page Permissions (the key icon).
__ b. Check the Edit Role icon for the User role.
__ c. On the Resource Permissions pane, click Add.
__ d. Click Search so all groups are shown.
__ e. Select the Writers and Legal groups.
__ f. Click OK.
__ g. Click Write Content in the breadcrumb trail, and then click Done.
__ 4. Now edit the Page Layout of the Write Content page.
__ a. For the Write Content page, click the Edit Page Layout (pencil icon).
__ 6. From the Edit Mode selector, click the edit mode toggle to turn on editing.
__ 7. Go to Display portlet menu and click Edit Shared Settings.
__ 8. From the Library Selection section, select the Training library.
__ 9. Remove any other libraries from the Selected Libraries list.
7-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 10. From under the User Interface Options section, select the following options:
• Navigation bar visibility: Hide
• Default view: Basic Home Page
__ 3. Click Manage Content. The home page view is displayed by default. Page down to see
Web Content Activity.
__ 4. Log out of the portal.
__ 5. Log in as Writer with password Writer.
__ 6. Go to the Site menu and verify that
• You do not see the Manage Content page
• You do see the Write Content page.
7-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 7. Click the Write Content page and verify that the home page view is displayed by default.
7-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 12. Verify that the custom configuration parameter is correct. The newest entry is most likely at
the end of the list on page 3.
__ 13. Log out of the admin console and close the browser tab.
7-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Note
In the last section, you used the WebSphere Application Server administrative console. In this
section, you are again using WebSphere Portal.
7-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 5. Enter some text in the description field. This text appears on the button in the basic home
page, so make it something that applies to your writers.
__ b. Click Add.
7-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ b. Under Select which actions to hide, check the box to hide all buttons except:
- Save
- Save and Close
- Preview
__ c. Under Item form help text, add some help text for your writers to complete the form.
7-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 9. Edit the Name field properties by clicking the properties icon:
__ c. Click Done.
__ 10. Also, check Hide field for the fields that are listed. After checking Hide field, click Done.
__ a. Click the Description field properties icon.
__ b. Check Hide field.
__ c. Click the down arrow beside Save and Close and select Save at the bottom of the
pane.
__ 11. Hide all the fields on the Default Content Properties tab.
__ a. Expand the Type field properties.
7-32 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ g. Still on the Default Content Properties tab, expand the UUID field properties.
__ h. Check Hide field.
__ i. Click Done.
__ j. Still on the Default Content Properties tab, expand the Authors field properties.
__ k. Check Hide field.
__ l. Click Done.
__ m. Still on the Default Content Properties tab, expand the Owners field properties.
__ n. Check Hide field.
__ o. Click Done.
__ p. Still on the Default Content Properties tab, expand the the Content Properties
section.
__ q. Check Hide section.
__ r. Click Save.
__ s. Still on the Default Content Properties tab, expand the Profile section.
__ t. Check Hide section.
__ u. Click Save.
__ v. Still on the Default Content Properties tab, open the Workflow section.
__ w. Check Hide section.
__ x. Click Save.
__ y. Still on the Default Content Properties tab, expand the Access section.
__ z. Check Hide section.
7-34 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 13. Modify the rest of the template as you did in for the Events template.
__ a. In the Form Properties section, for Item form layout, select No sections.
__ b. Under Select which actions to hide, check the box to hide all buttons except: Save,
Save and Close, and Preview.
__ c. Under Item form help text, add some help text for your writers to complete the form.
Note
7-36 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ a. Edit the Name field properties by clicking the Name field properties icon.
__ d. Click Done.
__ e. Back on the Default Content tab, click the Description field properties icon.
7-38 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ c. Click Done.
__ d. Still on the Default Content Properties tab, expand the Location field properties.
__ e. Check Hide field.
__ f. Click Done.
7-40 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ j. Still on the Default Content Properties tab, expand the Authors field properties.
__ k. Check Hide field.
__ l. Click Done.
__ m. Still on the Default Content Properties tab, expand the Owners field properties.
__ n. Check Hide field.
__ o. Click Done.
__ p. Still on the Default Content Properties tab, expand the Content Properties section.
__ q. Check Hide section.
__ r. Still on the Default Content Properties tab, expand the Profile section.
7-42 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ t. Still on the Default Content Properties tab, expand the Workflow section.
__ u. Check Hide section.
__ v. Still on the Default Content Properties tab, expand the Access section.
__ w. Check Hide section.
__ x. Still on the Default Content Properties tab, expand the History section.
__ y. Check Hide section.
__ c. Simplify the form. Under Form Properties, select the Item form layout of No sections.
__ d. Under Select which actions to hide, check the box to hide all buttons except: Save,
Save and Close, and Preview.
__ e. Under Item form help text, add some help text for your writers to complete the form.
7-44 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 17. Go to the Default Content tab on the Topics authoring template.
__ a. Edit the Name properties by clicking the Name field properties icon:
__ b. Select Hide field and Generate name. Field with not be editable when visible.
__ c. Click Done.
__ d. On the Default Content tab, expand the Description field properties. Check Hide
field.
7-46 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ d. On the Default Content Properties tab, expand the Location field properties.
__ e. Check Hide field.
__ f. Click Done.
__ j. On the Default Content Properties tab, expand the Authors field properties.
__ k. Check Hide field.
__ l. Click Done.
__ m. On the Default Content Properties tab, expand the Owners field properties.
__ n. Check Hide field.
7-48 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ p. On the Default Content Properties tab, expand the Content Properties section.
__ q. Check Hide section.
__ r. Still on the Default Content Properties tab, expand the Profile section.
7-50 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 22. Click New > Content > Select from all Content Templates.
__ 24. When you create a content item by using these templates, a simple form should be
displayed. Notice that you have two buttons: Save and Close and Close. There are only a
Display title, Body, and Date fields.
__ 25. On the right, click Show help and the help message you entered in the template is shown.
End of exercise
7-52 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
7-54 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 8. Working with drafts, workflows, and
projects
Estimated time
01:30
Introduction
Creating a draft of an item allows users to work on changes to that item
without changing the published version of the item. Draft items can either be
stand-alone items, or form part of a workflow. When the changes are
completed, you can choose to either publish the item, or discard the changes
by canceling the draft. You can create multiple drafts of a single item.
Requirements
To complete this exercise, you must have:
• Exercises 1 through 7 completed
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Hint
You might already have the Firefox browser opened to WebSphere Portal from an earlier exercise.
8-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
8-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. Click OK. The last modified text is now displayed on the preview page.
__ f. Click the Open site menu icon and click Manage Content.
__ g. You are placed in the draft Landing - Internet template. Click the small down-arrow to the
right of Save and Close and click Save and Publish.
__ h. Click Close.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ i. Now look at the Home page in your Portal site. Click the Open site menu icon and click
Home. The last modified text is now displayed on the published item.
8-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Information
An item is published when it enters a workflow stage that contains a publish action, and when the
selected published date and time are reached.
An item is expired when it enters a workflow stage that contains an expire action, and when the
selected expire date and time are reached.
8-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Note
Not all stages require selection of workflow actions. When you create the approval and draft stages,
change the workflow security settings.
8-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ i. This moves the group to the Selected names field. When completed, click OK.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
8-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ h. In the Search results field, select the Legal group and click Add. This moves the group
to the Selected names field. Make sure that you select the Legal group and not the
Legal user. The group icon has three people associated with it.
__ i. Click OK.
__ j. For the Reviewer role, clear the box under Inheritance.
__ k. Next to the Reviewer role, click Grant Reviewer Access.
__ l. In the Search field, enter: Legal
__ m. Click Search.
__ n. In the Search results field, select Legal and click Add. This moves the group to the
Selected names field. Make sure that you select the Legal group and not the Legal user.
The group icon has three people associated with it.
__ o. Click OK.
__ p. Click Save and Close.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ f. Select the box next to all four of the stages and click OK.
8-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. Use the up and down arrows to change the order of the stages to match the following
list:
- Training / Draft
- Training / Approval
- Training / Publish
- Training / Expire
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
8-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ i. Verify that the Default Workflow is set to Training / Standard - Published.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. Click Training.
__ d. Select News and click OK.
__ e. For the Display title field, enter: Workflow News
__ f. Verify that the Location field is set to: Training / Home / News & Community
(Last child)
__ g. In the Body field, enter the following text: Workflow News content here
__ h. Click Save and Close.
8-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ j. You can see that Workflow News is saved with a status of draft.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ l. Click News & Community. Look at both pages of your content. The Workflow News
item should not be visible in the list of News topics.
__ m. Click the Open site menu icon and click Write Content.
__ n. Click Workflow News to open it in read mode.
__ o. Click Submit for Review.
__ p. You can see a message that indicates Workflow News is moved to the next stage. Click
Close.
__ q. Logout of WebSphere Portal.
__ 3. Log in to WebSphere Portal as Legal.
__ a. In the upper right, click Log In.
__ b. In the login area, enter Legal as the user ID and Legal as the password. Click Log in.
__ 4. Approve the content item.
__ a. Click the Open site menu icon and click Write Content.
__ b. Click Open the Library Explorer.
8-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. In the navigation pane on the left, click Personal Views > My Pending Approvals.
__ d. The Workflow News item should be in your list of items that are pending approval. To
approve the item, select the box next to Workflow News and then click More >
Approve.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. Because the item is now approved, it no longer shows in your list of items that are
pending approval. Click the Open site menu icon and click Home.
__ f. On News & Community, go to page 2. The Workflow News item should now be visible in
the Latest News menu.
8-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ e. You can see that the status is Published. Click More > Expire to move the item to the
expire stage.
__ g. Click Close.
__ h. Click the Open site menu icon and click Home.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ i. Go to News & Community page 2. The Workflow News item should not be visible in the
Latest News menu. This is due to Workflow News being moved to the expired stage and
expired items do not appear on the published web site.
8-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-25
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ k. Click OK.
__ l. Go to the Properties tab.
__ m. Expand the Access section.
__ n. Next to Contributor, click Grant Contributor Access.
__ o. In the Search results field, select the Legal group and click Add. This step moves the
group to the Selected names field. Make sure that you select the Legal group and not
the Legal user. The group icon has three people who are associated with it.
__ p. Click OK.
__ q. Click Save and Close.
8-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-27
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ g. In the Search results field, select the Legal group and click Add. This step moves the
group to the Selected names field. Make sure that you select the Legal group and not
the Legal user. The group icon has three people who are associated with it.
Information
In the project template that you created, you added Legal as an Approver. If you do not also give
Legal Contributor access to the project, Legal is able to approve the project, but cannot see a list of
project items. The project items list is invisible to Legal due to a security issue.
__ h. Click the small down-arrow to the right of Save and Close, and click Save. Do not click
Save and Close. You want to save the changes, but remain on the page and not close
the page.
8-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-29
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ h. Go to the Item Properties section. For the Rendering type field, select Resource.
__ i. Click the Default Content Properties tab.
__ j. Expand the Workflow section.
__ k. Clear the box next to Enable workflow for items created with this authoring
template.
__ l. Click Save and Close.
8-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ m. In the Add HR Policies Sections project form, go to the Project Items section. You should
see the HR Policy listed.
Note
When opened, a resource-rendering content item starts the file that is specified in the File Element,
a PDF in this case, instead of using a presentation template to display its content.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-31
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ h. You should see the HR Policy authoring template listed. Select the HR Policy authoring
template in the Child restriction options.
8-32 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ i. Verify the list of Project Items. You should see Leave, Pay, and Work added to the list.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-33
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. Click Edit.
__ c. Go to the Site Area Properties section and click Manage Template Mappings.
__ d. You currently have five template mappings listed. Click Add.
__ e. Select the radio button next to HR Policy Section as the authoring template.
__ f. In the Presentation Templates section, select the radio button next to Landing -
Internet.
__ g. Click OK. This step maps the authoring template and presentation template together.
You are placed on the Manage Template Mappings pane. Here you can see that the
Authoring Template Training / HR Policy Section, is mapped to the Presentation
Template Training / Landing - Internet. Now, you have six template mappings.
__ h. Click Add.
__ i. Select the radio button next to HR Policy as the authoring template.
__ j. In the Presentation Templates section, select the radio button next to Landing -
Internet.
__ k. Click OK. This step maps the authoring template and presentation template together.
You are placed on the Manage Template Mappings pane. Here you can see that the
Authoring Template Training / HR Policy, is mapped to the Presentation Template
Training / Landing - Internet. Now, you have seven template mappings.
__ l. Click OK.
8-34 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ m. Examine the mappings. You can see the two new mappings added to the list.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-35
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
8-36 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. Go to the Project Items section. All of the items might still have a status of Publish
Pending. Wait a few moments and click Refresh. The items in the project should have a
status of Published. If not, click refresh again.
__ h. Click Close.
__ i. Logout of WebSphere Portal.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-37
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
8-38 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-39
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
8-40 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-41
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ i. Go to the List Paging Options section. In the Results per page field, enter: 100
__ j. Go to the List Presentation Markup section. Select the box next to Show header,
footer, and separator fields for each result design.
__ k. In the Header 1 field, enter the following markup:
<ul><li>
__ l. In the Result design 1 field, enter the following markup:
[Placeholder tag="titlelink"]
8-42 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-43
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. Click Edit.
__ c. In the Body field, click the [ ] Insert Tag icon.
8-44 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ b. Click one of the resource-rendering content items under Work, Pay, or Leave. For
example, click Leave HR Policy 1. The PDF document opens in the browser.
__ c. Close the preview page.
__ 4. Approve all of the items in the project.
__ a. Back in the Add HR Policies project, go to the Project Items section.
__ b. Select the box next to all of the Project Items and click More > Approve.
__ c. After you get the message that indicates that all of the items are published, your project
is published. However, the Project Items still have a status of Publish Pending, which
means the screen did not refresh. Click Refresh. The Project items now have a status of
Published. You can see the version information also.
__ d. Click the Open site menu icon and click Home.
__ e. Click Business Support.
__ f. On the right, click HR Policies on page 2. The HR Policies content is now being
displayed on the site. You can see the navigator component which is displayed as an
ordered list.
__ g. Click Leave HR Policy 1. The PDF document opens in the browser.
__ h. Click the back arrow to go back to the Portal page.
__ i. Logout of WebSphere Portal.
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-45
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
End of exercise
8-46 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 8. Working with drafts, workflows, and projects 8-47
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
8-48 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 9. User access and security
Estimated time
00:45
Introduction
In this exercise, you gain experience by creating confidential items and then
verify that are, or are not, visible based on user role.
Requirements
To complete this exercise, you must complete:
• Exercises 1 -8
Items are named with a suffix to distinguish the type of entity. Here is a summary of the names and
their corresponding entity type:
• Confidential_SA: Site Area
• Confidential_AT: Authoring Template
• Confidential_PT: Presentation Template
• Menu - Confidential: Menu component
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
9-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
9-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ f. On the Properties tab, go to the Access section and set the following access controls:
• Clear all Inheritance check boxes.
• Grant contributor access to the Executives group. Still in the Access section, in the
left column, find the row that is labeled Contributor. In the column that is labeled User
Defined, click Grant Contributor Access.
• On the Directory Search pane, type Executives. Be careful to select the group
indicated with an icon of three people, rather than the single user. Click Add to move the
Executives group into the Selected names column. Click OK.
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
• Click Add.
9-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ i. On the Default Content Properties tab, go to the Workflow section and disable
workflows. Clear the Enable workflow for items that are created with this authoring
template check box.
__ j. Click Save and Close.
__ 5. Create a content item based on the Confidential_AT template.
__ a. Select New > Content > Training/Confidential_AT.
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
9-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 7. In the presentation template, click the Properties tab. Expand the Access section, and set
the following access controls:
__ a. Clear all Inheritance check boxes.
__ b. Grant contributor access to the Executives group. Still in the Access section, in the
left column, find the row that is labeled Contributor. In the column that is labeled User
Defined, click Grant Contributor Access.
__ c. On the Directory Search pane, type Executives. Be careful to select the group
indicated with an icon of three people, rather than the single user. Click Add to move the
Executives group into the Selected names column. Click OK.
9-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ d. On the Manage Template Mappings pane, verify that the Confidential_AT
authoring template is mapped to the Confidential Presentation Template. Click
OK.
__ e. Under Site Area Properties, for the Rendering Behavior, select Render the default
content as a child of this site area.
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ f. Next to Default Content, click the Select Default Content link. Go to Libraries >
Training > Home > Confidential_SA. Select the Confidential Content 1 content
item that was created earlier. Click OK.
9-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. Provide the Name Confidential Content 2 with some content in the Body field
such as Extra vacation days for everyone.
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ f. Add the following markup to the Results design to display links to the confidential
content items. You can copy this text or use the Insert Tag method.
[Placeholder tag="titlelink"]
9-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. In the HTML Element section, at the end of the HTML Markup field, reference Menu
Confidential by adding this text.
[Component name="Training/Menu – Confidential"]
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
9-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ e. n the Templates center column, select mySection as the page template.
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 3. On the far right column, click the Default site area.Edit icon (a pencil).
9-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. Select Confidential_SA item as the web content to associate with the page and click
OK.
9-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ e. Click OK.
__ f. From the Edit Mode selector, disable edit mode.
__ 7. Modify the resource permissions.
__ a. Click Administration menu (wrench icon) > Portal User Interface.
__ b. Go to Manage Pages.
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. Go to the Content Root > Home page and locate the Confidential page entry.
__ d. For the Confidential page, select the Set Page Permissions (the key icon).
__ e. In the Allow Inheritance column, clear the User role and Privileged User role.
__ f. Click the third column Edit Role for the User role.
9-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 12. On the Resource Permissions pane, click Apply. Confirm the request. Click Done.
__ 13. Verify the new page.
__ a. Click Site > Home.
__ b. Verify the new Confidential tab on the web site.
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
9-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ 2. Verify access to confidential items. Click the Confidential tab.Verify that you can see the
Confidential content and menu.
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-25
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. Create a third confidential item with the name Confidential Content 3 and some
text in the Body field.
9-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ e. Click Confidential Content 3 in the menu to verify that you see the content on that
page.
__ f. This content confirms that the Executive user has appropriate visibility and permission
to create new inline content.
__ 4. Log out of the portal.
__ 5. Now log in as Writer with the password Writer to verify that confidential material is not
visible.
__ a. Go to Site menu > Home.
__ b. Verify that the Confidential content is not visible.
__ f. Go to Libraries > Training > Presentation Templates and verify that you do not see
the Confidential presentation template
__ g. Go to Libraries > Training > Components and verify that do not see the Confidential
menu.
__ h. Go to Libraries > Training > Content > Home and verify that do not see the
Confidential_SA site area
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-27
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ i. On the Library Explorer page, go to Item Views > All Items > All > Content and verify
that you do not see any of the confidential content items.
End of exercise
9-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 9. User access and security 9-29
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
9-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 10.Adding CSS to your website
Estimated time
00:30
Introduction
Responsive Web Design provides content parity between mobile devices
and desktop channels, which enhances user experience and brand
consistency. Seamless changes in screen size, from small to large, are now
possible while the order of the content is maintained. Content maintenance is
simplified by having one site that is represented by one set of assets.
To assist with making the elements of a page responsive to various widths,
relative width CSS classes have been added to the theme layouts. These
classes are marker classes only. There are no styles that are defined for
these classes by default. They are there on the containers, rows and
columns, of the layouts so that you can define your own styles that are
associated with the classes as needed to make your page elements
responsive to various widths.
Requirements
To complete this exercise, you must have:
• Exercises 1 through 9 completed
© Copyright IBM Corp. 2015 Exercise 10. Adding CSS to your website 10-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Hint
You might already have the Firefox browser opened to WebSphere Portal from an earlier exercise.
10-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ h. You get a message that indicates CSS was saved under Training. There is also a
warning message, which is safe to ignore. Later in the exercise, you create a content
item. i
__ i. Click Content. A site area that is named CSS should now exist in the Content view.
© Copyright IBM Corp. 2015 Exercise 10. Adding CSS to your website 10-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ f. Go to the Item Properties section. For the Location options section, select Selected
locations.
__ g. Click Add.
__ h. Select the box next to CSS and click OK.
10-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ i. Verify that you see the CSS Location with the Path /Training/CSS/.
__ j. For the Choose saving option for author section, select No option (automatically
save item to all selected locations for which the user has contributor access).
__ k. Click Manage Elements.
__ l. In the Element Manager pane, make the following changes:
- For Element type, select HTML.
- In the Name field, enter: Styles
- Click Add.
__ m. You should see the element, Styles, which is listed under the Element type section.
Then, click OK.
© Copyright IBM Corp. 2015 Exercise 10. Adding CSS to your website 10-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
10-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 10. Adding CSS to your website 10-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ h. Click OK. Verify that the Child Template Mappings has the Training / CSS Authoring
Template mapped to the Training / CSS Presentation Template.
__ i. Click Save and Close. You see a warning message that is safe to ignore. The rendering
behavior needs a default content. In the next section, you create a content item.
10-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 10. Adding CSS to your website 10-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
End of exercise
10-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 10. Adding CSS to your website 10-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
10-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 11.Working with the Content Template
Catalog and Site Builder
Estimated time
01:30
Introduction
The Content Template Catalog (CTC) is a suite of assets that accelerate the
process of building a website. It includes common page templates, content
types and design elements; making it possible to build a basic site very
quickly with little or no customization.
You should also install the CTC with Site Builder so you can build sites based
on CTC components.
Site Builder is an application that you can use to create site templates or
section templates for use with IBM WebSphere Portal. Installing CTC and
Site Builder together offers you the widest choice of website designs. After
you install Site Builder and set up access for administrators and website
creators, they can log in to WebSphere Portal and go to the Site Builder page
to access the features of Site Builder.
Requirements
To complete this exercise, you must have:
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
11-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Hint
You might already have the Firefox browser opened to WebSphere Portal from an earlier exercise.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ f. Click OK to activate the page. The status for Applications is now Active.
__ 3. Create the Cycling Club site with a landing home page.
__ a. In the menu at the top, click the Applications icon (the pages).
__ b. Click Site Builder. If you do not see the Site Builder link, make sure the Applications
page status is Active.
11-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Information
You are placed on the main page for Site Builder. You can see that there are a set of CTC
compatible Site Builder templates that are displayed on the page. From here, you can manually
create sites and section templates, and import templates. You can also use a set of wizards to
guide you through the creation of Site Builder templates, and the creation of sites and sections
using those templates.
Templates are available to create empty sites from scratch or with ready to use content. The
templates are based on known practices, and allow you to get a fast start with a solution. The
template can be changed, edited, duplicated, and exported to other environments.
__ c. Scroll to the bottom of the page to the Site with Home Page Template section. With the
Site with Home Page Template wizard, you can create a basic empty site with a landing
page, where site users start browsing the website. You can see that 1 page is to be
created by using this template, the landing page.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. On the Name Your Website page, you provide details on the name of your web site and
URL name. The template creator wizard provides default settings which you can modify.
Next to each field you can get details about the field. At the end of the Unique site name
field, click the ? icon.
__ f. You can see a window appears providing details about the field. When completed, click
the X to close the window. Feel free to examine details for any of the remaining fields.
11-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. In the Name Your Website page, make the following changes:
- In the Unique site name field, enter: Cycling Club
- In the Site title field, enter: Cycling Club
- In the Friendly URL name field, enter: cclub
- In the Description field, enter: The Cycling Club site.
__ h. Click > to move to the next page in the wizard.
Hint
You can also click the page name, such as Content Library, to move between the pages.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ i. When you create a site by using Site Builder, a content library is created by default. In
the Select a Library to Store Content page, make the following changes:
- Leave the option Create a content library selected
- In the Unique library name field, enter: Cycling Club
- In the Description field, enter: Cycling Club content library
11-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ n. A message appears indicating the site is being validated on the server. The message is
visible until the validation completes. Then, on the right, you can observe the creation
status of the website. You can see the status is currently in progress. There is one page
that must be created. Observe the output as the site is created.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ o. After a few moments, you can see the status is Completed. The site Cycling Club is
completed. You can go to the site from the status area or you can access the site from
the site menu.
__ b. You can see the website and the landing page listed that you created. From the Edit
Mode selector, you can see that edit mode is inactive, or off. Click the Edit Mode toggle
to turn on editing, or activate editing.
__ c. The landing page contains help text to guide you through the process of adding text and
images directly into the page. To enter a description for the site, hover your mouse over
Enter promotion description and click in the Description field.
__ d. In the Description field, enter: Cycling Club
__ e. Next, insert an image for the site. To the right, click Insert promotion image.
__ f. In the Image window, click Upload. Go to C:\Labfiles\CTC, select cycle.jpg and
click Open.
11-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. In the Image window, you can see the image that is to be displayed. You can change the
dimensions of the image if needed. Click Save.
You can see how the landing page is updated with the description and image.
__ 5. Add a section to the website by using the Events page template. The Events page template
contains an index pages that shows all the events and a details page that shows information
about each event.
__ a. In the toolbar menu, click Create > Page.
__ b. In the Templates section, in the Filter templates field, enter: Eve
__ c. Select Events.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ d. In the Page Settings section, in the Page title field, enter: Meetups
__ e. Examine the Friendly URL name that is created. For the Page insertion point, select
Child of current page.
__ f. When completed, click Create Page.
__ g. When the page is created, a message appears and asks what you want to do next. You
can select one of the options available or close the window. Next, you edit the page
information. Close the Create window by clicking the X in the upper right of the window.
__ h. Go to the Events portlet. In the Title field, enter: Meetups
__ i. In the Body field, enter: Find meetups in your city
__ 6. Create an event.
__ a. Click Create new event.
11-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ c. Click Create.
__ d. Enter a start date and click Save. Then, enter an end date and click Save. Choose dates
in the future.
Hint
When you click in the enter start date or enter end date fields, a window appears with a drop down
menu. Click the drop down and a monthly calendar appears where you can select a date.
__ e. Scroll down to the Fields displaying in other views section. In this section, you can
update any of the fields. Click in the Feature Image field.
__ f. In the Image window, click Upload. Go to C:\Labfiles\CTC, select pgh.jpg and
click Open.
__ g. Click Renditions to expand the section. Here you can add other images to be rendered
specifically for the desktop, tablet, or smartphone. Keep the default Desktop selected.
__ h. Click Save to upload the image.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ i. Hover your mouse over the Pittsburgh Meetup portlet and a window appears. You can
see that Pittsburgh Meetup is currently in draft form. Click Publish.
__ j. Go to the top of the page. In the breadcrumb trail, click Meetups. Scroll down to the
events and you can see the Pittsburgh Meetup listed.
__ 7. Add a page component. Change the recent event list into an events slideshow component.
__ a. Go to the Sidebar Recent Slideshow List portlet. Click the portlet menu and click Delete.
11-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ f. The content is added to the top of the page. On the right, click the portlet menu and click
Move Down. Continue to move the content down and move it to the right until it is in the
spot where you deleted the previous portlet.
__ 8. Currently, meetups are displayed in a index flat list by using the List Presentation
component. Create a calendar list to display a list of date-based content in a calendar
format by using the list builder.
Information
The list builder is an example of how to create a specialized content authoring interface using inline
editing and the Web Content Manager REST API. It uses "ItemRepository.js" which is part of a
JavaScript API for sending requests to the Web Content Manager REST API which is contained in
the inplace edit WAR on the server.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. In the Configure the list section, you can see the List Presentation Component is set to
Index Filter List Design for Scheduled Events. To change the list presentation
component, click in the field with definition.
11-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ k. You can see the events listed in a calendar form. You can modify the dates of a meetup
by using the calendar. Select the start of the Pittsburgh meetup and drag it to start a
week earlier.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
11-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ g. When you create a site by using Site Builder, a content library is created by default. In
the Name Your Website page, make the following changes:
- Leave the option Create a content library selected.
- In the Unique library name field, enter: My Cycling Library
- In the Description field, enter: My Cycling content library
__ h. Click > to move to the next page in the wizard.
__ i. On the last step of the wizard, you can see the internet site template contains a full
hierarchy of pages. Place your cursor to the right of My Cycling Website. You can see
Edit is an option to edit the page attributes. Click Edit.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ j. The Page title and Friendly URL name fields have the information that you provided in
step 1 of the wizard. The page is based on the Landing Home template. From this pane,
you can make changes to any of your initial settings. Change to Friendly URL name to
mycyclingsite
11-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ k. Click Content and More to expand these sections. You can see the options selected
and available for each of these sections.
__ l. You can see the Page template is the Landing Home template. You can click the down
arrow to see all of the available templates. When completed, click OK.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ m. On the Select Pages to Include in Your Website pane, you can choose what pages are
included in your website. By default, all pages are selected. Clear the box next to
Products to remove the pages. This removes the Products page and all the Products
child pages.
11-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ o. On the Site Experience tab, you can select a style. You cannot change the theme or
profile for the site but you can change the default settings after the site is created. Select
one of the styles that is listed.
__ p. Click the Access Control tab. On the Access Control tab, you select users and groups
that you can give access to the site as a user or administrator.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ t. You can see the wspadmins group now has Administrator access to the website. Now
you are ready to create the site. On the right, click Create Site.
11-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-25
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ v. A message appears indicating the site is being validated on the server. On the right, you
can observe the creation status of the website. You can see the status is currently in
progress. There are 33 pages that must be created. Observe the output as the pages
are created.
__ w. After a few moments, you can see the status is Completed. The site My Cycling Website
is completed. You can go to the site from the status area or you can access the site from
the site menu.
11-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ c. Under Events there are two underlying pages, Conferences and Briefings. Hover your
mouse over Events to see the two pages.
__ d. Continue to explore the various pages. You see that the About Us and Media pages
have three underlying pages each. The remaining pages each have two underlying
pages.
Now that you created the site, you can customize the site.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-27
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ d. Continue to scroll through the page. Notice the Automatic Landing Page (Specified)
portlet that shows a summary of the underlaying pages.
11-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ c. Click Create.
__ d. A message confirms the project is created and the project is empty. In the top toolbar
you should now see this project name.
The Projects panel provides the details and gives you options to Publish, Manage
Project, and Exit Project There is also a More option. In the project window, click More
to see the options to add to the project, delete the project and create a project template
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-29
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
from it with all its current entries, it may be a good start for future modifications. Do not
click any options under More at this time.
11-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ b. In the Templates section, the Filter templates field shows Eve from the filter you applied
earlier in the exercise. The Events and Events Calendar templates are listed. Select
Events.
__ c. In the Page Settings section, in the Page title field, enter: Cycling Events
__ d. Examine the Friendly URL name that is created. Change the Friendly URL name to:
Cycling-Events
__ e. Keep the default setting of Last child of current page.
__ f. When completed, click Create Page.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-31
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ h. This panel shows you the general basic information about this page which you could
directly edit.
- You can see the location, page URL, and vanity URL.
- It also has the actions in the upper right to publish the page, as it is in draft now, and
delete it.
- On the left you also have direct access to the page Layout, Style, and Vanity URLs.
- The Details tab shows some more details on your page, such as the project, theme,
and profile used.
11-32 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ k. Explore the Manage Page Properties options. Take a look at the various tabs. The
General tab shows the display and friendly URL names. The Cache tab sets the caching
scope for a single user, across users, and an expiration interval. The Security tab is
where you define author and owner selections, as well as workflow settings for this
page. The Localization tab is for page translations. Finally, the Advanced tab shows
theme and profile selections, allowed portlets control, page versions and more.
__ l. Click Cancel.
__ m. In the navigation menu on the left, click Layout.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-33
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ o. After the layout is changed, you see a message that indicates the layout has one column
taking up 100% of the available space. On the right, a message indicates there are three
items hidden for the current layout. For now, keep this layout. You observe the hidden
items in the page and modify the layout again later.
11-34 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ q. Select any of the styles. After you select a style, a message indicates that the style has
been changed.
__ r. In the navigation menu on the left, click Vanity URLs. From here, you can assign a
specific short vanity URL names for your page and in specific languages. If needed, you
can control what content to show in that page and whether to enforce authentication.
__ s. In the Vanity URL Name field, enter: cyclev
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-35
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Information
You can associate vanity URLs with portal pages and labels. Vanity URLs are short URLs that
people can easily remember. They are shorter than full WebSphere Portal URLs. They are
sometimes also called marketing URLs. You can publish vanity URLs for marketing campaigns
through different channels, such as email or print. This way, you can use vanity URLs to direct
customers to a specific portal page or content item. Interested site visitors who want to view your
campaign can then remember or copy the short vanity URL and type it into the browser address
field.
__ t. Click Save. You see a confirmation message that the vanity URL was created
successfully. You can continue creating more vanity URLs if needed. For example, you
can create one for each language. Your page is now configured and you can see the
vanity URL listed.
11-36 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ b. On the Cycling Events page, you can configure promotions, a section header, a search
filter, events corresponding to the filter results, as well as social connect and recent
events. You can see the events portlet and the upcoming items index list portlet only.
__ c. Click Show non-displaying fields. You can see the list of fields that are displaying in
other views and the non-displaying fields on the page.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-37
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ d. On the page, you can only see the events and upcoming items index list portlet. The
non-displaying portlets, such as social connect and recent events, are set this way due
to the layout that you selected. When the 1 column layout is selected, there are three
items hidden for the current layout. To see these items, change the layout. In the toolbar
menu at the top, click Page.
__ e. In the navigation menu on the left, click Layout.
__ f. Scroll down and select CTC: 2 column with header and follower.
__ g. At the top, you can see the message that the layout is changed and there are no hidden
items. Close the page window. Scroll through the page and examine all of the portlets
that are now visible.
__ h. Hover over the area until you see the word Description. In the Description field, enter:
Cycling Events
__ i. Next, insert an image for the site. This time, use an existing promotion image in the CTC
Content library. In the upper right of the portlet, click the Edit item icon (the pencil).
11-38 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-39
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
11-40 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ b. You can see on the Content tab the Widget ID. The Index Page Signpost and
Promotions Slideshow content item that is used to display a slideshow of items that you
want to promote on your site.
__ c. Go to the Transition section.
__ d. Here you select the type of transition to apply between the slides. You can see the
default setting is Crossfade. From the menu, select Wipe Left.
__ e. Go the Slide Duration section.
__ f. Change the slide duration to 3000 miliseconds. Now, the site promotions will change
faster, every 3 seconds.
__ g. Go to the Controls section.
__ h. You can see the controls are set to Previous, Numbers, and Next by default. From the
menu, select Previous, Play/Pause, Numbers and Next.
__ i. Go to the top or bottom of the page and click Save and Close.
__ 8. Verify the changes to the behavior of the promotions.
__ a. From the Edit Mode selector, turn off editing, or deactivate editing. To turn off editing,
click the box next to Edit Mode.
__ b. You should see your site promotions displayed using the wipe left style transitions, one
slide replaces another slide by moving from one side of the frame to another, starting on
the left. The site promotion changes every 3 seconds and contains a left/right controls at
the bottom.
__ c. From the Edit Mode selector, turn on editing, or activate editing. To turn on editing, click
the box next to Edit Mode.
__ 9. Work with the draft site and publish your changes.
__ a. In the menu in the upper right, click the down arrow next to My Cycling Website V1.1.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-41
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. In the menu in the upper left, click the Open site menu icon and then click My Cycling
Website. This is your current, published version of the website.
__ d. Hover over the Event page. You should only see the two pages, Conferences and
Briefings.
__ e. Next, go back to your draft project. In the menu in the upper right, click the down arrow
next to Published Site.
__ f. Click My Cycling Website V1.1.
__ g. Hover over the Event page. You see the three pages, Conferences, Briefings, and
Cycling Events.
11-42 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ h. The Cycling Events page is still in draft form and part of your project. In the upper right,
click Menu. If wanted, you can preview the page as a specific user and as an
unauthenticated user.
__ i. For this exercise, you can assume that everything is working properly and you are going
to publish the project with all of the items. In the toolbar menu, click Projects.
__ j. On the pane, you see your current project with all of the items that are part of the project.
You can see the items created during the page creation and the edits. It also shows the
corresponding workflow status. The screen capture in the book is large and can not
display all of the content. Examine the content on your course image.
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-43
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ l. In the Project Items section, you can see content items with various states, such as draft
and publish pending. You want to approve all of the items. Normally, you would select
each content item in draft status, review it, and approve each item individually. However,
for this exercise, you use a fast track method. In the Project Items sections, click 50 to
display all of the items on the page.
__ m. Select the box for Select All to select all of the items.
__ n. Click More > Approve. This actions moves all of the content items to the status Publish
Pending. This status means that the items are ready to be published, but waiting for the
project to be published.
__ o. Click Publish Project.
Hint
If you do not see the option Publish Project, make sure that there are no content items still in draft
form. If you see content items in draft, approve the items, which moves them into the status Publish
Pending.
__ p. All of the changes for your next version of My Cycling Website V1.1 are published.
Hover over the Event page. You see the three pages, Conferences, Briefings, and
Cycling Events. The Cycling Events page is displayed and no longer in draft form, the
parenthesis are removed.
You have successfully created and published a new version of your My Cycling Website
where you added the Cycling Events page.
__ q. Logout of WebSphere Portal.
End of exercise
11-44 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 11. Working with the Content Template Catalog and Site 11-45
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
11-46 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 12.Working with the IBM Mobile Preview
Estimated time
00:30
Introduction
The IBM Mobile Preview for Digital Experience Software is a tool that allows
you to preview your Portal pages as a mobile user from a variety of virtual
mobile devices.
Requirements
To complete this exercise, you must have:
• Content Template Catalog V4.3 and Site Builder installed
• The Mobile Browser Simulator installation binaries
• Completed Exercise 11
© Copyright IBM Corp. 2015 Exercise 12. Working with the IBM Mobile Preview 12-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Hint
You might already have the Firefox browser opened to WebSphere Portal from an earlier exercise.
12-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Information
The IBM Mobile Preview for Digital Experience Software requires WebSphere Portal 8.5, Combined
Cumulative Fix 01 or later.
The download package contains the following items:
• Lic_en.txt: License that governs the terms and conditions to use the application
archive.
• mobile-preview-8001-v1.1.paa: The Portal application archive to be installed on
WebSphere Portal v8.0.0.1 servers.
• mobile-preview-8500-v1.1.paa:The Portal application archive to be installed on
WebSphere Portal v8.5 servers.
• mobile-preview-readme.pdf: Instruction manual.
• notices.txt: Notices and information for the application archive.
The IBM Mobile Preview for Digital Experience Software Portal application archive file is on the
course image in the C:\Software folder.
© Copyright IBM Corp. 2015 Exercise 12. Working with the IBM Mobile Preview 12-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ d. When completed, scroll through the results. You should see a message that indicates
BUILD SUCCESSFUL.
__ e. Now that the IBM Mobile Preview is installed, you must deploy the application. To deploy
the IBM Mobile Preview, enter the following command:
ConfigEngine.bat deploy-paa -DappName=mobile-preview
-DWasPassword=wpsadmin -DPortalAdminPwd=wpsadmin
__ f. When completed, scroll through the results. You should see a message that indicates
BUILD SUCCESSFUL.
Reminder
You can log in to the administrative console as wpsadmin and examine the application.
• Open a Firefox browser and go to the following URL:
http://localhost:10041/ibm/console
• In the login area, enter wpsadmin as the user ID and wpsadmin as the password. Click
Log in.
• Click Applications > Application Types > WebSphere enterprise applications. You
should see the Mobile_Preview application listed with a Started status.
12-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Information
The final step is to add the Mobile Preview module to the deferred section of all profiles where you
would like to enable IBM Mobile Preview for Digital Experience Software. This task has been
completed on the course image.
To access the profile files, a WebDAV client is used, such as AnyClient or Cyberduck. With
WebDAV for IBM WebSphere Portal, you can use standard operating system tools to create,
modify, and delete web content rather than the standard authoring portlet. For more information on
the IBM Mobile Preview for Digital Experience, see the following page:
https://greenhouse.lotus.com/plugins/plugincatalog.nsf/assetDetails.xsp?action=edi
tDocument&documentId=BE1D7AA2A79761C485257CF900607A35
© Copyright IBM Corp. 2015 Exercise 12. Working with the IBM Mobile Preview 12-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. In the menu in the upper right, click Actions. You should see Preview with the option As
Mobile User. .
12-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ m. In the menu in the upper right, click Actions > As Mobile User. The Mobile Browser
Simulator opens a the Firefox browser window with the default of an iPhone 5 as the
smartphone device.
Information
The Mobile Browser Simulator is a web application that helps you test mobile web applications
without having to install device vendor native SDK. The Mobile Browser Simulator contains a frame
that emulates a target device. It shows you what your page looks like inside the mobile device
browser. You can switch the frame to emulate different screen resolutions and form factors,
including BlackBerry 6 and 7, Android, iPad, iPhone, Windows Phone 7, and Windows Phone 8
mobile devices.
You can use the Mobile Browser Simulator to render your web applications on different mobile
devices. To render your web applications with the appropriate style sheets and theme, you must
enable user agent switching. The Useragent Switcher Extension is a browser extension that
provides the user agent switching feature.
__ n. The Mobile Browser Simulator shows you the primary version of the page instead of the
device version. To enable the device version, select the box next to Enable Useragent
Switching.
© Copyright IBM Corp. 2015 Exercise 12. Working with the IBM Mobile Preview 12-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ o. A browser extension must first be installed before testing. Click Install Browser
Extension.
__ p. In the Firefox pop-up, click Allow and wait for the download to complete. Then, click
Install Now.
__ q. Click Restart Now to restart the browser windows.
__ r. Close the Mobile Browser Simulator window.
__ 6. Targeted content displays different content to different user segments in a content spot of
web content viewer. Before you can create the targeted content, you need to create
segments for personalization. When you target content to a segment based on device
classes, ensure that the device classes are installed and enabled. By default, the
smartphone and tablet device classes are already defined. You can use these device
classes in rules that you create.
__ a. In the Portal browser, click the Applications icon (the pages) > Personalization.
__ b. Click Business Rules.
__ c. In the Navigator, click New > Rule.
__ d. For the New Rule field, enter: User by device
__ e. For Rule Type, select Profiler.
__ f. In the rule definition box, click Profile.
__ i. Click attribute.
12-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 12. Working with the IBM Mobile Preview 12-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ x. Scroll to the bottom and click Save. In this step, you created two segments, Smartphone
User and Tablet User. Each segment views content through different devices.
__ 7. Add web content that can show different contents depending on the device types.
__ a. In the menu in the upper left, click the Open site menu icon and then click My Cycling
Website.
__ b. This time, you make this change directly to the website, not within a project. Click
Events > Cycling Events.
__ c. From the Edit Mode selector, click the Edit Mode toggle to turn on editing, or activate
editing.
__ d. In the toolbar, click Create > Content.
__ e. Click Teasers.
__ f. Click Teaser.
__ g. Click Add To Page. The teaser content is added to the top of the page above the
promotions.
__ h. Close the content window.
__ 8. Edit the teaser.
__ a. Replace the default text in the teaser with the following text:
Download the latest Mobile applications now to find out about Cycling
Events.
__ b. Change the font size to 12.
__ c. Bold the text.
__ d. Click outside the teaser text.
12-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 9. You can add targeted content to a spot to match the best content with the most appropriate
segments or audiences. You can also hide the spot for particular user segments. Add
targeted content to a spot.
__ a. Hover your mouse over the teaser. You can see the teaser is published. Click Configure
Spot.
__ b. Next to Configure Spot, click the drop down and select Targeted Content.
__ c. Rather than showing the content item that you selected, you can hide the web content
viewer from the selected user segments. Click Hide Spot.
__ d. To select the target audience for the content item that you added, click Add Segment.
© Copyright IBM Corp. 2015 Exercise 12. Working with the IBM Mobile Preview 12-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ e. The three segments with personalization that you added by using Business Rules are
listed. Click Desktop User.
__ f. Click Done.
__ g. You can see the segment defined for the hidden spot is Desktop User. Click Done.
12-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ h. You can see the summary of the updated configuration. You can apply this to any
content and with any segments configured in your environment. Click Save.
__ i. As expected the content is now hidden, as you are working on a desktop device.
To see the content in the teaser, hover your mouse over the area. In the window, click
Show.
__ j. From the Edit Mode selector, click the Edit Mode toggle to turn off editing, or deactivate
editing. The teaser is not visible in the desktop view.
© Copyright IBM Corp. 2015 Exercise 12. Working with the IBM Mobile Preview 12-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 10. Preview the teaser content by using the Mobile Browser Simulator.
__ a. Click Actions > As Mobile User.
__ b. Wait for the Mobile Browser Simulator to load. Then, you can see the teaser content.
It shows your mobile targeted content again, as the server recognizes the device that is
used. It also has changed the whole navigation, so with thick fingers you can still
navigate easily. There are different options available, such as showing the code of your
current page to read it with an external device and rotate it.
__ c. Click Rotate.
__ d. You can test with other devices. Click Add Device. Select any of the preconfigured
devices, for example, click iOS - iPad > Apple iPad 4. You can see the teaser content.
__ e. You can remove any of the devices by clicking the x in the upper right of the device.
__ f. Continue to explore other devices. When completed, close the Mobile Browser
Simulator Firefox browser window.
__ g. Logout of WebSphere Portal.
End of exercise
12-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 12. Working with the IBM Mobile Preview 12-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
12-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Exercise 13.Using the IBM Script Portlet
Estimated time
01:00
Introduction
IBM Script Portlet for WebSphere Portal is a tool that enables a script
developer to quickly develop portlets for WebSphere Portal without the need
to know anything about Java, portlets, or the JSR 286 portlet specification.
This tool allows users to develop portlets by using just their knowledge of
scripting languages like JavaScript, CSS, and HTML.
Two approaches for building applications with Script Portlet are available.
You can build an application in the browser with the Script Portlet Editor. You
can also build an application on your workstation with your preferred tools,
then use the sp push command to move the application to the server. Both of
these approaches are explored in this exercise.
Requirements
You can complete this exercise after completing Exercise 7: Custom
authoring features. The IBM Script Portlet 1.3 and the Script Portlet
Samples are also required. Both are downloaded to the course image.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Important
The Script Portlet 1.3 files are already downloaded to the course image. In this section, you run the
ConfigEngine tasks to install and deploy the scriptportlet-app-1.3.0.paa.
__ 1. Start WebSphere_Portal server if it is not already started.
__ a. From a command window, go to C:\IBM\WebSphere\wp_profile\bin
__ b. Enter the command: startServer WebSphere_Portal
__ 2. Use a ConfigEngine task to install the IBM Script Portlet on your portal server.
__ a. From a command window, go to C:\IBM\WebSphere\wp_profile\ConfigEngine
__ b. Type the following ConfigEngine command all on one line.
ConfigEngine.bat install-paa
-DPAALocation=C:\Labfiles\ScriptPortlet-1.3.0\scriptportlet-app-1.3.0.paa
-DWasPassword=wpsadmin -DPortalAdminPwd=wpsadmin
13-2 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. Wait until you see the task complete with a BUILD SUCCESSFUL message.
__ e. This task takes longer to finish than the installation task. Wait a few minutes until you
see the task complete with a BUILD SUCCESSFUL message.
__ 3. Restart the WebSphere_Portal server.
__ a. From a command window, go to C:\IBM\WebSphere\wp_profile\bin
__ b. Enter the command: stopServer WebSphere_Portal -user wpsadmin
-password wpsadmin
__ c. Wait for the server to stop completely.
__ d. Enter the command: startServer WebSphere_Portal
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Information
Developer mode
You might use the developer mode to improve start performance. When developer mode is
enabled, a list of applications to exclude from auto-starting is generated. The Script Portlet must be
removed from this list. You must edit the wp.base_TargetMapExclList.properties file by
adding the line scriptportlet. For more details, read the documentation in the WebSphere
Portal 8.5 IBM Knowledge Center article, Installing the IBM Script Portlet,
http://www.ibm.com/support/knowledgecenter/SSHRKX_8.5.0/script/script-po
rtlet/installing_on_the_base_portal.dita.
13-4 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Important
__ 1. If necessary, log in to the portal with user ID wpsadmin and password wpsadmin.
__ 2. Create an empty page for the Script Portlet.
__ a. Click the Open site menu icon and click Manage Content.
__ b. Click the Open toolbar icon if the toolbar is not already visible.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
13-6 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ c. You now see only the Script Portlet application. Click the + in the upper right corner of
the application icon.
__ d. Wait until you see the message: “The application 'Script Portlet' has successfully been
added to the page 'Developing Script Portlets'”. Close the Applications pane.
__ e. You now see the empty Script Portlet on the Developing Script Portlets page.
__ 4. Use the Script Portlet Editor to create an application. The application that you are going to
create uses the OpenStreetMap website (www.openstreetmap.org) to render a map of a
location whose latitude and longitude you provide. The data that is provided by
OpenStreetMap is available under the Open Database License.
__ a. Click Edit on the portlet to start the Script Portlet Editor.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
13-8 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Note
HTML code
The code displays a heading for the portlet, and then defines two buttons. One button calls the
showAustin() function when it is clicked, the other calls the showMarkham() function. Both of
these functions are defined in the subsequent JavaScript code.
__ d. Click Save in the editor to preview. You see only the heading.
__ e. Click the CSS tab, and type in the following code, or copy the code from
C:/Labfiles/scripts/CSS.
#block1 { color: blue;
font-family: tahoma;
}
#block2 { color: brown;
background-color: khaki;
border: 1px solid black;
font-family: tahoma;
}
#block3 { color: gold;
background-color: green;
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-9
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
font-family: tahoma;
border: 1px solid black;
}
#button {
font-weight: bold;
color: blue;
}
Note
CSS code
These CSS declarations define the style (font, color, and border) of the headings and buttons that
are referenced in the HTML code.
13-10 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ f. Click the JavaScript tab, and type in the following code, or copy the code from
C:/Labfiles/scripts/JavaScript.
function showAustin() {
location.href=
'https://www.openstreetmap.org/#map=15/30.40190/-97.71850';
}
function showMarkham() {
location.href=
'https://www.openstreetmap.org/#map=15/43.84879/-79.33829';
}
Note
JavaScript code
The JavaScript code defines two functions that are called showAustin() and
showMarkham().These functions are used to take the user to a new page by using the location
object. The hypertext reference href is assigned the URL for www.openstreetmap.org which
also contains the hardcoded latitude and longitude for Austin and Markham. This approach
transfers the user to the new page and keeps the original page in the history list of the browser. In
this way, the user can return by clicking the browser Back button.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-11
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ h. You now see the Company Site Maps portlet in the preview pane.
__ k. Click Save.
13-12 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ 5. Save the application into a IBM Web Content Manager library.
__ a. From the Script Portlet Editor, click Save as.
__ b. In the Save As dialog box, expand Script Portlet Library, click Script Portlet
Applications, and then click Save. This action stores the application in the IBM Web
Content Manager Content library.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-13
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. Verify that you go the OpenStreetMap webpage and a map of the IBM Austin site is
displayed.
13-14 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
Troubleshooting
If the browser hangs when trying to load the OpenStreetMaps page, click the browser Back button
and log out. Log in again as wpsadmin and click Click for map again.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-15
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ b. Click the Open toolbar icon if the toolbar is not already visible.
__ c. Turn on Edit Mode.
__ d. Click the Our Company tab to make it the current page.
__ e. Click Create in the toolbar, then click Page.
__ f. Select the Basic template, and add the properties for the new page.
• Page title: Maps
• Page insertion point: Next sibling of current page
__ g. Click Create Page.
__ h. Close the page creation pane.
__ 2. Click the Maps tab, and then open the toolbar and turn on the Edit mode.
13-16 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ c. You now see the Company Site Maps application. Drag the application to the Maps
page and drop it into the first column.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-17
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ d. Turn off the Edit mode, and you now see the Company Site Maps application in a
running state on the Maps page in view mode.
__ e. Test the application as you did before by clicking Click for map under each location.
Remember to click the browser Back button to return to the Maps page.
Troubleshooting
If the browser hangs when trying to load the OpenStreetMaps page, click the browser Back button
and log out. Log in again as wpsadmin and click Click for map again.
13-18 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
__ f. Wait until you see the message: “The application 'Script Portlet' has successfully been
added to the page 'Developing Script Portlets'”. Close the Applications pane.
__ g. By default, the Script Portlet is added to the first column underneath the Company Site
Maps application. Click the portlet menu icon for the Script Portlet and click Move Right
to move it into the second column.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-19
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ 2. Import an existing Script Portlet sample application. You are going to import an application
that is named Angular Contacts. This application is built with the AngularJS framework and
the Bootstrap CSS library. It is an example of a "single page application" where the
AngularJS framework dynamically loads the different views within a single index.html
page.
__ a. Expand the Actions menu on the empty Script Portlet and click Import.
__ b. In the Script Portlet Import dialog box, click the Import Zip tab, and then click Browse.
__ c. Browse to C:\Labfiles\samples
13-20 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-21
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ g. You can explore which files were imported by expanding the tree. When you are done
exploring close the Script Portlet Import pane.
13-22 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ h. Wait a few moments for the page to render, and you now see the imported application
on the page.
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-23
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
__ c. Expand the tree view on the left to examine which files are in the application.
13-24 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty __ e. The preview window shows the functioning application. You can test the search feature
by typing in a search string. Try typing Steve.
__ b. Click Save.
__ c. Close the Script Portlet Editor.
Information
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-25
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
• The AngularJS $http service is used to load the default JSON data file, contacts.json.
• Three simple AngularJS controllers are used for: the list view, the details view, and the
update view.
• Three local JS files are used, and when the files are running in Script Portlet they are
combined into a single resource by WebSphere Portal's resource aggregation feature
(available in version 8.5, CF03 or later). The following
data-scriptportlet-combine-urls attribute in the index.html file causes Script
Portlet to enable the combining of the three local application JavaScript files.
<html data-scriptportlet-combine-urls="true">
• The Bootstrap library is used for styling of the application UI.
13-26 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-27
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
• "portalPassword": "wpsadmin",
__ d. Save the file, and close Notepad++.
__ 4. Use sp push to create a script portlet application
__ a. Open a new command window, go to C:\sp_cmdln.
__ b. Enter the following command:
sp push -contentRoot C:\Labfiles\samples\jqplot_chart
__ c. The command was successful. However, if the command fails, it is helpful to view the
sp_cmdln.log file.
__ 5. Verify that the new application is now available in the Content tab.
__ a. If necessary, log in to the portal with user ID wpsadmin and password wpsadmin.
__ b. Click the Open toolbar icon if the toolbar is not already visible.
__ c. Click Create in the toolbar.
__ d. Click Content, and then click Script Portlet Applications.
__ e. You should see the jqPlot Chart application that you pushed to the server.
__ 6. Optional: Place the jqPlot Chart application on a page, and use the Script Portlet Editor to
explore its features.
13-28 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
Student Exercises
EXempty
Information
jqPlot Chart
This example shows a chart that is created with the jQPlot open source charting library. The data for
the chart in this example is defined right in the JS code. In a real world implementation, the data
would come from a REST service.
End of exercise
© Copyright IBM Corp. 2015 Exercise 13. Using the IBM Script Portlet 13-29
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
13-30 Developing Websites Using IBM Web Content Manager 8.5 © Copyright IBM Corp. 2015
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V10.1
backpg
Back page