Theme editor: store, configure, create

Last modified: November 16, 2009 - 22:05

The theme editor module enables the administrator to edit the basic themes for the web site, delete a theme from the theme storage directory, rename a theme, and re-configure the storage directory.

Theme editor has a list, new, and configure tab. The list tab allows for editing, deletion, and renaming. The new tab allows for a theme to be copied to the theme storage directory for editing. The configure tab creates a sub-directory where theme files will be stored.

You can:

Drupal 6.x

Coming very soon.

Drupal 4.x and 5.x

Installation

The installation is easy. There are two files that must be copied into the appropriate locations.

  1. Copy the theme_editor.module into the Drupal modules directory.
  2. Create a directory called "theme_editor" under the Drupal themes/engines/ directory.
  3. Copy the theme_editor_engine.engine file into the directory themes/engines/theme_editor.
  4. Activate the theme editor module from the modules list in: administer -> settings -> modules.
  5. Create, edit and delete themes under: administer -> theme editor.
  6. Set your theme editor path under the configure tab but the default works fine.

Theme Management

There are three tabs located under administer -> theme editor:

  1. List - This lists all of the themes you have created using the theme editor module. Initially, this will be empty.
  2. New - This is where you begin each theme. You choose one of the existing themes and the editor will copy required files to the theme editor directory.
  3. Configure - This is the theme editor storage directory, relative to the files directory.

Editing Themes

Under the list tab is where the actual editing of a theme begins. Each theme created will have three options:

  1. Edit - This will take you to the theme files list where you may edit each individual file, upload images, and create new files.
  2. Delete - This removes the selected theme. This can't be undone.
  3. Rename - By default, the themes you create will start with the theme name and append "_customized". Providing a new name is recommended.

Note

XTemplate: a patch is available for xtemplate.engine and is included with the theme editor module download. The patch corrects some minor issues with XTemplate.

 
 

Drupal is a registered trademark of Dries Buytaert.