Project

General

Profile

Actions

Feature #91499

closed

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

Added by Christian Stern almost 4 years ago. Updated over 1 year 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 3 (1 open2 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 brokenAccepted2023-06-03

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

Actions
Actions

Also available in: Atom PDF