Is there a way of doing the above? I've accidentally overwritten one of my css files with the wrong files css ie my standard.css is now standard,css (with the content of menus.css).
Is there a cache or anything that I can copy it out of and replace the correct css back into standard? 'Undo' doesn't work as I moved away from the node after saving, refreshed my page, then realised my mistake, and then some foul language afterwards...!!
I'm not sure it's possible to get the overwritten CSS back.
But you really should be editing your CSS outside of Umbraco using dreamweaver, textmate or whatever editor you prefer. I know it's still possible to make the mistake of overriding the code, but at least the ctrl-z option is possible to use...
I use the firefox developer toolbar to edit my css and then just copy and paste it into umbraco, I used to use dreamweaver years ago when it was 'macromedia dreamweaver' but haven't used it since. I use notepad for most other stuff. It was a stupid mistake and I pasted it into the wrong file!
Just spent the last couple of hours re-writing the whole thing, on a plus note, you can get rid of useless code that piles up when starting from scratch :)
There isn't rollback for CSS, in fact the only thing with rollback support is content.
I strongly suggest that you use a source control system, that way you have full historical revisions of all your changes. Source control has saved my ass many times :)
Rollback css
Hi everyone,
Is there a way of doing the above? I've accidentally overwritten one of my css files with the wrong files css ie my standard.css is now standard,css (with the content of menus.css).
Is there a cache or anything that I can copy it out of and replace the correct css back into standard? 'Undo' doesn't work as I moved away from the node after saving, refreshed my page, then realised my mistake, and then some foul language afterwards...!!
Thanks if anyone's got any ideas.
Sam.
Hi Sam
I'm not sure it's possible to get the overwritten CSS back.
But you really should be editing your CSS outside of Umbraco using dreamweaver, textmate or whatever editor you prefer. I know it's still possible to make the mistake of overriding the code, but at least the ctrl-z option is possible to use...
But unfortunately I think your work is lost...:-/
/Jan
Hi Jan,
I use the firefox developer toolbar to edit my css and then just copy and paste it into umbraco, I used to use dreamweaver years ago when it was 'macromedia dreamweaver' but haven't used it since. I use notepad for most other stuff. It was a stupid mistake and I pasted it into the wrong file!
Just spent the last couple of hours re-writing the whole thing, on a plus note, you can get rid of useless code that piles up when starting from scratch :)
Sam.
Hi Sam
Well, that's of course one method to do it and if that's what makes most sense to you, that's how you should do it. :-)
Yeah, there's always the benefit of getting nicer code when you need to start from scratch and know exactly what the aim is.
/Jan
There isn't rollback for CSS, in fact the only thing with rollback support is content.
I strongly suggest that you use a source control system, that way you have full historical revisions of all your changes. Source control has saved my ass many times :)
Would be nice to have rollback from css and javascript... could be a new package.
is working on a reply...