.. include:: /Includes.rst.txt .. _configuration: ============= Configuration ============= .. contents:: :local: :depth: 2 .. _configuration-backend-module: Backend Configuration Module ============================= The primary way to configure this extension is through the dedicated backend module located at :guilabel:`Site > Rek.ai`. It is accessible to administrators only. Configuration is **per TYPO3 site**. When the TYPO3 installation contains more than one site, a site selector dropdown appears at the top of the module. Select the site you want to configure before making changes — each site stores its own independent set of values in :file:`config/sites//settings.yaml` under the ``one_forge_rekai`` key. .. figure:: /Images/BackendModule.png :alt: The Rek.ai backend configuration module :class: with-shadow The Rek.ai configuration module. The module is divided into two sections: **Script Integration** and **Autocomplete**. .. _configuration-script-integration: Script Integration ------------------ .. _configuration-load-scripts: Load Scripts ^^^^^^^^^^^^ .. rst-class:: dl-parameters Type Boolean (toggle) Default Disabled When enabled, the Rek.ai JavaScript is injected as a `` With *Non CSS Version* enabled: .. code-block:: html .. _configuration-autocomplete: Autocomplete ------------ The extension can load and initialise the Rek.ai autocomplete library automatically. All autocomplete settings are managed in the same backend module. .. _configuration-autocomplete-mode: Autocomplete Mode ^^^^^^^^^^^^^^^^^ .. rst-class:: dl-parameters Type Select (integer) Options | ``0`` – Disabled *(default)* | ``1`` – Enabled with selector | ``2`` – Enabled with custom script Controls whether the autocomplete feature is active and how it is initialised. * **Disabled** — no autocomplete library is loaded. * **Enabled with selector** — the autocomplete library (``rekai_autocomplete.min.js``) is loaded and the extension generates an initialisation script automatically based on the settings below. A preview of the generated script is shown in the module. * **Enabled with custom script** — the autocomplete library is loaded and the content of **Custom autocomplete script** is injected verbatim as an inline ``