renderbox
asked on
Rails: Creating a CSS Editor for Admins
I've got a site where an outside company is going to be providing the design and layout of the site. They will need access to the CSS file and have to update it. I don't want to give them access to the rest of the code on the site so I thought a special webpage that lets them update the style sheet would be the best solution.
How would I create a form that allows me to edit the CSS file on the server without compromising the rest of the site's security?
Beyond that is there a good WYSIWYG tool/javascript that anyone has used for color coding the CSS code?
Thanks,
Grant
How would I create a form that allows me to edit the CSS file on the server without compromising the rest of the site's security?
Beyond that is there a good WYSIWYG tool/javascript that anyone has used for color coding the CSS code?
Thanks,
Grant
Use subversion. Create a repo for the CSS file and give them access.
ASKER
I had thought of that but I am looking for something that is less technical for the designers. Command-line and version control scares them.
TortiseSVN is a nice subversion GUI that integrates into the Windows Explorer context menu.
Just to say that I would use wes's option of subversion, and TortoiseSVN is a very easy tool to use, and it has good readme and manuals.
ASKER
SVN would be an ideal solution, but is there another way to do this via a web page form? This is not my first choice but I think it is the only one that will work in this case.
Hmm, I don't really understand what you mean by a web form to do this?
Are you looking to just create a sub-domain, and copy the css files, and temples so that you can edit them as if the site was running and check the edited code?
If you go for a subversion option, this might prove useful?
http://www.polarion.org/index.php?page=screenshots&project=svnwebclient
Are you looking to just create a sub-domain, and copy the css files, and temples so that you can edit them as if the site was running and check the edited code?
If you go for a subversion option, this might prove useful?
http://www.polarion.org/index.php?page=screenshots&project=svnwebclient
ASKER
I was thinking of something like what WordPress uses. There is an admin page that allows you to edit each page and style sheet in a textarea in a form. It's basically a poor-man's editor that lets you copy and paste or edit on the fly and save the CSS over the current one.
I am looking to set-up a sub domain so they can test their changes so I'll check out the link. I am weary of their technical prowess and since they are a sub contractor I am trying to eliminate excuses from their end by making it as simple as possible.
I am looking to set-up a sub domain so they can test their changes so I'll check out the link. I am weary of their technical prowess and since they are a sub contractor I am trying to eliminate excuses from their end by making it as simple as possible.
ASKER
Even a way to allow them to upload their changed file via a web page into the sub domain would be very useful.
"Even a way to allow them to upload their changed file via a web page into the sub domain would be very useful."
Maybe you could add an ftp user on your server and make sure they can access the sub domain files / only the files for that sub domain, and then use something like webftp?
http://www.webftp.co.uk/
Although people maybe suspicious of using something like this, it is a good idea, I am not going to say USE IT, just take a look... it might be just what you want?
Maybe you could add an ftp user on your server and make sure they can access the sub domain files / only the files for that sub domain, and then use something like webftp?
http://www.webftp.co.uk/
Although people maybe suspicious of using something like this, it is a good idea, I am not going to say USE IT, just take a look... it might be just what you want?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is the direction I think I want to go in. Thanks.