Feature: The scripts of the program list and finder can be switched off
Description
The Course List registers the module
@fgtclb/, from its template and
from the three partials of its filter form, and the Course Finder
registers
@fgtclb/. An
installation that brings its own scripts had to override every one of those
files to leave them out.
Both modules are switchable now, together, per site:
| Site setting and constant | Default |
|---|---|
plugin. |
true
|
It is declared by the site set fgtclb/, with every other
setting of this extension:
plugin.tx_academicprograms.assets.js: false
An installation that configures its frontend through
sys_
records sets the TypoScript constant of the very same name, in
Constants:
plugin.tx_academicprograms.assets.js = 0
Every academic extension that loads a script has this switch, named
assets. below its own plugin namespace and switched on by
default, after the switch of the study plan content element.
Impact
Nothing changes for an installation that configures nothing: both elements load their scripts exactly as before.
Switched off, the page loads neither, and the markup is unchanged. Both elements keep working: the list reloads the page when its form is submitted with the button, and the finder submits to the list without narrowing its options first. See Load the script or bring your own.
A project that overrides Templates/,
Templates/ or one of the partials
Program/, Program/ and
Program/ keeps whatever its copy loads. The switch
reaches it once it wraps its own
<f: in
<f:.