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.

Customising the CMS /

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

DataObject Versioning CMS only showing Published records not drafts


Go to End


2 Posts   907 Views

Avatar
mi32dogs

Community Member, 75 Posts

23 May 2015 at 10:05am

Hi I have DataObject and I added versioning to it by adding a app.yml file with

MyRecord:
  extensions:
    - Versioned("Stage","Live")

It created the database tables, but if I now go to my DataObject in the CMS it is only listed the Published records not the records that only have a draft version.

How do I get all records back in the CMS?

Avatar
Pyromanik

Community Member, 419 Posts

25 May 2015 at 2:59am

The interface isn't really set up for versioned dataobjects at all, which is a bit of a shame.
You can however install an extension that probably solves this issue for you.
Try one of these: http://addons.silverstripe.org/add-ons?search=versioned