Jump to:

23355 Posts in 17838 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Turn off versioning for a Subclass of Page

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 924 Views
  • brice
    Avatar
    Community Member
    51 Posts

    Turn off versioning for a Subclass of Page Link to this post

    Is it possible to turn off versions / versioning for a subclass of Page / SiteTree while preserving the ability to use Page Commenting? I often have sites where the admin never uses the versioning feature, yet the database grows beyond the webhost limits.

    Or perhaps as a feature request; limit versions to say the last X for each page, defaulting to 5?

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Turn off versioning for a Subclass of Page Link to this post

    Rather than disabling it totally you could have a daily task which deletes the older versions (say older than 2 days)

  • brice
    Avatar
    Community Member
    51 Posts

    Re: Turn off versioning for a Subclass of Page Link to this post

    sure .. that can be done. It's a little more work & I'd like to see that built into core as part of a GC routine -- but; does removing the "versioned" extension sound like a sane workaround, or is it integral to the system?

    Thanks!

    ~ Brice

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Turn off versioning for a Subclass of Page Link to this post

    Well haven't ever tried removing the extension but I would think the CMS relies heavy on versioned. Since that not only handles version history it also handles draft vs live staging and throughout the publishing stages.

    924 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.