Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Ready for review Stale

95172[FEATURE] Add EU AI content labelling to file metadata

Frank Nägler CR +1 V +1 Hard +828 −1 updated 09/09/26, 20:04

Commit message

Introduce a new metadata field "ai_content_type" for the
sys_file_metadata table, provided by EXT:filemetadata. Editors can
mark to which extent a file was created using artificial intelligence
when editing the metadata of any file type in the Filelist module.

Following the EU guidance on labelling AI-generated content, the field
offers four values: not relevant (empty), "general" (AI was involved),
"generated" (fully AI-generated) and "modified" (partially AI-modified).

The primary motivation is the transparency obligation of the EU AI Act
(Art. 50). The value is available as a regular file property. A new
ViewHelper "<f:aiContentLabel>" renders the corresponding label icon in
the frontend, and the "<f:image>" ViewHelper can add a machine-readable
"data-ai-content-type" attribute, controlled per call or globally via
the "fluid.renderAiContentLabel" feature toggle.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 4
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/72/95172/4 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/72/95172/4 && git cherry-pick FETCH_HEAD

Review

  • Code review CR +1 Needs a vote
    • Georg Ringer +1
    • Jörg Bösche +1
  • Verified V +1 Needs a vote
    • Georg Ringer +1
    • core-ci +1 CI

Issues 1

Files 21

Show 1 more file

Review log 1822

  1. Frank Nägler uploaded patch set 1 08/07/26, 22:28

  2. core-ci voted on patch set 1 V +1 08/07/26, 22:35 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106140

  3. Simon Schaufelberger voted on patch set 1 CR +1 V +1 08/08/26, 06:28

  4. Garvin Hicking commented on patch set 1 08/08/26, 07:01

    Should we, for "leading by example", introduce this to fluod_styled_content and attach it to the img tag with something like "data-ai-generated"? (Hope we'll get a standard for this at some point, unless there already is one?)
  5. Garvin Hicking commented on patch set 1 08/08/26, 07:02

    sys_file_metadata.php:145

    backport note, use LLL syntax for 13.4
  6. Benni Mack commented on patch set 1 08/08/26, 09:23

    Thanks for the patch. I have a few questions - should we also ship the 4 relevant icons? https://digital-strategy.ec.europa.eu/en/policies/eu-icons-labelling-ai-generated-content - should we also differentiate between AI-generated vs. AI-assisted? - Should we also add an option to allow to set this on images in frontend? I think that's the most critical part for being compliant for the EU AI Act.
  7. Oliver Klee voted on patch set 1 CR +1 V +1 08/08/26, 12:24

  8. Frank Nägler commented on patch set 1 08/10/26, 08:34

    Reply

    In this patch or an own patch?

    Reply Unresolved

    > - should we also ship the 4 relevant icons? https://digital-strategy.ec.europa.eu/en/policies/eu-icons-labelling-ai-generated-content I like the idea, I would do it and adjust the patch. > - should we also differentiate between AI-generated vs. AI-assisted? Yes, make sense, I will change the toggle to dropdown or something like that. > - Should we also add an option to allow to set this on images in frontend? I think that's the most critical part for being compliant for the EU AI Act. Yes, but also in this patch? Or a second patch?
  9. Garvin Hicking commented on patch set 1 08/10/26, 09:12

    Reply

    since this will be some effort and discussion (and someone's up for it) a followup would be great.
  10. Frank Nägler uploaded patch set 2 CR +1 V +1 08/11/26, 00:21

  11. core-ci voted on patch set 2 V +1 08/11/26, 00:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106349

  12. Georg Ringer commented on patch set 2 08/11/26, 04:34

    AiContentLabelViewHelper.php:59

    please allow also an extbase file, see https://review.typo3.org/c/Packages/TYPO3.CMS/+/95177
  13. Frank Nägler uploaded patch set 3 V +1 08/12/26, 11:01

  14. Frank Nägler commented on patch set 3 08/12/26, 11:03

    AiContentLabelViewHelper.php:59 Reply

    Acknowledged
  15. core-ci voted on patch set 3 V +1 08/12/26, 11:08 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106502

  16. Oliver Klee voted on patch set 3 CR +1 08/12/26, 11:08

  17. Oliver Klee voted on patch set 3 V +1 08/12/26, 11:09

  18. Frank Nägler uploaded patch set 4 CR +1 V +1 08/19/26, 09:46

  19. core-ci voted on patch set 4 V +1 08/19/26, 09:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106892

  20. Benjamin Kott commented on patch set 4 08/25/26, 13:04

    sys_file_metadata.php:145 Reply

    Acknowledged
  21. Jörg Bösche voted on patch set 4 CR +1 08/29/26, 20:40

  22. Georg Ringer voted on patch set 4 CR +1 V +1 09/09/26, 20:04