Disable live - draft

Any way to disable this feature on forms? Have tried multiple things, but non of it seems to work.
5 Replies
kallefrombosnia
kallefrombosniaOP2y ago
Would like to keep 'Update' only haha
Hro
Hro2y ago
remove publishable from your model?
Hro
Hro2y ago
This is from a "setting (twill3)"
Hro
Hro2y ago
protected function setUpController(): void
{
$this->disablePermalink();
$this->disableEditor();
$this->disableCreate();
$this->disablePublish();
$this->setTitleColumnKey('name');
protected function setUpController(): void
{
$this->disablePermalink();
$this->disableEditor();
$this->disableCreate();
$this->disablePublish();
$this->setTitleColumnKey('name');
protected function form(?int $id, ?TwillModelContract $item = null): array
{
$base = parent::form($id, $item);

$base['customTitle'] = $base['item']->getSettingGroup()->getLabel();

$base['publish'] = false;
$base['editableTitle'] = false;

return $base;
}
protected function form(?int $id, ?TwillModelContract $item = null): array
{
$base = parent::form($id, $item);

$base['customTitle'] = $base['item']->getSettingGroup()->getLabel();

$base['publish'] = false;
$base['editableTitle'] = false;

return $base;
}
not sure if you need the latter. But sharing just in case. (this is from the controller)'
kallefrombosnia
kallefrombosniaOP2y ago
Ok Ill check this, lunch atm ty @Harings Rob This worked tnx. Overriding method and setting publish to false didnt affect the frontend.
Want results from more Discord servers?
Add your server