3 Adding Content to A Page

Monica, the Vice President of Sales for Storefront, Inc., has decided that she needs a new business role page for her organization. A business role page is a page that is assigned to a specific role within the WebCenter Spaces membership. Every user belonging to that role—in this case, the Sales role—will automatically see the newly created business role page within their personal spaces. In other words, the page will be pushed to potentially hundreds of users, simply by assigning it to a single role.

Only WebCenter Spaces adminstrators can create a business role page, so Monica has asked her administrator to create a page called Sales (if you're curious about how a business role page is created, read through Section 1.2.3, "Create a Business Role Page"). She's also asked the administrator to grant her edit privileges on the page so she can add content that is relevant to her staff. Let's see how she goes about adding that content.

3.1 Step 1: Log On

To log on as Monica:

  1. Click the Login link in the Banner area.

  2. Enter the user ID Monica.

  3. Enter the password welcome1.

  4. Click OK.

The first thing you see when you log on is your personal space—specifically, the Welcome page:

Figure 3-1 Your Personal Space

Welcome page in personal space

The Welcome page describes tasks that are commonly performed within WebCenter Spaces, along with links to where those tasks are described in the WebCenter Spaces online help. By default, the Welcome Page also contains a Worklist area, which reflects notifications stemming from your company's workflow processes, as well as a Recent Documents area, which presents a handy list of the documents you've recently accessed within the WebCenter Spaces instance. We'll learn more about documents in the next step.

Notice the Sales page in your personal space, the business role page that the administrator created for you. You'll add some content to that page in a moment, but first you have to make sure that the document you want to add is in the right place.

3.2 Step 2: Upload a Document

In response to a request from the HR Director, you just finished describing the promotion structure for Sales in a Human Resources Guidelines and Process document. You know your team will be interested in this document, so it seems a likely candidate for your new business role page. To be able to add this document, you first have to make it available to WebCenter Spaces through the Documents service.

By default, your personal space does not display the Documents page, so you have to display it yourself. You can do this easily in just a few quick steps.

  1. Click Page Actions->Manage Pages:

    Figure 3-2 Manage Pages Dialog

    Manage Pages dialog

    Over time, it's likely that you'll visit and re-visit a tremendous number of pages. Some you'll use regularly, others infrequently, and some only once or twice. Leaving all these pages open as tabs within your personal space is probably not the most effective way to move among them. To help you manage your display, WebCenter Spaces lets you decide what you want to display through the Show Page column. In the Show Page column, the green checks indicate which pages are currently displayed as tabs in your personal space. To hide a page, simply click a green arrow to clear the check box.

  2. On the row for the Documents page, click Show Page:

    Figure 3-3 Making the Documents Page Available

    Making the Documents page available
  3. Click Close.

  4. Click Documents to display that page.

    The Documents page doesn't have much on it right now, just the Public folder. As WebCenter Spaces becomes more integrated in your daily life, you'll no doubt use the Create a new folder icon frequently to incrementally build your own folder hierarchy. For now, though, the Public folder is all you need. Documents that you intend to share with others must reside in your Public folder.

  5. On the Documents page, click the Public folder to select it, then click the Upload document icon as shown:

    Figure 3-4 Upload Document Icon

    Upload document icon

    Assuming your WebCenter administrator followed the steps in Chapter 1, "Preparing for the Tutorial", the document you want to add should be on a server available to you. Make sure you know where this document lives before proceeding.

  6. Click Browse and locate HR_Process_and_Guidelines.doc on the server.

  7. When back on the Upload Documents page, click Upload:

    Figure 3-5 The Upload Button

    The Upload button

    Because you highlighted the Public folder, the Word document is uploaded there.

Now that you've got the document where it needs to be, you're ready to add it to your business role page.

3.3 Step 3: Add Content to the Page

  1. In your personal space, click Sales.

  2. Click Page Actions->Edit Page.

    Your screen should look like this:

    Figure 3-6 Sales Page in Edit Mode

    Sales page in edit mode

    You are now editing the Sales page using the Oracle Composer. Among other things, the Oracle Composer allows you to add content to the page, change the layout, set properties for the page, and so on. We'll explore several of those options in the course of this tutorial.

    In this chapter, you'll first add a title to the page, then some content that you know your Sales staff needs: the Word document you just uploaded, a spreadsheet detailing Storefront's discount structure, and a carousel-style presentation of some photographs to liven things up.

3.3.1 Add a Title to the Page

We want the title of the page to appear at the top left. For this we'll need a text editor, which we can access through Oracle Composer's Layout component.

  1. Click Add Content:

    The component Catalog appears, as shown here:

    Figure 3-7 Component Catalog

    Resource Catalog

    The component Catalog (or simply, "the Catalog") provides you with a wide range of services and useful components, so you can create rich pages in a matter of minutes.

  2. Click Layout.

  3. Next to Text, click Add to add a rich text editor to the page.

    Figure 3-8 Adding a Text Editor

    Adding a text editor
  4. Click the X at the top right of the Catalog to close it.

  5. Click Edit Text to display the editor's full range of controls:

    Figure 3-9 Displaying the Edit Palette

    Displaying edit palette
  6. In the editor, highlight the default text "Enter your text here" and type Storefront Sales.

  7. Highlight this text and experiment with the controls to center the title, make it larger, change its color, and so on. When you have the title looking the way you'd like it to look on your page, click Done Editing.

    Figure 3-10 Exiting Edit Mode

    Completing the edit

Now let's add some "real" content to this page, in the form of a Word document.

3.3.2 Add a Word Document

The Human Resources Guidelines and Process document contains extensive information on the bonus structure and promotion requirements for the Sales team, so it's probably a good idea to add the document to this page.

  1. Click Add Content to re-open the Catalog.

    The Catalog is open to the component you last used, which was the Layout component. We don't need this component now; rather, we need to move up the folder tree so we can see the top level of the Catalog.

  2. Click the arrow in the upper left corner of the Catalog, which takes you to the top of the Catalog:

    Figure 3-11 Moving to the Top of the Catalog

    Moving to the top of the Catalog
  3. In the Catalog, click Documents.

    The documents you can add to your WebCenter Spaces pages are accessible through the Documents component. In most cases, the content you'll add to your pages will be located in either Personal Documents, which contains all the documents you have uploaded or created on the Documents page in your personal space, or All Documents, which lists all the documents you can access, including those from the various group spaces of which you are a member.

    The Documents categories provide a synthesized view of all the content repositories your WebCenter Administrator has configured for WebCenter Spaces. You don't need to know or care which repositories those are, or where they physically reside—the Documents service treats them as a single, cohesive whole.

  4. Click Open next to Personal Documents.

  5. Click Public, which houses content that other users are authorized to see.

    If you add a document to a page from any other folder, other WebCenter Spaces users won't be able to see it. Because you already added HR_Process_and_Guidelines.doc to this folder in Section 3.2, "Step 2: Upload a Document", you should see it there now.

  6. Next to HR_Process_and_Guidelines.doc, click Add.

    A pop-up is displayed, asking if you want to display the content as a link, or if you want to display the content of the document directly on the screen through the Content Presenter. The Content Presenter gives you the option of displaying the contents of a single HTML document, the contents of a folder, results from a search query, or a list of items that you specify, right on the screen. You also have the option of applying a template to your document(s), giving you more control over the appearance of the content. We'll explore the Content Presenter more fully later in this chapter. For now, let's display HR_Process_and_Guidelines.doc as a link on the page.

  7. Click Link.

  8. Close the Catalog.

    Your screen should now look like this:

    Figure 3-12 Word Document Added as a Link

    Word document dropped on a page

    As you can see, a link to the document you just added appears on the page—only above the title, instead of below it. That's easy to fix.

  9. Click the arrow beside Edit Text in the Text box:

    Figure 3-13 Move Up Arrow

    Move up arrow to reposition components
  10. Click Move Up.

The title now appears above the link to the Word document, which is exactly where you want it. When users click this link, the Process and Guidelines document will open in another browser window.

What other kind of content might the Sales team find useful? You recall seeing a spreadsheet on the standard discounts that Salesfront offers, and realize that it might be useful to turn that spreadsheet into a portlet. This can be easily accomplished through the use of an OmniPortlet.

3.3.3 Add an OmniPortlet

OmniPortlet is a subcomponent of Oracle WebCenter Framework that enables you to easily publish data from various data sources using a variety of layouts—without writing any code. You can base an OmniPortlet on almost any kind of data source, such as a Web service, a SQL database, spreadsheet, XML, and even application data from an existing Web page. When you use an OmniPortlet, the data displays directly on the page, as opposed to the link you get with a Word document. Let's see how you might use an OmniPortlet to display a spreadsheet you know your team would find extremely valuable, StandardDiscounts.csv.

  1. Click Add Content.

  2. Click the arrow in the upper left corner of the Catalog, then click Top.

  3. Click Portlets.

  4. Click wc_OmniPortlet.

  5. Click Add beside OmniPortlet and close the Catalog.

    The OmniPortlet is placed above the Human Resources document and the title, which is not what you want. It's a simple matter to switch the positions of the two pieces of content.

  6. Use the arrows to move the content around so your page looks like this:

    Figure 3-14 Rearranging the Order of Content

    Changing position

    Time now to configure the OmniPortlet so it displays the spreadsheet.

  7. Click the little arrow in the portlet's header (shown in Figure 3-15) to display the available actions, then click Customize.

    Figure 3-15 Customizing an OmniPortlet

    Customizing an OmniPortlet

    The OmniPortlet wizard opens, which guides you through the steps for adding content to and selecting a layout for the portlet.

  8. On the Type screen, click Spreadsheet, then click Next.

  9. On the Source screen, in the CSV URL field, enter the location of the StandardsDiscount.csv spreadsheet given to you by your WebCenter administrator.

  10. Click Next.

  11. We don't need to specify anything on the Filter screen, so click Next.

  12. On the View screen, type Standard Discounts in the Title field.

  13. Under Layout Style, click Tabular.

  14. Click Next.

  15. On the Layout screen, use the Column Label fields to rename the columns to more meaningful headings: Plan, Revenue, Discount Percentage, and Warranty Extension.

  16. Click Finish.

The information contained in the .csv file is now displayed on the page, readily available to all Sales employees:

Figure 3-16 Customized OmniPortlet on the Page

Customized OmniPortlet on the page

Now let's take a look at a tool very similar to OmniPortlet, Content Presenter. Whereas OmniPortlet is useful for displaying numeric data in several pre-determined formats, Content Presenter allows you to create your own formatting templates to display any document in the Document library in creative and interesting ways.

3.3.4 Add a Carousel of Images

While the Sales page now contains some meaningful content, it's not very interesting to look at. You want to jazz it up a bit with a series of photographs recently released by the Marketing department that depict some current initiatives going on within Storefront, Inc. Using the Content Presenter, you can display a set of images through a carousel, an animation effect that switches the emphasis successively between images as the user moves the mouse across them.

You're going to work with four .png images that your administrator should have placed on the server for you: atv_news.png, global_phone.png, mobile_world.png, and now_event.png. The first thing you need to do is create a subdirectory in your Public documents folder to house these images.

  1. Click Close to exit the Composer, taking care to save your changes.

  2. In your Personal Space, click Documents.

  3. Highlight Public, then click Create a new folder:

    Figure 3-17 Create Folder Pop-Up

    Create folder icon
  4. In the Folder Name field, type Carousel.

  5. Click Create.

  6. Click Upload document:

    Figure 3-18 Upload Document Icon

    Upload document icon
  7. Click Browse next to the Document to Upload field.

  8. Navigate to the server where the .png images are stored.

  9. Select the first file, then click Open:

    Figure 3-19 Browse Dialog

    Browse dialog
  10. Click Upload.

  11. Repeat steps 6-10 for the remaining three images.

    Now it's time to add the images to the page through the Content Presenter.

  12. Click Sales, then Page Actions->Edit Page.

  13. Click Add Content.

  14. In the Catalog, click Documents.

  15. Click Personal Documents, then Public.

  16. Next to the Carousel folder, click Add.

  17. When the pop-up asks you how you want to display the content in the Carousel folder, select Content Presenter:

    Figure 3-20 Displaying the Folder Through the Content Presenter

    Displaying the folder through the Content Presenter
  18. Close the Catalog.

  19. Use the arrows to move the Content Presenter right beneath the title, but above the HR_Process_and_Guidelines.doc link.

    The Content Presenter wizard allows you to select the content you want to display, then the template you want to use to display it. You can then see a preview of your work so you can make any necessary adjustments before adding the content to your page. You've already selected the content you want to display, so now you just have to choose the template.

  20. Click the wrench icon to display the Content Presenter wizard:

    Figure 3-21 Wrench Icon

    Wrench icon

    The Content Presenter wizard is displayed:

  21. Figure 3-22 Content Presenter Wizard

    Content Presenter wizard

    As you can see on the Content tab, the folder path for your Carousel folder has already been selected (Folder Path field), and you have specified that you want to display the content of that folder (Content Source field). If you like, take a moment to see what other content sources are available in this drop-down list.

  22. Click the Template tab.

  23. From the Template, list, select Carousel View:

    Figure 3-23 Selecting the Carousel View Template

    Selecting the Carousel View template
  24. Click Preview to see your carousel in action:

    Figure 3-24 Images Displayed in a Carousel View

    Images in a carousel

    Take a moment to click the different images and watch them "spin" through the carousel.

  25. You're finished adding content to the Sales page, so click Close at the top of editing session and answer Save on the Confirm Close pop-up.

Your finished page should look something like this:

Figure 3-25 Fully Populated Sales Page

Sales page with content

Let's leave the Sales page now and explore some other important WebCenter Spaces features.