I am a Drupal newbie. I would like to tweak (does not have to be full builder) my theme template and css files from within Drupal so that I can continue developing my sites remotely from wherever I have internet access. (Also because I have multiple developers who are not local to one another working simultaneously on the same project).

To do this I need the ability to edit template and css files in real-time via the Drupal interface.

I saw some comments about a Drupal Theme Editor dated several years ago and can imagine something must have been completed since then.

If not from within Drupal, is anyone aware of any web-based theme builder/editor that I could install separately on the hosting server?

Thanks in advance for any suggestions?

Comments

dman’s picture

I saw some comments about a Drupal Theme Editor dated several years ago and can imagine something must have been completed since then.

You could try Searching and you'd find Theme Editor. Which works.
?

bg1’s picture

I installed the theme_editor module, but I cannot find the file theme_editor_engine.engine file that I am supposed to install into the themes/engines/theme_editor directory (I am assuming the documentation is referring the the themes directory that is under the drupal directory and not the directory under drupal/sites/all directory).

Can you advise further?

Thanks again.

dman’s picture

I don't recall any of that.
I plugged it in to a D6 a month ago and it just worked - after adjusting my file permissions.

The 'engine' instructions specifically for Drupal 4-5 probably do not apply to the Drupal6 version of the module ... And there is no Drupal 5 release. So either you are using D4 (so don't) or D6 (so read the correct instructions)

bg1’s picture

Thanks again Kiwi (I had fortune to visit NZ once and to hike in the Souther Alps is on my todo list :-).

You are right, I was reading the 4.x and 5.x documentation. The 6.x documentation just says "coming very soon". (I did find another link to help under Administer by Module, but that takes me to the permissions setting page and the same configuration page that has only one option described below.

I installed (expanded into drupal/sites/all/modules and enabled theme_editor and set the permissions to allow a number of roles that I have to be able to use it. When I go to configure Theme Editor I am given only one option: Style Settings: with a checkbox for "Use the Icons Style sheet for Theme Editor". There is no way to tell Theme Editor where one's files are.

The only way I can get to Theme Editor at all is under Site Configuration. There is no Theme Editor directly under Administration.

Perhaps it is related to file permissions. What file permissions did you have to change?
Or it might be due to some module dependency, but it does not list any.

(I am logged in as superuser - first user - but also assigned myself a number of roles.)

The following are the files that are part of theme_editor (I am running under Ubuntu):
drwxr-xr-x 2 1080 1080 4096 2009-05-12 08:52 images
-rw-r--r-- 1 1080 1080 14940 2006-04-23 02:54 LICENSE.txt
-rw-r--r-- 1 1080 1080 724 2009-03-18 07:28 theme_editor.css
-rw-r--r-- 1 1080 1080 1933 2009-03-18 07:28 theme_editor_icons.css
-rw-r--r-- 1 1080 1080 21955 2009-05-07 13:12 theme_editor.inc
-rw-r--r-- 1 1080 1080 354 2009-05-12 08:52 theme_editor.info
-rw-r--r-- 1 1080 1080 968 2009-03-18 07:28 theme_editor.js
-rw-r--r-- 1 1080 1080 4764 2009-03-17 14:16 theme_editor.module

Thanks again.

Bill

dman’s picture

/admin/build/themes/editor
Works for me.
Oddly enough, the theme editor button is found over where you administer your themes.
Try that. :-B

Could be the docs could be improved a little bit, but the function is there.
The permissions I mentioned are those of the theme files themselves - you are going to have to open them up world-writeable if you want to write to them from a web UI.
This is why this utility gets no love from security administrators. But it's your perogative

bg1’s picture

Yes, it is under themes administration. It appears to be working. I will find out when I change the file permissions, but can't do that until tonight.

Thanks greatly. I never would have thought to look in Themes administration (although it makes sense).

Thanks again.

Bill

bg1’s picture

When I go to edit any file, it initially compus up formatted (at least line breaks) and then quickly reformats itself putting everything in one long line (that wraps a few times for a big file) which makes it totally unmanageable.

Any idea what might be causing this?

Bill

dman’s picture

I would guess you are using a WYSIWYG editor which is interfering,
for bug reports, check out the issue queue for the module