Configuration
ai3-alttext has no extension-specific settings in the TYPO3 Extension Manager. All configuration is done via environment variables that are read by wegewerk/ai3_core .
Environment variables
The following environment variables must be set on the server before the extension can communicate with the ZAK-AI API:
-
- Type
- string
- Default
- (empty)
The API key issued by ZAK-AI for your account. When this variable is empty, all API calls will throw a
Runtime.Exception
-
- Type
- string
- Default
- (empty)
The shared secret used together with
ZAKAI_to build the HTTP Basic Authorization header (API_ KEY base64).(secret + ':' + api Key)
Set these variables in your server environment, .env file, or
TYPO3 config/system/additional.php:
putenv('ZAKAI_API_KEY=your-api-key');
putenv('ZAKAI_SECRET=your-secret');
TCA override
The extension overrides the alternative column of the
sys_ table to add the
Add alttext generation to batch field control button. No
manual TCA configuration is required.
JavaScript modules
The extension registers its JavaScript modules under the
@wegewerk/ namespace via
Configuration/. The following modules are
available:
| Module | Purpose |
|---|---|
@wegewerk/ | Renders the file list and handles bulk selection |
@wegewerk/ | Handles per-file actions (generate, approve, edit) |
@wegewerk/ | Renders the folder tree and recursive accept action |
@wegewerk/ | FormEngine field control button behaviour |
@wegewerk/ | Shared Ajax helper for all backend API calls |