Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Set feature behind a flag #679

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Configuration/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@
'event.listener',
['identifier' => 'headless/AfterLinkIsGenerated']
);
$services->set(AfterCacheableContentIsGeneratedListener::class)->tag(
'event.listener',
['identifier' => 'headless/AfterCacheableContentIsGenerated']
);

$features = GeneralUtility::makeInstance(Features::class);

if ($features->isFeatureEnabled('headless.pageTitleProviders')) {
$services->set(AfterCacheableContentIsGeneratedListener::class)->tag(
'event.listener',
['identifier' => 'headless/AfterCacheableContentIsGenerated']
);
}

if ($feloginInstalled) {
$services->set(LoginConfirmedEventListener::class)->tag(
'event.listener',
Expand Down
24 changes: 24 additions & 0 deletions Documentation/Configuration/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ To enable headless support for `EXT:workspaces` please also add to you site(s) c

headless: true

**headless.pageTitleProviders**

Enable support for PageTitle API

.. code-block:: php

$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['headless.pageTitleProviders'] = true;


**Availability of feature toggles by version**

.. t3-field-list-table::
Expand All @@ -132,42 +141,57 @@ To enable headless support for `EXT:workspaces` please also add to you site(s) c
- :Header1: Flag
:Header2: 2.x
:Header3: 3.x
:Header3: 4.x

- :Header1: FrontendBaseUrlInPagePreview
:Header2: available
:Header3: removed
:Header4: removed

- :Header1: headless.frontendUrls
:Header2: >= 2.5
:Header3: available
:Header4: removed

- :Header1: headless.storageProxy
:Header2: >= 2.4
:Header3: available
:Header4: available

- :Header1: headless.redirectMiddlewares
:Header2: >= 2.5
:Header3: available
:Header4: available

- :Header1: headless.nextMajor
:Header2: >= 2.2
:Header3: currently not used
:Header4: currently not used

- :Header1: headless.elementBodyResponse
:Header2: >= 2.6
:Header3: available
:Header4: available

- :Header1: headless.simplifiedLinkTarget
:Header2: >= 2.6
:Header3: removed
:Header4: not available

- :Header1: headless.jsonViewModule
:Header2: not available
:Header3: >= 3.0
:Header4: >= 3.0

- :Header1: headless.workspaces
:Header2: not available
:Header3: >= 3.1
:Header4: >= 3.1

- :Header1: headless.pageTitleProviders
:Header2: not available
:Header3: not available
:Header4: >= 4.2.3

.. _configuration-ext-form:

Expand Down