Director Tutorials


Using IFrame portlets for content management

 
Top of page

Objective

To set up a content management portal page using IFrame portlets. An IFrame portlet invokes an URL inside an IFrame within the portlet window. An IFrame, or inline frame, gets content referenced by an URL and displays it in a browser subwindow—in this case, the window of the portlet on the browser page.

Before you begin   See About exteNd Director Tutorials.

Audience   This section is for content administrators.

Prerequisites   This tutorial requires the following software:

TIP:   If you want to access content management functions using portlets that run in all supported browsers and platforms, check out the Content Administration portlets that ship with exteNd Director.

 
Top of page

Concepts

 
Top of page

Exercises

The exercises in this section show you how to use IFrame portlets to access several content management functions from a single portal page. You will also learn how to assign content administrator privileges to a user and import sample content.

 
Top of section

Designating a content administrator

In this exercise, you will assign content administrator privileges to a new user. To perform these administrative tasks, you need to log in as a user with locksmith privileges.

Adding a new user

Procedure To add a new user:

  1. Start the exteNd Application Server where the Express Portal application has been deployed.

  2. Start an Internet Explorer browser (version 5.5 or higher).

  3. Start the Express Portal application by entering this URL in your browser:

    http://host/ExpressPortal

    The default home page for a guest user opens in your browser.

  4. Click Login.

    ExpressPortalLoginSelectAnnot

    The Login dialog opens in your browser:

    tutwwpXpressPortalLoginDialog

  5. Log in as a locksmith user, then click login or the Enter key.

    TIP:   A locksmith is a user who is a member of the LocksmithElementType administrator ACL group. Check with your system administrator for the user name and password to use.

    The default home page for administrators opens in your browser.

  6. Start the Portal Administration tool by selecting Portal Administration.

    PortalAdminSelectAnnot

    The Portal Administration tool opens in your browser.

  7. Select Director Administration Console.

    DACSelect

    The Director Administration Console (DAC) opens in your browser.

  8. Click the Directory Management icon.

    DACDirectoryMgmt

    The Directory Management tool opens in your browser with the Users tab selected.

  9. Click Add to add a new user.

    DirectoryMgmtAddUser

  10. Enter the following information for your new user:

    Field

    What to specify

    User ID

    adminContent

    Password and Confirm Password

    content

  11. Click Save to record your entries.

    AddNewUserSave

    The new user adminContent is added to your portal application.

Now you are ready to assign content administrator privileges to the new user. Leave the Director Administration Console running and move to the next exercise.

Assigning security privileges to a content administrator

This exercise shows you how to assign content administrator and search administrator privileges to the adminContent user you just added to the Express Portal application. There are several permissions that provide varying levels of access to documents, folders, metadata, and other elements in the content repository:

Admin type

Permission

Level of access

ContentAdmin

PROTECT

Set security on content elements

ContentAdmin

READ

View content and metadata

ContentAdmin

WRITE

Create, modify, and save content elements

SearchAdmin

WRITE

Create, modify, and save fields in document types

In this exercise, you will grant all of these permissions to the content administrator.

Procedure To assign security privileges to a content administrator:

  1. In the Director Administration Console, click the Security Management icon.

    DACSecurityMgmt

    The Security Management tool opens in your browser.

  2. In the Admin type dropdown menu, select ContentAdmin.

  3. Leave PROTECT selected in the Permission dropdown menu.

  4. Assign content administrator permissions to the adminContent user by following these steps:

    1. In the Users available list, select exteNd Server\adminContent.

    2. Click < to add the adminContent user to the selected administrator ACL group.

      DACAssignContentAdmin

    3. Click Save.

  5. Select WRITE in the Permission dropdown menu and repeat Step 4.

  6. Select READ in the Permission dropdown menu and repeat Step 4.

  7. Now assign search administrator write permission to the adminContent user by following these steps:

    1. In the Admin type dropdown menu, select SearchAdmin.

    2. In the Permission dropdown menu, select WRITE.

    3. Repeat Step 4.

  8. Click the Director Home icon to return to your home page:

    DACDirectorHome

  9. On the home page, click logout:

    Logout

  10. Log back in as the content administrator user you just created:

    Recall that the user name is adminContent and password is content.

