With the previous site packages I’ve created, I still used a template record to include the static templates. This time I’ve tried to include the static templates inside the site package without using a template record at all.
mySitePackage/Configuration/Sets/SitePackage/constants.typoscript
# Import default constants
@import 'EXT:fluid_styled_content/Configuration/TypoScript/constants.typoscript'
@import 'EXT:form/Configuration/TypoScript/constants.typoscript'
@import 'EXT:indexed_seach/Configuration/TypoScript/constants.typoscript'
@import 'EXT:seo/Configuration/TypoScript/XmlSitemap/constants.typoscript'
mySitePackage/Configuration/Sets/SitePackage/constants.typoscript
# Import the default setup
@import 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript'
@import 'EXT:fluid_styled_content/Configuration/TypoScript/Styling/setup.typoscript'
@import 'EXT:form/Configuration/TypoScript/setup.typoscript'
@import 'EXT:indexed_seach/Configuration/TypoScript/setup.typoscript'
@import 'EXT:seo/Configuration/TypoScript/XmlSitemap/setup.typoscript'
As it seems, that’s not enough to give me access to the fluid-styled-content template resources.
#1225709595 TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException
The Fluid template files "Default.html", "Default", "/home/MYSITE/httpdocs/site_t3v13/vendor/MYSITE/MYSITEPACKAGE/Resources/Private/ContentElements/Layouts/Default.html", "/home/MYSITE/httpdocs/site_t3v13/vendor/MYSITE/MYSITEPACKAGE/Resources/Private/ContentElements/Layouts/Default" could not be loaded.
I’ve already searched through the “site package tutorial” for version 13.4. In the section “Content Element rendering” it addresses the topic of overriding the default templates, but I haven’t found information on how I make the default templates available.
Unless I copy all necessary files as overrides, I get an InvalidTemplateResourceException.
EDIT:
Dependencies to “typo3/fluid-styled-content” and “typo3/fluid-styled-content-css” have already been declared as well.
While experimenting with the dependencies I’ve noticed this: When I deliberately add a wrong dependency I get the expected error:
(1/1) #1607585445 TYPO3\CMS\Core\Error\Http\InternalServerErrorException
Site _MYSITE depends on unavailable sets: MYSITE/MYSITEPACKAGE
After fixing the dependencies and clearing caches, the page renders without an error, but it only displays content elements (it can access the fluid-styled-content template resources) but not the elements I’ve created in my site sets.
After clearing the caches once more without changing anything, I get the InvalidTemplateResourceException again.
As I mentioned before: If I copy all fluid-styled-content template resources to the override folder of my site package, the page renders perfectly, with no errors and with all content elements and the elements I’ve set up in the site sets.