Help to add to existing site
Closed this issue · 1 comments
MattyBalaam commented
At the moment adding this to an existing site leaves all data-objects as unpublished. Do you have a way of automatically publishing all objects?
camspiers commented
Hi @MattyBalaam, you could add a temporary controller (or an action on an existing controller), and write some code to publish the object in question.
foreach (MyObject::get() as $obj) {
$obj-> publish('Stage', 'Live');
}
I haven't tested this code, but it might work.