Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Stage mode with DOM - extensions didnt work

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1171 Views
  • nic_james
    Avatar
    Community Member
    1 Post

    Stage mode with DOM - extensions didnt work Link to this post

    Hi Uncle Cheese - or anyone who can help,

    I'm using the Data Object Manager but can't seem to get ?stage=Stage to work. Whenever I update anything using Data Object Manager, the changes immediately go live.

    I know others have posted this problem here, and I saw that a suggestion was simply adding:
          static $extensions = array(
           "Versioned('Stage', 'Live')"
          );

    ... to the class that is extending DataObject. I did this but it did not work. I did a /dev/build/?flush=all and still the changes are going immediately live.

    I'm running SS 2.4.2 and updated to your newest version of Data Object Manager you posted today.

    Thank you for your help. I'm not getting any errors, this change simply did nothing. Am I missing something?

    nic

  • T-Muns
    Avatar
    Community Member
    8 Posts

    Re: Stage mode with DOM - extensions didnt work Link to this post

    I'm in the same situation. Adding that code and doing a /dev/build will create the versioned tables, but you still have to add the logic to manage the versions as well as the logic for the history.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Stage mode with DOM - extensions didnt work Link to this post

    I think I gave a good explanation here http://www.silverstripe.org/dataobjectmanager-module-forum/show/17152

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

    1171 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.