Review main Abandoned

92614[POC][FEATURE] Allow to publish CSS and JS through Site config dir

Garvin Hicking CR 0 V -1 Normal +80 −1 updated 03/04/26, 13:01

Commit message

With the Camino theme, a lightweight theme has been created. To
adapt and customize themes like that, it might be sufficient to
add custom CSS and JS to it, and not need to create an own extension
for it.

The same applies for other "introduction" packages or variations
of a sitepackage without needing to create X sub-sitepackages.

Site Settings already allow to provide TypoScript on their own,
so a low-hanging fruit is that we now also support to store
"Css" and "JavaScript" directories in there, which can hold
the appropriate files (even created with bundlers or through
deployments).

This is stored in the `site/config/site-identifier/` directory
structure.

It can utilize the System Resource API to publish files from
there to the public (temporary) location ("_assets").

THIS IS A PROOF OF CONCEPT ONLY. Read the caveats.

Test it by placing files in your `site/config/.../` directory,
currently I only tested it in composer mode, and it's dirty,
because the System Resource API currently has the publishing
part not implemented yet. So this patch leverages custom
publishing to `_assets/`.

Review

  • Code review CR 0
  • Verified V -1
    • core-ci -1 CI

Issues 1

Files 2

Review log 56

  1. Garvin Hicking uploaded patch set 1 01/31/26, 22:44

  2. core-ci voted on patch set 1 V -1 01/31/26, 22:52 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/94737

  3. Garvin Hicking commented on patch set 1 01/31/26, 23:18

    Unresolved

    Instead if copying files of course this would later be a symlink. We'd also want to use subdirs Css and JavaScript in the assets-dir. Then we can also push real assets (images, icons, fonts) into other dirs. Probably it should also be config/sites/xxx/Public/ instead. And maybe then we could even create a virtual package for it, wrapping it nicely for the DefaultPublisher?
  4. Garvin Hicking marked it work in progress 02/03/26, 13:39

  5. Garvin Hicking commented on patch set 1 02/03/26, 13:39

    will wait for helhum, as he's got a concept for this already
  6. Garvin Hicking abandoned the change 03/04/26, 13:01