web-vision/deepl-base

TYPO3 Extension providing shared things across deepl related extensions, for example a shared point when overriding same TYPO3 backend fluid files are required and similar.

Installs: 43

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

dev-main / 1.x-dev 2025-06-10 10:33 UTC

This package is auto-updated.

Last update: 2025-06-10 10:34:58 UTC


README

URL
Repository: https://github.com/fgtclb/academic-bite-jobs
Read online: https://docs.typo3.org/p/fgtclb/academic/academic-bite-jobs/main/en-us/
TER: https://extensions.typo3.org/extension/academic_bite_jobs/

Description

This package is a TYPO Extension providing some shared things required by multiple deepl translate or write related extensions, which should work together but must working independent of each other requiring this shared base extension as common ground.

Note

This extension does not provide anything use-full as direct usage, and make no sense to install it solo. Should only be a dependency for other extensions.

Compatibility

Branch Version TYPO3 PHP
main 1.0.x-dev v12 + v13 8.1, 8.2, 8.3, 8.4 (depending on TYPO3)
1 ^1 v12 + v13 8.1, 8.2, 8.3, 8.4 (depending on TYPO3)

Installation

Install with your flavour:

  • TER
  • Extension Manager
  • composer

We prefer composer installation:

composer require 'web-vision/deepl-base':'1.*.*@dev'

Note

Until first release you may need to ensure allowing dev versions but preferring stable releases which requires:

composer config minimum-stability "dev" \
&& composer config "prefer-stable" true

Documentation

Note

For the start the documentation for developers and integrators are contained here in the README.md file and will be converted into a rendered documentation at a later point.

PageLayout module localization model - Translation Modes

ViewHelper

InjectVariablesViewHelper

InjectVariablesViewHelper can be placed in fluid templates and requires to define a speaking identifier used to dispatch the PSR-14 ModifyInjectVariablesViewHelperEvent event, which can be used to set or modify variables either in the global current template scope or for children rendering scope.

Example usage in fluid template
<html
    data-namespace-typo3-fluid="true"
    xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
    xmlns:deeplbase="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
>
<deeplbase:injectVariables identifier="custom-template-variable-inject">
    Render {globalOrLocalVariableProviderVariable} only available in children
    context.
</deeplbase:injectVariables>
Render {globalOnlyVariableProviderVariable} only ignoring local variable provider
changes.
</html>
ModifyInjectVariablesViewHelperEvent
  • getIdentifier(): string: identifier used within the fluid template and should
  • getGlobalVariableProvider(): VariableProviderInterface: provides the fluid variable container of the current context. Modification will be available after the ViewHelper and within the children context unless overridden within the getLocalVariableProvider.
  • getLocalVariableProvider(): VariableProviderInterface: provides the fluid variable container with children context only variables, overriding global variables. Local variable does not change the variables in the template after the ViewHelper call.

Modified Backend Templates

Note

Modifed backend templates are listed here describing the modification, for example if one or more InjectVariableViewhelper has been places along with the identifier and use-case.