Editing files through the web interface

doubledoh - October 4, 2009 - 20:32

Hi,

This isn't really a "before I start" question...because I've started. I'm just wondering if there is a module that allows people with certain privileges to edit files (especially theme files) from within the site's web interface? I'd like the client to be able to change a couple of items inside a theme file without giving the client ftp access.

Suggestions?

_

WorldFallz - October 4, 2009 - 21:01

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Solve the task or solve the request?

dman - October 4, 2009 - 21:36

Note that both those solutions are at the content/data level - not physical "file" editing. (contemplate does allow some file access)
But they may actually solve your real requirements as described - so are worth looking into first. They are a more managed solution, and more secure, and won't blow up the site if something goes wrong.

Not sure about direct file editing, I know it's been asked before.
Of course the first issue is that it's really bad security, allowing a webserver to modify its own code, so not many real developers would go too far down that road with public code, although hacks exist. Css sounds safe, but themes include php code - which means anything could happen to your server.
It's not at all hard to do, a simple module for it (or even a php node) would be only a page long. But it's hard to do securely :-)

http://drupal.org/project/theme_editor ?

edit: theme_editor looks perfect! (Does have the security issues I mentioned ... but it's your choice)

.dan.

_

WorldFallz - October 4, 2009 - 22:42

Wow-- how did I miss that one. It does look tempting-- but the security risks give me the heebie jeebies, lol.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Perfect!

doubledoh - October 5, 2009 - 04:46

Uh...THANK YOU!

That's exactly what I was looking for. Sometimes Drupal.org's search engine returns results that are a little off base (or I can't think of the correct search terms...so no wonder).

Anyways...I appreciate your response!

 
 

Drupal is a registered trademark of Dries Buytaert.