Editing Themes Online?
I've used other CMS systems that allow editing of the theme templates directly through the admin panel (some store the actual theme code and CSS in the db, some just allow editing of the file on the filesystem) I don't care which it does, though it would be really nice to be able to edit it without going to my shell and using VI, or going to my cpanel filemanager and editing there...(or uploading/downloading if I'm editing outside of the actual webserver)...
any plans for this? or did I miss something?
Some of the challenge of course is that our template files aren't in a special template language, like Smarty, but rather just PHP files; so there's some security concerns and some head-scratching around the potential to actively break your site :-)
I would never write php code using an "online editor". I came across a couple of online php code editors but all of them are annoying..
It's so much easier to write code with a "real editor". But obviously not everyone thinkgs like that :)
ssh and vi is much more powerful!
What I'm talking about is the situation where you have this great CMS and you can edit all the content of the site online, but then the website owner decides they want the background color of the header changed, and you then realize that you have to ssh into the filesystem and find the css file for the active theme, and edit it there.
I've used the CMS Made Simple for most of my other sites, and they have made the templates and the stylesheets editable inside the admin panel:
For any of the sites my team has made over the years, this would be a complete disaster. Our stylesheets are highly custom beasts, and our layouts tend to be pretty design centric. Giving someone the ability to beat them up with a color picker would cause complete anarchy.
While I appreciate that a lot of Themes might be a good deal more functional than what we tend to deliver, I also can't help but to notice that even the free one's people are converting now are pretty complicated.
What it comes down to is this. We see web site ownership much like home ownership. The home owner SHOULD get in and do some DIY work. It's great when a home owner replaces their own faucet, or even snakes out their own drain - but when you start pulling pipes out of the wall, you might want to call an expert.
What makes c5 so great (imho) is that it is designed to make that site owner feel comfortable messing around with content and arrangement, but it gives developers complete freedom in making a highly custom, marketing driven site. You can comfortably let your clients beat content up till their blue in the face, knowing they can't easily destroy the shared fundamentals like the style sheet.
That make sense? I certainly get the appeal, particularly since we're getting a lot of business/site owners coming here and not really understanding how they can get started... I think that's our next challenge to face, we've gotta some how connect these potential site owners with this great crowd of site developers...
I think concrete5 might be the one.
Just a clarification though, I wasn't talking about turning C5 into one of those point and click site designers with color pickers, etc. I was just talking about giving certain users the ability to edit template and css files when logged into the admin panel. Certain other users would only have access to the site content, and not the template/css. Other CMS's have this type of separation to avoid the situation you illustrate of having people tinkering with css/template code when they shouldn't be.
If such a separation existed, I'd just create one admin login for myself, and another login to give my clients, so they could just edit certain things on the site, but not the template.
I can definitely live with it the way it is, and I appreciate all the work you guys have put into it and the time you spend monitoring these forums. Thanks!
Maybe a package of css templates that weren't image based, and could all be customized ... so pick style, choose colors, get your personalized theme.. i've seen UI's out there that are interesting that way..
we're going to being focusing our attention more on the "owner" side of the equation for a little bit here so we may come up with something.. keep the good feedback coming!
I have typography based template running now, works very well. No images at all.
I don't think we're talking about anything more than the ability to edit the actual HTML/PHP/CSS of files within the themes/whatever/ directory through the dashboard itself.
Obviously, there are definite caveats:
1. Remo is right: any coder isn't going to want to use this for more than trivial changes, which is why it's absolutely key that current practices remain in place, and the files are physically on the drive, in the themes directory.
2. The files themselves will have to be writable by the web server, or the web server setup in such a way that allows this to be the case without exposing the templates to everyone on the box.
But I can see the appeal: for example, Franz, we've talked about how it might be nice to be able to allow people to add their Google Analytics code, or other stat tracker code, through the dashboard. Well that's exactly what this would allow: open up the theme, inspect "elements/footer.php" and paste the code in there, and click save.
I like brainstorming.
From my point of view, there are a few more important features requests!
By the way, guys. If you've ever had one girlfriend after another, and then finally met The One--that's what Concrete is for me. Great job. Thanks.
The problem with editing locally and uploading is that you don't usually have a full installation of the CMS locally, you might only have it on a remote webserver...
But all in all, the benefits of C5 over other CMSs I've used is well worth the change in method for this part of the site maintenance.
I like markcmyers' comments... a former CMSMS user like me !!
Andrew, yeah i'm seeing the value in this slowly.. (how dare you suggest I could be wrong... this is an outrage!)
What i'm thinking is it might be cool to continue to have themes be dropped in.. not give up any of custom power we give to developers... buuut, let them define a parameter in their stylesheet that we can have a "theme tweaker" look to..
so you add a //c5editable type comment to any line in yer css file you might want to let a site owner tweak.
then in the dashboard there'd be a tool that sniffs the css file, and gives you a list of things you can mess with. Pick one of em and you get (what i hope could be a 3rd party) style editor where you can pick a new color and mess with position properties...
I think it's a good compromise. The folks who are just looking to make a simple blue css template red for their local sports team can do so easily, while the ad agencies can lock their clients down to not be able to do anything outside of content..
biggest question in my mind: does a 3rd part stylesheet editor exist that's any good?
it would have to be LAMP based and have a friendly license.
I just did a couple of things with WordPress, they have an online editor too, just a huge ugly textarea where you can quickly change a couple of things.
I see the point of having a few customizable css properties. Like you can add functions to the wordpress admin interface with your theme to let the users select their colors but isn't that another thing?
I think I could also install one of those small online php filemanagers that also let you edit files... I know I've used one in the past....