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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Turn off versioning for a Subclass of Page


Go to End


4 Posts   1327 Views

Avatar
brice

Community Member, 52 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, 5523 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, 52 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, 5523 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.