Copied to clipboard

Flag this post as spam?

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


  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Jul 13, 2010 @ 10:42
    Ali Sheikh Taheri
    0

    delete versions?!

    Is there anyway that I can delete all the previous versions of a document and keep the last one ?!!

    Any help much appreciated

    Thank

    Ali 

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Jul 13, 2010 @ 10:50
    Ismail Mayat
    0

    Ali,

    Take a look at the excellent client tools http://clienttools4umbraco.codeplex.com/

    Regards

    Ismaiol

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jul 13, 2010 @ 10:53
    Matt Brailsford
    2

    If you need to do it on an ongoing basis, you could also try my UnVersion package which, for configured pages, can automatically clean up versions where you don't need them, just keepin the latest.

    http://our.umbraco.org/projects/website-utilities/unversion

    Matt

  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Jul 13, 2010 @ 11:07
    Ali Sheikh Taheri
    0

    Hi Matt, Thanks for you quick reply.

    I have installed your package. and change the unversion.config to this

    <?xml version="1.0"?>

    <unVersionConfig>

      <add docTypeAlias="RunwayTextpage" />

      <add docTypeAlias="Section" />

    </unVersionConfig>

    how can I trigger it ?  It didnt delete the previous versions of Sections? ! 

     

  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Jul 13, 2010 @ 11:14
    Ali Sheikh Taheri
    0

    Just found out, I need to publish the document that it will delete all the previous versions 

    Cheer Matt

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jul 13, 2010 @ 11:20
    Matt Brailsford
    0

    Hey Ali,

    Thats right. So the way you have it setup, any documents of type RunwayTextpage and Section, when published, will auto clear out their version history. You can also use the rootXpath if you want to limit this to a certain area of the site. Any standard Umbraco XPath should work.

    Many thanks

    Matt

  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Jul 13, 2010 @ 11:21
    Ali Sheikh Taheri
    0

    Thanks mate,

    Just for curiosity, is there any way that we can set it up that keeps only last 10 versions?

    Ali

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jul 13, 2010 @ 11:23
    Matt Brailsford
    0

    Hey Ali,

    Not right now, but it's on my list, along with a couple more updates. As soon as I get the time, I'll give it a bit of an update.

    Matt

  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Jul 13, 2010 @ 11:24
    Ali Sheikh Taheri
    0

    Great

    that is a wicked package mate.

    Cheers

    Ali

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies