Logo Help Center

Integrating Drupal 6 in Enterprise Server 9

Integrating Drupal 6 in Enterprise Server 9

The functionality of publishing content to Drupal is provided through an Enterprise Server plug-in.

This article describes how to integrate Drupal 6 in Enterprise to make it possible to publish from Enterprise to a Web environment based on Drupal 6.

Note: For other versions of Drupal, see:

Step 1. Setting up Drupal

Step 2. Installing the Enterprise module in Drupal

Step 3. Enabling Drupal modules

Step 4. (Optional) Updating the database

Step 5. Creating a user for publishing to Drupal

Step 6. Mapping Issues to content types

Step 7. (Optional) Creating vocabularies and terms

Step 8. Enabling file upload attachments

Step 9. Enabling image attachments

Step 10. Configuring the Drupal config file

Step 11. Enabling the Drupal 6 Server plug-in

Step 12. Testing Enterprise Server

Step 13. Configuring Publication Channels

Step 1. Setting up Drupal

Set up a default installation of Drupal by following the instructions as outlined on www.drupal.org:

Step 2. Installing the Enterprise module in Drupal

The Enterprise module allows Drupal to communicate with Enterprise Server.

Step 2a. Unzip the DrupalEnterprise_9.x.x_Buildx.zip file that is provided with the Enterprise Server installation.

A folder named ww_enterprise is created.

Step 2b. Copy the ww_enterprise folder to the following location:

<drupal directory>/sites/all/modules/

Note: If the directory is not available yet, create the directory.

Step 3. Enabling Drupal modules

The Enterprise module that was installed in step 2 needs to be enabled, as well as other modules on which it is dependent.

Enable the following modules:

  • taxonomy
  • upload
  • image

Note: If the image module is not available, download it from http://drupal.org/project/image.

  • image_attach

Note: This is the same module as image, but needs to be enabled separately.

  • WoodWing Enterprise

Step 4. (Optional) Updating the database

Note: This step only has to be followed when updating Enterprise Server from a previous version.

Run the following page in a Web browser:

<Drupal URL>/update.php

Note: Replace <Drupal URL> by the URL of your Drupal installation. For example:

http://localhost/drupal/update.php

Step 5. Creating a user for publishing to Drupal

Create a user account that the Enterprise Server plug-in can use for logging in to Drupal.

Use one of the following methods:

  • Use the account that you created while setting up Drupal (see step 1. Setting up Drupal).
  • Create a new user with enough rights to create, update, and delete nodes.

Step 6. Mapping Issues to content types

Issues in Enterprise need to be mapped to content types in Drupal so that content that is stored in the Issue can be directly published to those content types.

Step 6a. In Enterprise Server, define (additional) Categories.

Step 6b. Access the Issue Maintenance page for the Issue in which the mapping should take place.

Step 6c. In the Category Mapping section, do the following:

Step 6c.1. From the Category list, choose a Category.

Tip: Choose "<All>" to map all Categories in one go.

Step 6c.2. From the Content Type list, choose a Content Type.

Step 6c.3. (Optional) From the Terms list, select a vocabulary.

Note: Click Update to update this list.

Step 6c.4. (Optional) from the Required Text Components, choose those components which should be available in the article when it is published to Drupal.

Step 6c.5. (Optional) Select Image Required to enforce the use of an image.

Step 6d. Click Update to store the changes.

Step 7. (Optional) Creating vocabularies and terms

Note: This step only has to be followed when you want to publish directly from an Enterprise Issue to a term in a Drupal vocabulary.

Create a vocabulary with terms by following the steps in the Drupal Help: Organizing content with taxonomies.

Notes:

  • The terms can be in a hierarchical tree.
  • If you want to be able to dynamically add terms to a vocabulary, select the options terms and multiple select in the vocabulary edit screen. Also add the vocabulary to the appropriate content types.

Step 8. Enabling file upload attachments

If you want to upload and add attachments to a Drupal node, you need to enable this functionality in the content type edit screen in Drupal.

Please refer to the Drupal Help: Working with files in Drupal 6.

Step 9. Enabling image attachments

If you want to upload and add images to a Drupal node, you need to enable this functionality in the content type edit screen in Drupal. Please refer to the Drupal Help: Image.

Step 10. Configuring the Drupal config file

Step 10a. Open the config_drupal.php file.

Step 10b. Configure any of the following arrays:

Step 11. Enabling the Drupal 6 Server plug-in

The Drupal functionality in Enterprise needs to be enabled by enabling the Drupal 6 Server plug-in.

Step 11a. Log in to Enterprise Server.

Step 12a. Click Server Plug-ins in the Maintenance menu or on the Home page. The Server Plug-ins page appears.

Step 13a. Enable the plug-in named Drupal 6 by clicking the Unplugged icon . It changes to a Plugged In icon .

Step 12. Testing Enterprise Server

To complete the process, test if the integration has been performed successfully.

Step 12a. Log in to Enterprise Server.

Step 12b. In the Maintenance menu, click Advanced. A page showing links to advanced Enterprise options appears.

Step 12c. Click Health Check. The Health Check page appears.

Step 12d. Run the Publish to Drupal test. The test result is displayed.

Step 12e. (Optional, only if the test failed). Follow the instructions and run the test once more after making any changes to the Drupal configuration. Repeat this process until the test is performed successfully.

Step 13. Configuring Publication Channels

In Enterprise, publishing content to Drupal is done through a Publication Channel.

Step 1. In Enterprise, create a new Publication Channel for a Brand:

Step 1a. In the Name field, enter a name.

Step 1b. (Optional) In the Description field, enter a description.

Step 1c. From the Publication Channel Type list, choose Web.

Step 1d. From the Publish System list, choose Drupal 6.

Step 1e. Leave the Suggestion Provider option set to None.

Step 2. Click Create.

New items appear on the page:

  • An additional property named 'Current Issue' appears below the Publication Channel Type property.
  • Below the Publication Channel properties area, a section for adding Issues appears.

Creating Issues

Step 3. Click Add Issue.

The Issue Maintenance page appears.

The Issue Maintenance page for Drupal 6

Step 4. Fill out the details.

Note: At the most basic level, only a name needs to be entered; all other options can also be set at a later stage by modifying the created Issue.

  • Name. Name of the Issue.
  • Subject. This feature is currently not functional.
  • Description. Description of the Issue.
  • Active. Use to deactivate the Issue. This will hide the Issue and all objects assigned to the Issue from the users without actually removing the Issue from the system

Step 5. Click Update.

Finishing the setup

Step 6. Click the arrow at the bottom of the page to return to the Publication Channel Maintenance page.

Step 7. (Optional) Add additional Issues as needed.

Step 8. Click the arrow at the bottom of the page to return to the Brand Maintenance page.

Step 9. (Optional) Add additional Publication Channels as needed.

Step 10. (Optional, only if multiple Publication Channels have been created) From the Default Publication Channel list at the top of the Brand Maintenance page, choose the default Publication Channel that should act as the default Drupal channel.

Choosing the default Publication Channel

Figure: The Default Publication Channel list.

Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.