Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Turn off versioning for a Subclass of Page


Reply


4 Posts   959 Views

Avatar
brice

Community Member, 51 Posts

10 September 2010 at 1:28pm

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?

Avatar
Willr

Forum Moderator, 5513 Posts

10 September 2010 at 4:04pm

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

Avatar
brice

Community Member, 51 Posts

11 September 2010 at 6:32am

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

Avatar
Willr

Forum Moderator, 5513 Posts

11 September 2010 at 4:39pm

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.