Developing exteNd Director Applications

CHAPTER 25

Using Dreamweaver with exteNd Director

This chapter describes how to use Macromedia Dreamweaver with exteNd Director. It includes these sections:

This chapter assumes that you are familiar with Dreamweaver.

 
Top of page

About exteNd Director and Dreamweaver

Dreamweaver is an integrated development environment for creating Web pages and creating and managing Web sites and Internet applications . exteNd Director ships with the Novell exteNd Integration extension that lets you use Dreamweaver with exteNd Director applications to:

Use Dreamweaver to

Description

Add portlets and components to PID (Portal ID) pages

The Novell exteNd Director Integration (Novell_Director.mxp) extension

PID pages are the only type of exteNd Director pages that can be used with this extension

For more information    For instructions, see Using the exteNd Director Integration extension

Edit files in the Content Management repository

Requires you to configure:

  • WebDAV access from Dreamweaver's Site Manager to the Content Management repository.

    For more information    For instructions on using WebDAV with an exteNd Director application, see Dreamweaver's Site Manager documentation and the WebDAV chapter in the Content Management Guide

  • The exteNd Director application so that PID pages are stored in the Content Management repository, not their typical resource set location

    For more information    For instructions, see Displaying PID pages from Content Management

NOTE:   This extension works with both Dreamweaver and Dreamweaver UltraDev.

 
Top of page

Installing Dreamweaver extensions

You'll use Macromedia's Extension Manager to install the exteNd Director Dreamweaver extension.

Procedure To install the exteNd Director Dreamweaver extension:

  1. Open the Macromedia Extension Manager.

  2. Choose File>Install Extension.

  3. Navigate to the directory containing the extension you want to install:

    Extension

    File location

    Novell exteNd Director Integration

    Director\Utilities\Dreamweaver\Novell_Director.mxp

  4. Choose the .mxp file associated with the extension you want to install.

  5. Click Install.

  6. Follow the extension manager's installation instructions.

 
Top of page

Using the exteNd Director Integration extension

The exteNd Director Integration extension allows the Dreamweaver work area to:

Using these two features together requires configuring the exteNd Director application before deployment. See Displaying PID pages from Content Management.

 
Top of section

Inserting component tags

The exteNd Director Integration extension allows the Dreamweaver work area to connect to a deployed exteNd Director portal application and insert s3-component tags into PID pages. You can select from a list of portlets or components in the Portal WAR of the deployed application.

Procedure To insert a component tag:

  1. In Dreamweaver Design View, put the cursor where you want to insert the portlet or component.

  2. Select Commands>Novell Director>Director Insert Portlet.

    dreamweaver11

  3. In the Director Insert Portlet, specify:

    Setting

    What to specify

    Hostname/IP:port

    The host name (or IP address) and optionally the port number of the application server your exteNd Director application has been deployed on. For example, localhost.

    Database

    The name of the exteNd Director application database on the application server. For example, SilverMaster50.

    (Leave this blank for servers that do not use a database.)

    Portal Location (Portal or namespace/Portal)

    The exteNd Director application's namespace (if the application is configured with one) followed by the name of the portal. For example, ExpressPortal.

  4. Click the Get Portlet List.

    The dialog displays a dropdown list box that shows all of the available portlets and components in the target portal.

  5. Select a portlet or component and click Insert Portlet.

    The extension inserts an s3-component tag into the PID page HTML code and displays a corresponding icon at the specified location in the design view:

    dreamweaver14

 
Top of section

Displaying PID pages from Content Management

By default, PID pages are not stored in the Content Management repository of an exteNd Director application; they are stored in a resource set. For that reason you must add a new EboResourceServlet that can fetch and display PID pages from the Content Management repository.

Procedure To configure the exteNd Director application:

  1. Before deploying your exteNd Director project, do the following:

    1. Open web.xml for the Portal WAR.

    2. Add the following lines of XML code to the file:

      <servlet>
          <servlet-name>cmresources</servlet-name>
          <servlet-class> com.sssw.cm.servlet.EboResourceServlet</servlet-class>
          <init-param>
            <param-name>enable-pid-support</param-name> 
            <param-value>true</param-value> 
          </init-param> 
        <init-param>
            <!--This is the directory in the cm system that -->
            <!--stores pids-->
            <param-name>pid-path</param-name> 
            <param-value>/cmpages</param-value> 
          </init-param>
      </servlet>
          <servlet-mapping>
          <servlet-name>cmresources</servlet-name>
          <url-pattern>/cmresources/*</url-pattern>
          </servlet-mapping>
    

    Insert the tags immediately following the other <servlet> and <servlet-mapping> tags.

    For more information    See EboResourceServlet initialization parameters for an explanation of the code.

  2. Build and deploy (or redeploy) the exteNd Director application.

  3. After deploying your exteNd Director project, do the following:

    1. Set your Dreamweaver WebDAV connection's remote site folder to /cmpages.

    2. Use the CMS Administration Console to move the PID pages of interest from the resource set of your exteNd Director project to the Content Management repository of the deployed application (or create new ones).

    3. Use the CMS Administration Console to move the images and other objects used by each PID page; this is necessary because the resource servlet does not modify the relative URLs contained in a page.

    For more information    For information about using the CMS Administration Console, see the Content Management Guide.

Procedure To access PID pages in the Content Management repository:

NOTE:   To access a PID page in the Content Management repository from another PID page, use the CMPIDReader component.

CMPIDReader accepts a single parameter CMPATH that represents the path to the PID page that is being retrieved from the Content Management repository. The CMPATH can be sent via an s3-component tag or an HTML request. Examples:

  <s3-component ID="CMPIDReader" NAME="CMPIDReader" CMPATH="/cmpages/myPID.html" />
  
  http://localhost/Director/Portal/main/comp/CMPIDReader?cmpath=%2fcmpages%2fmyPID.html

EboResourceServlet initialization parameters

The Content Management resource servlet (EboResourceServlet) provides URL access to any object in the Content Management repository via path or document ID. By adding the initialization parameters shown below, you can enable this servlet to also render PID pages stored in the Content Management subsystem.

The Content Management resource servlet has two initialization parameters:

Initialization parameter

Description

enable-pid-support

If enable-pid-support is true, the resource servlet checks the incoming path of the Content Management document. If it matches the path set under pid-path, the resource servlet assumes that the HTML document is a PID page and processes it using the MIME type designated by the Content Management subsystem. Objects in all other path locations are returned as is.

pid-path

The pid-path designates one specific folder in the Content Management repository as storage for PID pages. Restricting PID pages to a single folder is necessary for performance reasons. Content Management folders potentially contain vast numbers of large documents, and scanning every document for s3-component tags would be quite inefficient.



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