7912 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 979 Views |
-
Stage mode with DOM - extensions didnt work

9 March 2011 at 6:32pm
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
-
Re: Stage mode with DOM - extensions didnt work

11 June 2011 at 1:42am
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.
-
Re: Stage mode with DOM - extensions didnt work

11 June 2011 at 3:25am
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
| 979 Views | ||
|
Page:
1
|
Go to Top |


