swri-sodas / sodas-helper
SodasHelper plugin for CakePHP
Installs: 337
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=8.1
- ext-json: *
- cakephp/cakephp: ^5.0
README
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
composer require swri-sodas/sodas-helper
Includes:
Elements:
- Bootstrap toast
- File dropper element
- Read more element
- Back to top element
TinyMCE configuration:
- Sets for TinyMCE 6 and adds bootstrap-like styling
- Requires https://github.com/CakeDC/TinyMCE
- Replaces CkEditor in our sites
CSS
- Bootstrap overrides
- disables the up/down arrows on number inputs
- disables the green checkmark on number inputs
How to use:
composer require swri-sodas/sodas-helper
composer require cakedc/tiny-mce
In Application.php
:
$this->addPlugin('SodasHelper');
Then in the controller method, add:
$this->viewBuilder()->addHelper('TinyMCE.TinyMCE');
In a template, on an input/textarea/etc, add class timymce
eg: echo $this->Form->input('input', ['class' => 'tinymce']]);
Lastly, at the bottom of the template file:
$this->TinyMCE->editor();
Middlewares configuration:
- Set security headers
- HttpsEnforcerMiddleware
- CsrfProtectionMiddleware settings for https
TODO:
- start and end time
- SDDAS (generic plotting) - catalog/DB
- plotting (idl/python/sddas/java (autoplot)) - hpca/
- datatables
- spawning a long running process - geoviz/plotting
- ajax helper