Silverstripe Version:4.2.1
Bring back Content field:
I have installed GitHub - dnadesign/silverstripe-elemental: Create pages in SilverStripe using content blocks, which hides ‘Content’ field.
Is there an option to bring them back?
Silverstripe Version:4.2.1
Bring back Content field:
I have installed GitHub - dnadesign/silverstripe-elemental: Create pages in SilverStripe using content blocks, which hides ‘Content’ field.
Is there an option to bring them back?
I am not sure what you trying to achieve? Use the build in ContentElement there you have a HTMLEditorField.
Or you can do something like
public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldsToTab(
'Root.Main',
[
HTMLEditorField::create(
'Content',
'Content'
)
),
]
);
return $fields;
}
And the PageType you are adding it to needs a Content db field.
There’s some discussion around this here: Stop replacing the default Content field · Issue #410 · dnadesign/silverstripe-elemental · GitHub
The configurable option will be welcomed by me
I recently upgraded silverstipe 3 to silverstripe 4. Now the client wants to to make some change ie add new section so I thought would be nice to install Elemental module, to mange those block in the section.
I have used ‘silverstripe-blocks’ by Shea Dawson, but that does not seem to work on new silverstripe4.
As suggested by Tim configurable option would be nice.