Project

General

Profile

Actions

Bug #100954

closed

Additional attributes for page.include** partially broken

Added by Peter Neumann over 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2023-06-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 v12.1 has introduced the possibility to add additional additional tag attributes for CSS and JavaScript files.

The feature seems to be broken for these include types:

page {
  includeJSLibs {
    someIncludeFile = EXT:sitepackage/...
    someIncludeFile.data-foo = bar
  }
  includeJS {
    someIncludeFile = EXT:sitepackage/...
    someIncludeFile.data-foo = bar
  }
  includeJSFooter {
    someIncludeFile = EXT:sitepackage/...
    someIncludeFile.data-foo = bar
  }
}

These are working:

page {
  includeCSSLibs {
    someIncludeFile = EXT:sitepackage/...
    someIncludeFile.data-foo = bar
  }
  includeCSS {
    someIncludeFile = EXT:sitepackage/...
    someIncludeFile.data-foo = bar
  }
  includeJSFooterlibs {
    someIncludeFile = EXT:sitepackage/...
    someIncludeFile.data-foo = bar
  }
}

For includeJSFooterlibs however, it is also mapping reserved attributes like the forceOnTop in the output source code to <script src="/_assets/dca94d8cd3b58fdfd24fde44814e41a3/…" forceontop="1" data-foo="bar"></script>


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Feature #91499: Additional attributes for includeJS, includeCSS and all others include**Closed2020-05-26

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

Actions
Actions

Also available in: Atom PDF