Modules: Difference between revisions

609 bytes added ,  5 December 2024
m
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
#[[ChartsCompiler]]
#[[MeteoCam]]
#[[Diary]]
#[[UserAskedData]]
 
#[[ChartsCompiler|CompileOnly]] => a command which activates the compiler only. This is a very specific command with more than one effect. Please check out its own page.
 
If you use modules but want the resulting server location outside of youyour main website location (e.g. in a subdirectory CUtils) then please create that directory and set your uploads for CUtils accordingly. To have your website find the specific realtime values (the JSON files) specifically generated for CUtils, than run the [[UserAskedData]] command and set the parameter where to locate those data. In the case as above:
DoModular=true
ModulePath=<path>
 
If you use the [[Website Generator]], '''set both parameters to false'''.
 
== Commandline parameters (v7 and up) ==
 
 
To have modules work properly with the commandline parameters introduced in version 7 of CUtils, you need to use the runtime library for ''CumulusUtils''
<pre>
<script src='lib/cumulusutils.js'></script>
</pre>
This library is generated with the website command separately with the ''CUlib'' command. <br>
It has it's [[CumulusUtils Runtime Library|own entry in the wiki]].
 
You can also use - i.s.o. the library above - a script in your own HTML file:
<pre>
<script>
const urlParams = new URLSearchParams(window.location.search);
</script>
</pre>
 
[[Category:CumulusUtils]]