Modules: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
275 bytes removed ,  5 May 2021
m
 
== Javascript libraries ==
TheWhen usageusing of javascript librariesthe like[[Website jQueryGenerator]], Highchartsall ormodules Leafletare isused controlledimplicitly. byModules, thewith usersome whoexceptions, alreadycan maybe haveused these libraries includedstandalone in hisany website onby anotherincluding level.the Inoutput of CumulusUtils in that casewebsite. aWhen secondusing inclusionthe isstandalone notmode wanted.you Thereforeneed twoto explicitbe aware parametersof existthe which[[cumulusutils.ini|inifile governparameters]] these(section situations:general) ''GeneratejQueryInclude'' and ''DoLibraryIncludes''.
 
#GeneratejQueryInclude will - if true - generate the required jQuery library reference line on top of the module.
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 you have no idea what this is about, set it to true or start reading about javascript libraries.
#DoLibraryIncludes will - if true - generate the required library references (e.g. HighCharts, Leaflet etc...) on top of the module.
 
If you manage these libraries in your website yourself set these parameter values to false.
Libraries for Highcharts or Leaflet are included when required in a specific module IF the inifile parameter ''DoLibraryIncludes'' is true (default). Set to false if you already use the libraries on another level. If you have no idea what this is about, set it to true or start reading about javascript libraries.
If the modules don't work and you have no idea what this is about, set these values to true.
 
If you use the [[Website Generator]], '''set both parameters to false'''.

Navigation menu