Reputation: 139
I'm learning Typo3 with the official documentation. Now I have achieved the Templating Tutorial:
https://docs.typo3.org/m/typo3/tutorial-templating/9.5/en-us/MinimalDesign/Index.html
There is described to store the HTML file under
page.1.file = fileadmin/sitedesign/Resources/Private/Templates/Minimal.html
So, let's start with the problems I have:
Note this directory is meant for editors! Integrators should not locate frontend website layout related files in here: Storing HTML templates, logos, Css and similar files used to build the website layout in here is considered bad practice. Integrators should locate and ship these files within a project specific extension.
Upvotes: 1
Views: 1545
Reputation: 1783
Let me add a "raw" answer without a preconfigured sitepackage then.
sitepackage
) unter typo3conf/ext
ext_emconf.php
file at least (https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ExtensionArchitecture/DeclarationFile/Index.html#extension-declaration) so create one in typo3conf/ext/sitepackage/ext_emconf.php
and add needed information (see the link)typo3conf/ext/sitepackage/Resources/Private/Templates
, typo3conf/ext/sitepackage/Resources/Private/Layouts
, typo3conf/ext/sitepackage/Resources/Private/Partials
and create at least a template. Let's call this file typo3conf/ext/sitepackage/Resources/Private/Templates/Minimal.html
page.1.file = EXT:sitepackage/Resources/Private/Templates/Minimal.html
Upvotes: 5
Reputation: 1783
The best way is to store your templates in an extension. You can use https://www.sitepackagebuilder.com/ to generate such an extension. This preset already contains HTML files in a location that makes sense (sitepackage/Resources/[Templates/Layouts/Partials]).
Upvotes: 5
Reputation: 89
Look at this please...
templateRootPaths {
[...]
}
partialRootPaths {
[...]
}
layoutRootPaths {
[...]
}
Upvotes: 1