A simple placeholder widget for OctoberCMS.
To install the Comment widget, add the following to your plugin's composer.json
file.
"require": {
"owl/comment": "~1.0@dev"
}
Next, register the widget in your plugin's Plugin.php
file.
public function registerFormWidgets()
{
return [
'Owl\FormWidgets\Comment\Widget' => [
'label' => 'Comment',
'code' => 'owl-comment'
],
];
}
The comment widget serves no form function, it exists solely to place extra text in your form.
comment:
type: owl-comment
label: Hello world
comment: >
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla porttitor
imperdiet elit, sed pellentesque eros. Morbi blandit elit a turpis
pellentesque tincidunt.