Modules: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
255 bytes added ,  16 April 2021
m
 
== Javascript libraries ==
The usage of javascript libraries like jQuery, Highcharts or Leaflet is controlled by the user who already may have these libraries included in his website on another level. In that case a second inclusion is not wanted. Therefore two explicit parameters exist which govern these situations: ''GeneratejQueryInclude'' and ''DoLibraryIncludes''.
Each module has its own parameters but for modules which use javascript, Highcharts or Leaflet libraries there are additional considerations. It is assumed that modules are used within a website so there is no document load function to start the javascript or other initialisation.
 
As [https://jquery.com/ jQuery] is a requirement for almost all modules (with menu's), CumulusUtils has provided a parameter ''GeneratejQueryInclude'' in the section [General] which the user can set to true or false. If his site has already a general inclusion of this library or another version, set it to false. If the site has no other use for jQuery, set it to true. If you have no idea what Ithis am talkingis about, set it to true or start reading about jQueryjavascript libraries.
 
Libraries for Highcharts or Leaflet are always included when required in thata specific module butIF thisthe mayinifile changeparameter in''DoLibraryIncludes'' futureis true (default). Set to false if you already use the libraries on another level. If you have no idea what this wikiis about, set it to true or start willreading beabout adjustedjavascript accordinglylibraries.
 
If you use the [[Website Generator]], '''set both parameters to false'''.
 
[[Category:CumulusUtils]]

Navigation menu