Now you are ready to import folders and documents into the content repository. Leave the home page open in your browser and move to the next exercise.

 
Top of section

Importing folders and documents into the content repository

exteNd Director provides a repository for storing content through its Content Management (CM) subsystem. The content repository can store any type of content that can be digitized including:

In this exercise you will import sample documents and folders into the repository. This content will be used in subsequent exercises to test your ability to browse the repository and create new documents via IFrame portlets.

Before beginning this exercise, be sure you have downloaded the accessory ZIP file required for the exteNd Director tutorials, as described in the section on how to download accessory files.

Procedure To import folders and documents into the content repository:

  1. Open the accessory archive Director52Tutorial.zip and select Director5_data.zip.

    NOTE:   The file Director5_data.zip contains XML descriptors of documents, folders, and other content elements, as described in structure of the data import or export archive.

  2. Click Extract and extract the file to a location of your choice.

    TIP:   Be sure to remember the location of the file because you will be entering its path in a later step in this exercise.

  3. On the home page, click the Director CMS link in the Favorites list:

    DirectorCMSLink

    The Content Management tool opens in a separate browser window.

  4. Select the Import Content icon:

    ContentMgmtImportContent

    The Import Content Management Data panel appears in your browser.

  5. In the Data Import Archive field, enter the path to Director5_data.zip and click Import, as in this example:

    ImportCMData

    When the import completes, a summary window displays the following information:

    ContentImportSummary

    NOTE:   The summary window will not appear if your browser uses a popup blocker. To view the summary window (and verify success), disable the popup blocker and reimport the content.

    The imported content includes corporate news stories for various departments in a fictitious organization, as well as folders and document types. In exteNd Director, a document type is like a template that specifies formats and metadata for documents you create.

  6. Click Close Import Results.

  7. Close the Content Management tool.

Now you are ready to add a content browser to a personal page, using the IFrame portlet. Leave the home page open in your browser and move to the next exercise.

 
Top of section

Browsing the content repository from a personal page

In this exercise you will create and configure a personal page to allow you to browse the exteNd Director content repository through an IFrame portlet.

Creating a personal page

Procedure To create a personal page:

  1. On the exteNd Director home page, select Personalize.

    Home2Personalize

    The Portal Personalizer opens in your browser.

  2. Under Personal Pages select New.

    PersonalizeNewPage

    An untitled page is added to the list of personal pages.

  3. Enter the following properties for the new page:

    Property

    What to specify

    Page Name

    My Content Management Page

    Description

    Tutorial

  4. Click Update.

    The new page appears in the list of personal pages.

Now you are ready to add an IFrame portlet to your personal page and configure it to operate as a content browser. Leave the Portal Personalizer running and move to the next exercise.

Adding an IFrame portlet to a page using the Content Selector tool

In this exercise, you will use the Content Selector to add an IFrame portlet to My Content Management Page, the personal page you just created. In a later exercise you will learn how to add a portlet to a page using the Layout Selector tool (see Adding an IFrame portlet to a page using the Layout Selector tool).

Procedure To add an IFrame portlet to your personal page using the Content Selector:

  1. Select My Content Management Page in the Personal Pages list and click Choose Content.

    The Content Selector displays in a new window.

  2. From the Filter dropdown list choose Accessory Portlets.

  3. From the Available Content list select IFrame and add it to the page by clicking Add.

    The IFrame portlet appears in the Selected Content list.

Now you are ready to configure the IFrame portlet as a content browser. Leave the Content Selector open and move to the next exercise.

Configuring the IFrame portlet as a content browser

Procedure To configure the IFrame portlet as a content browser:

  1. Select the IFrame portlet in the Selected Content list and click Content Preferences.

    ContentPreferencesSelect

    The Content Preferences sheet opens.

    TIP:   To get more information about each preference, click Descriptions at the bottom of the sheet:

    ContentPrefsDescriptions

  2. Change the values of the following preferences:

    Preference

    What to specify

    URL

    http://host name/ExpressPortal/xresources
    

    Width

    500

    NOTE:   xresources is the extended Content Management resource servlet, which provides access to folders and documents in the exteNd Director content repository.

  3. Click Save Preferences.

    The Content Preferences sheet closes, returning you to the Content Selector.

  4. Click Save Contents to dismiss the Content Selector.

    The Portal Personalizer should still be running.

