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

2.1.5 2024-03-06 15:19 UTC

This package is auto-updated.

Last update: 2024-04-06 15:28:24 UTC


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:

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