Deprecation: #95318 - TypoScript parseFunc.sword
See forge#95318
Description
The TypoScript option parse
allows to wrap
search words (such as defined via GET parameter sword_
)
in a special wrap when no_
is set. This functionality has been marked as
deprecated as this feature only works in non_cached environments, which
is not a recommended solution by TYPO3.
Since this behavior is enabled by default, it is highly recommended to avoid
this in general, which can be achieved by disabling the no_
GET parameter
in Default
.
Also, such an option within parse
does not cover all cases to highlight
a search word, such as in headlines or HTML content which is not rendered
via parse
.
Impact
Websites called via https://
and a custom sword wrap will trigger a PHP E_
error.
As this feature is seldom used and only configured with indexed search as desired functionality, deprecations are only triggered when explicitly configured.
In addition, this feature only works if disable
is disabled or config.
is explicitly set via TypoScript
which is also not recommended in production.
Affected Installations
TYPO3 installations actively using the GET argument sword_
and have
no_
as allowed GET argument enabled, usually in cases where indexed
search is in use.
Migration
It is recommended to implement this functionality on the client-side via JavaScript as a custom solution, when this feature is needed.
Setting lib.
to an empty string will actively
disable the functionality and not trigger a PHP E_
error as well.
Setting lib.
will also not trigger a PHP E_
error for TYPO3 v11.