Now you are ready to test your content browser. Leave the Portal Personalizer running in your browser and move to the next exercise.

Testing the IFrame portlet—Browse the content repository

Procedure To browse the content repository from your portal page:

  1. In the Portal Personalizer, click Portal.

    Personalizer2Portal

    Your home portal page opens in your browser.

  2. Under Personal Pages in the navigation area of the page, click My Content Management Page.

    MyContentMgmtPage

    My Content Management Page appears in the content area of your browser, displaying the exteNd Director content repository in your content browser portlet window.

    The portlet displays the extended view of the content repository, which includes the following information about each content element:

    You will see only those folders and documents you are authorized to view. As a content administrator, you can access all content in the repository.

    Your portal page should look something like this:

    MyContentMgmtPageDisplayed

    NOTE:   This image shows only the content you imported into the repository in Importing folders and documents into the content repository. You will be able to view and browse any other content in your repository as well.

  3. Browse the content. Click the names of folders and documents to open them.

    For example:

    1. Click the Production folder.

    2. In the Production folder, click the Sales folder.

    3. In the Sales folder, click the New Sales Region document.

      The content of the document opens in the browser. Use the Back button of your browser to move up a level, or click Up A Level from folder views.

Now you are ready to add document creation capability to your Content Management Page. Leave your home page open in your browser and move to the next exercise.

 
Top of section

Creating documents from a personal page

In this exercise, you will configure a second IFrame portlet to provide access to the document creation utilities of the exteNd Director Content Management system.

Adding an IFrame portlet to a page using the Layout Selector tool

In this exercise, you will use the Layout Selector to add an IFrame portlet to My Content Management Page, the personal page that you just created. Recall that in a previous exercise you added a portlet to a page using the Content Selector tool (see Adding an IFrame portlet to a page using the Content Selector tool).

Procedure To add an IFrame portlet to your personal page using the Layout Selector:

  1. On your home page, select Personalize.

    The Portal Personalizer opens in your browser.

  2. Select My Content Management Page in the Personal Pages list and click Arrange Content.

    PersonalizeArrangeContent

    The Layout Selector opens in a new window:

    LayoutSelector

    As you can see, the default layout for personal pages is a two-column layout. The content browser portlet that you added in a previous exercise is placed in the first column of the page by default. This Layout Selector view allows you to add new portlets to specific locations in your layout and to reorganize the page by moving existing portlets to new locations.

  3. In the second column of the page, click Add Content:

    LayoutSelector2

    A content selector opens in a new window.

  4. From the content selector, select an IFrame portlet from the Available Content list, then click Select Content.

    The content selector closes and an IFrame portlet is added to the second column of the layout view of your personal page.

  5. In the tool bar of the IFrame portlet, click the Edit button to modify its properties:

    LayoutSelector3

    A confirmation window appears, asking if you want to save the layout.

  6. Click OK to save the layout.

    The Content Preferences sheet opens.

  7. Change the values of the following preferences:

    Preference

    What to specify

    URL

    http://host name/ExpressPortal/portal/pages/PmcTemplates.html
    

    Height

    700

    Width

    800

    NOTE:   This URL gives you access to the document creation utilities of the exteNd Director Content Management system.

  8. Click Save Preferences to record your changes and return to the Layout Selector.

  9. Click Save Layout to return to the Personalizer.

Now you are ready to test the portal page by creating a document and adding it to the content repository. Leave the Personalizer running in your browser and move to the next exercise.

Creating a document in the content repository

In this exercise you will use your IFrame portlet to create an HTML document in the exteNd Director content repository. Your document will be based on a pre-existing document type called News Article, which you imported along with other content in the earlier exercise Importing folders and documents into the content repository.

A document type is like a template, used to define custom fields and styles to associate with a group of documents. Custom fields are often used to speed up content queries because they can be searched quickly using a database lookup, as opposed to searching document text.

The document type News Article defines a custom field called Department. Using this field, you can specify the department that wrote the article. In this example, you will create a short news article for Human Resources and store the document in the Production folder for the Human Resources department.

