Extension structure · Question 1 of 12

In which folder of an extension are the CSS, JavaScript and image files located that the web server should deliver?

1 answer is correct. Easy

Show answer

Answer

  • D Resources/Public/

Explanation

Publicly accessible files of an extension belong in Resources/Public/, for example Resources/Public/Css/main.css or Resources/Public/Icons/Extension.svg. In a template you include them via paths like EXT:my_ext/Resources/Public/Css/main.css, and TYPO3 generates the public URL from it. Resources/Private/ is the obvious mistake: it holds templates, partials, layouts and language files that are only read on the server and should explicitly not be accessible from outside. Files created at runtime do not belong in the extension but in typo3temp/.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications