Skip to content

Use EXT: path for backend module CSS in TYPO3 14 - #23

Draft
LvckyAPI with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-system-resource-not-found-exception
Draft

Use EXT: path for backend module CSS in TYPO3 14#23
LvckyAPI with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-system-resource-not-found-exception

Conversation

Copilot AI commented May 27, 2026

Copy link
Copy Markdown

In TYPO3 14, rendering the eRecht24 backend module can fail with SystemResourceDefinitionNotFoundException because f:be.pageRenderer receives a CSS path generated via f:uri.resource() (including query params) that is rejected as a project path.
This PR switches the CSS reference to an extension resource path accepted by TYPO3’s system resource handling.

  • Backend layout resource loading
    • Updated Resources/Private/Layouts/Backend.html to stop passing f:uri.resource() output into includeCssFiles.
    • Replaced it with a static EXT: resource reference.
<f:be.pageRenderer includeCssFiles="{0: 'EXT:er24_rechtstexte/Resources/Public/Css/BackendModule.css'}"
    includeJavaScriptModules="{0: '@erecht24/er24-rechtstexte/erecht24-module.js'}">
</f:be.pageRenderer>
  • Behavioral impact
    • Keeps backend module asset inclusion intact while avoiding disallowed typo3conf/ext/...?... project-path resolution in TYPO3 14.

Copilot AI changed the title [WIP] Fix SystemResourceDefinitionNotFoundException in TYPO3 14 Use EXT: path for backend module CSS in TYPO3 14 May 27, 2026
Copilot AI requested a review from LvckyAPI May 27, 2026 05:20
@LvckyAPI

Copy link
Copy Markdown
Member

@copilot And is it still backward compatible up to TYPO3 v12?

Or up to which version?
Can you send me the link to the documentation for that change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

f:uri.resource() in f:be.pageRenderer causes SystemResourceDefinitionNotFoundException in TYPO3 14

2 participants