Feature: The scripts of the new job form can be switched off
Description
The Jobs New content element registers two scripts from inside
its template: CKEditor 4 from its content delivery network, and the module
@fgtclb/ that configures it. An
installation that brings its own editor, or wants none, had to override the
whole template to leave them out.
Both 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_academicjobs.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_academicjobs.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: the form loads both scripts exactly as before.
Switched off, the page loads neither, and the markup is unchanged. The form
keeps working: the description fields are plain text areas with the class
ace-, and a visitor submits the text as it is. See
Load the script or bring your own.
A project that overrides Templates/ keeps whatever its copy
loads. The switch reaches it once it wraps its own
<f: and
<f: in
<f:.