Easy support for JS embeding plugin
Bug #1019586 reported by
Greg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PHPDevShell |
Fix Committed
|
Wishlist
|
Greg |
Bug Description
They are more and more nice javascript addition for website. For example:
http://
http://
...
These products are client-only and don't interfere with the framework inner working. Using them is usually easy but can be made easier by slightly altering the controller so we can write embedding plugin (such as we do for tinyMCE) that can automatically provide them to the pages.
Related branches
Changed in phpdevshell: | |
importance: | Undecided → Wishlist |
assignee: | nobody → Greg (gregfr) |
Changed in phpdevshell: | |
status: | New → In Progress |
Changed in phpdevshell: | |
status: | In Progress → Fix Committed |
Changed in phpdevshell: | |
milestone: | none → 3.2.1-stable |
Changed in phpdevshell: | |
milestone: | 3.2.1-stable → 3.5 |
To post a comment you must log in.
The idea is that neither the controller or the view should be bothered with the javascript code or path ; just add a line like this in the controller :
$this- >template- >activatePlugin ('ddSlick' );
Creating such a plugin is really easy (just two files, config.xml and a class file).
At some point the library creators will probably want to maintain these plugin themselves ;)