I'm using TYPO3 v10.4. with the news extension. I would like to add my own templates which I can customize on different pages.
I followed the official news guide: https://docs.typo3.org/p/georgringer/news/master/en-us/AdministratorManual/Templates/TemplateSelector/Index.html
In my Setup.ts I defined:
plugin.tx_news {
view {
templateRootPaths >
templateRootPaths {
0 = EXT:news/Resources/Private/Templates/
1 = Resources/Private/Ext/news/Templates/
}
partialRootPaths >
partialRootPaths {
0 = EXT:news/Resources/Private/Partials/
1 = Resources/Private/Ext/news/Partials/
}
layoutRootPaths >
layoutRootPaths {
0 = EXT:news/Resources/Private/Layouts/
1 = Resources/Private/Ext/news/Layouts/
}
#widget.GeorgRinger\News\ViewHelpers\Widget\PaginateViewHelper.templateRootPath = Resources/Private/Ext/news/Templates/
}
settings {
list {
cropMaxCharactersSmall = 100
cropMaxCharactersHigh = 500
}
}
templateLayouts {
1 = Homepage
2 = Default Layout
}
}
Unfortunately, my defined layouts don't appear in the BE of the news plugin. The setup generally works because I am using my customized Templates and Partials, as well as the variables in the settings part.
Anyone an idea what could be missing?
*RootPaths.1
looks weird: where isResources/...
located? in your notation it is located in the web root (sibling offileadmin/
). That would be very unusual. – Bernd Wilke πφ