Setting Up the Content Management Portlet

To make the Content Management Portlet available for administrators to create and manage content, you much perform the following tasks:

Step 1: Add the the Content Management Portlet to a Portal Project (Web Application)

Before you begin this process, it is assumed that you already have a portal application with a portal project (web application) that it is running on a WebLogic Server. For more information on creating a portal application, see Creating a Portal Application and Portal Web Project.

  1. Create a portal application in a domain.
  2. Make sure your portal application is open and the server is not running (Tools-->WebLogic Server-->Stop WebLogic Server).
  3. Import/add the following directories and files into your portal application and portal Web project using WebLogic Workshop. (Right-click-->Import or Add Module or Add Library on the target directory). You may need to create the appropriate directories in your application.

    Import or copy this to this directory (create if necessary)
    <WEBLOGIC_HOME>\samples\portal\portalApp\
    sampleportal\cmsTools
    <PORTAL_APP>\<project>\cmsTools
    <WEBLOGIC_HOME>\samples\portal\portalApp\
    sampleportal\framework\skeletons\beaTools
    <PORTAL_APP>\<project>\framework\skeletons\beaTools
    <WEBLOGIC_HOME>\samples\portal\portalApp\
    sampleportal\framework\skins\beaTools
    <PORTAL_APP>\<project>\framework\skins\beaTools
    <WEBLOGIC_HOME>\samples\portal\portalApp\
    sampleportal\util
    <PORTAL_APP>\<project>\util
    <WEBLOGIC_HOME>\samples\portal\portalApp\
    sampleportal\WEB-INF\lib\wlp-admin.jar
    <PORTAL_APP>\<project>\WEB-INF\lib\wlp_admin.jar
    <WEBLOGIC_HOME>\samples\portal\portalApp\
    sampleportal\portlets\content
    <PORTAL_APP>\<project>\portlets\content

    Note: The Content Management portlet requires that users be logged in to determine the rights each user has on certain content. Consider importing the “Login to Portal” portlet as well. To do this, import the folder “login” and the file “includes/Login.portlet” from the same location as the “content” folder above.

  4. Next, you will need to edit your web application's web.xml file, located in <PORTAL_APP>\<project>\WEB-INF\. Add the following under the root <web-app> node. (Hint: A convenient place is next to the servlet-mapping for DownloadBinary Servlet, which is already there.)

     <servlet>

    <servlet-name>ContentDownloadServlet</servlet-name>

    <servlet-class>com.bea.jsptools.content.DownloadServlet</servlet-class>

    </servlet>

    <servlet-mapping>

    <servlet-name>ContentDownloadServlet</servlet-name>

    <url-pattern>contentDownload</url-pattern>

    </servlet-mapping>

  5. Start your server. (Tools-->WebLogic Server-->Start WebLogic Server).

Step 2: Add the Portlet to a Page in your Portal

  1. In WebLogic Workshop, Add the Content Management portlet to a page in your .portal based Portal.
    Or
    In the Administration Portal, add the Content Management portlet to a page in your streaming Portal.

    Note: The .portal file you create in WebLogic Workshop is a template. In this template you create books, pages and portlets and define defaults for them. When you view the .portal file with your browser the portal is rendered in "single file mode," meaning that you are viewing the portal from your file system as opposed to a database.

    The .portal file's XML is parsed and the rendered portal is returned to the browser. The creation and use of a .portal is intended for development purposes. Because there is no database involved you cannot take advantage of things such as user customization. Once you have created a .portal file you can use it to create desktops for a production environment.
  2. View your portal with the WebLogic Test Browser or with your default browser. Login to the portal as webLogic, webLogic so you can see the portlet.
    • WebLogic Test Browser - In the WebLogic Workshop toolbar, click the Start button (or press Ctrl+F5).
    • Default Browser - In the WebLogic Workshop menu, choose Portal-->Open Current Portal.

    Note: Only the BEA Repository is visible until you add content.

Step 3: Add the Login to Portal Portlet to your portal Web project.

Users must log in to use the collaboration portlets.