If you want to override the partials of the TYPO3 <code>blog</code> extension within a TYPO3 website (v9.5), for example to customize the list view, it is sufficient to add the following configuration to the Template Setup and then create the corresponding partials (in our agency, the file was \fileadmin\templates\ext\blog\Partials\List\Post.html):
plugin.tx_blog.view {
partialRootPaths {
0 = EXT:blog/Resources/Private/Partials/
1 = fileadmin/templates/ext/blog/Partials/
}
}
And don't worry: only the partials that are actually present in fileadmin will be overridden. :-) The same approach works for templates and layouts as well. In that case, the configuration simply needs to be:
plugin.tx_blog.view {
templateRootPaths {
0 = EXT:blog/Resources/Private/Templates/
1 = fileadmin/templates/ext/blog/Templates/
}
}
respective:
plugin.tx_blog.view {
layoutRootPaths {
0 = EXT:blog/Resources/Private/Layouts/
1 = fileadmin/templates/ext/blog/Layouts/
}
}
Seen at our TYPO3 agency on a website implemented with TYPO3 9.5.13.
