Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sam 184 posts 209 karma points
    Jan 30, 2011 @ 14:54
    Sam
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 30, 2011 @ 16:52
    Jan Skovgaard
    1

    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

  • Sam 184 posts 209 karma points
    Jan 30, 2011 @ 18:02
    Sam
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 30, 2011 @ 18:10
    Jan Skovgaard
    0

    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

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jan 30, 2011 @ 23:06
    Aaron Powell
    1

    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 :)

  • Daniel Bardi 927 posts 2562 karma points
    Jan 31, 2011 @ 02:06
    Daniel Bardi
    1

    Would be nice to have rollback from css and javascript... could be a new package.

Please Sign in or register to post replies

Write your reply to:

Draft