Modules: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
Line 43: Line 43:


If you  use the [[Website Generator]], '''set both parameters to false'''.
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 a script in your own index file:
<pre>
<script>
  const urlParams = new URLSearchParams(window.location.search);
</script>
</pre>
You can also use - i.s.o. the script above - the runtime library for ''CumulusUtils'':
<pre>
<script src='lib/cumulusutils.js'></script>
</pre>
This library is currently only generated with the website command (which you can run even if you don't use the website) but in future it will be possible to generate it separately with an additional command. It will then get it's own entry in the wiki.


[[Category:CumulusUtils]]
[[Category:CumulusUtils]]