The Theme Editor contributed 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:
- administer theme editor at administer >> theme editor.
- add a new theme to the theme storage directory from administer >> theme editor >> new theme editor.
- file issues, read about known bugs, and download the latest version from the theme editor project page.
Drupal 7.x
Currently the -dev version has a combination of misleading UI and wrong documentation... This documentation section can be updated once the following issue is implemented:
"Theme Editor (D7) not working at all (unless you follow THESE steps)": http://drupal.org/node/1172232
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.
- Copy the theme_editor.module into the Drupal modules directory.
- Create a directory called "theme_editor" under the Drupal themes/engines/ directory.
- Copy the theme_editor_engine.engine file into the directory themes/engines/theme_editor.
- Activate the theme editor module from the modules list in: administer -> settings -> modules.
- Create, edit and delete themes under: administer -> theme editor.
- 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:
- List - This lists all of the themes you have created using the theme editor module. Initially, this will be empty.
- 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.
- 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:
- Edit - This will take you to the theme files list where you may edit each individual file, upload images, and create new files.
- Delete - This removes the selected theme. This can't be undone.
- 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.
Comments
Command line white text on black style
This module is awesome! thank you, I have it on all the sites I manage now. The convenience of being able to just admin menu over and adjust or add a style is a huge convenience.
If you want the look of a black text editor add: "#edit-file-editor-wrapper .resizable-textarea #edit-file-editor { background: #000; color: #fff;}" to your css. This helps a lot on sites with white page backgrounds.
Just download your version 6.
Just download your version 6. mod and I don't see this file "theme_editor_engine.engine"?
File Missing???
"Copy the theme_editor_engine.engine file into the directory themes/engines/theme_editor.
I just downloaded the module. The theme_editor_engine.engine is missing from the .tar. Can you please have look at it again??
The installation steps have changed.
The module can be installed and activated like any other custom module. Following are the steps.
1. Copy the files into sites/all/modules/theme_editor folder
2. Activate the module from Administer > Modules
Cheers.
Uploading images
It is written in section for Drupal 4.x and 5 : "This will take you to the theme files list where you may edit each individual file, upload images, and create new files. ", but I cannot find image upload tool in version for 6.x. Is it planed to add this feature for 6.x?
upload images
This module is a great help, but it's a pity that I could not upload images.
So I implemented "quick and dirty" solution.
1) added form for image upload
2) upload images in fixed subfolder 'images' of theme's root folder
3) in the list of images display all images, including images from subfolders of theme's root folder
4) display image path as "title" attribute and make images clickable to open an image in new window.
Here is diff result for file theme_editor/theme_editor.inc:
Screencast - Screenshots
Hi,
Is there a screencast available of how this module works?
Alternatively are there any screenshots of the module in action?
The docs refer to the ability to delete a theme, can this be permission managed so that only authorised users can delete a theme?
Thanks!