After creating the document, you will publish it and view its content from your content browser portlet.

Procedure To create a new document in the content repository from your portal page:

  1. In the Portal Personalizer, click Portal.

    Personalizer2Portal

  2. In the navigation area of the page, click My Content Management Page.

    My Content Management Page, appears in the content area of your browser. The page displays the content browser on the left and the exteNd Director document creation utility on the right, as shown:

    MyContentMgmtPageDisplayed2

    You may want to maximize your browser window to see the content of both portlets.

  3. In the document creation portlet, select News Article in the Document Types list and click Use.

    CreateDocument

    A create document dialog opens in a new window with the General tab selected.

  4. In the General tab panel, enter the following values in the required fields:

    Required field

    What to specify

    Name

    Play

    Title

    Corporate Theatre Production

    Author

    adminContent

    Folder

    Follow these steps:

    1. Click the ellipsis next to the Folder field.

    2. Navigate to Default/Production/Human Resources.

    3. Select Human Resources and click Done.

  5. Select the Custom Fields tab.

    A panel appears showing the custom field Department along with a list of values you can assign to the field.

  6. Select Human Resources from the list.

  7. Select the Content tab.

    The Create Content radio button should be selected by default.

  8. Click inside the content area and type the following text:

      The corporate theatre production for this year will be Romeo and Juliet by William Shakespeare.
    

    Your content area should look like this:

    EnterHTMLText

  9. Click Add and Close in the bottom tool bar

    The document is added to the repository and the Create Content dialog closes.

Now you are ready to publish the document you just created. Leave My Content Management Page open in your browser and move to the next exercise.

Publishing your document

To view the content of a document in your content browser portlet, you must first publish the document. In this exercise you will learn how to publish a version of your document.

Procedure To publish a document:

  1. Back in your document creation portlet, click the Content Management icon:

    IFrame2ContentMgmt

    The Content Management tool opens in the IFrame portlet window.

  2. In Folder View of the Content Management tool, navigate to and select Default/Production/Human Resources.

    IFrameContentMgmtNav

    Your new file Play should appear in the list of documents in the upper right panel.

  3. Select Play, then click Check Out in the Content Property Inspector.

    IFrameCheckout

    A red check mark appears next to Play to indicate it has been checked out.

    NOTE:   Checking out a document locks it, preventing other users from modifying the content. You must check out a document before you can publish it.

  4. In the Content Property Inspector, select the Versions tab.

    IFrameVersionsTab

    TIP:   You may need to scroll right in the Content Property Inspector to bring the Versions tab into view.

  5. In the Versions panel of the Content Property Inspector select Version 1, then click Publish.

    IFramePublish

    The Version 1 icon appears with a green border to indicate it has been published.

Now you are ready to open the new document in your content browser. Leave My Content Management Page open in your browser and move to the next exercise.

Opening a document in the content browser portlet

In this exercise, you will navigate to your new document and open it in the content browser. You can view published content only.

Procedure To open a document in the content browser

  1. In the content browser on your personal page, navigate to and select Production/Human Resources—the folder in the content repository where you created the new document.

    The document Play should appear in the list of documents:

    NewDocument

    NOTE:   As you can see, the content browser accurately reflects the status of the document Play—specifically, that it is currently checked out to adminContent. Since you are the user who checked out the document, you will be able to open it in the content browser.

  2. Click Play in the content browser.

    The content you entered for this document appears in the content browser window:

    IFrameContent

  3. Use the Back button of your browser to move up a level to Production/Human Resources in the content repository.

  4. Back in the document creation portlet, select the General tab in the Content Property Inspector.

    TIP:   You may need to scroll left in the Content Property Inspector to bring the General tab into view.

  5. Select Play, then click Check In in the Content Property Inspector.

    TIP:   You may need to scroll right in the Content Property Inspector to bring the Check In icon into view.

    The document is checked in.

  6. Refresh the content browser portlet to update the status of the Play document.

    TIP:   Right-click in the content browser portlet window and select Refresh.

  7. Close the browser.

 
Top of page

What to do next



Copyright © 2004-2005 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved.  more ...