Project

General

Profile

Actions

Feature #91499

closed

Additional attributes for includeJS, includeCSS and all others include**

Added by Christian Stern over 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Start date:
2020-05-26
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
includeJS, attribute
Complexity:
easy
Sprint Focus:

Description

Services like usercentrics wants to add special data-attributes like usercentrics="Google Analytics" to assets included on a page.

The service wants <script> looks like this:

<script type="text/plain" data-usercentrics="Google Analytics" async="" src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X"></script>

With page.includeJS it is not possible to add this attribute via TypoScript-setup.

This would make similar integrations much more simpler.


Related issues 4 (1 open3 closed)

Related to TYPO3 Core - Bug #98626: Filter if conditions before creating tags in PageRendererClosed2022-10-16

Actions
Related to TYPO3 Core - Bug #100954: Additional attributes for page.include** partially brokenClosed2023-06-03

Actions
Related to TYPO3 Core - Feature #89781: Add data attributes to JavaScript filesClosed2019-11-26

Actions
Related to TYPO3 Core - Task #103882: unify additionalAttributes with includeCSS / includeJSNew2024-05-23

Actions
Actions

Also available in: Atom PDF