[TYPO3-english] Setting path for plugin templates
Svend Erik Volsgaard
svenderik at volsgaard.dk
Sat Oct 24 20:53:09 CEST 2015
Thanks for the answers. Now I got it working :-)
Regards
Svend Erik
On 24-10-2015 14:12, Ralf-Rene Schröder wrote:
> IMHO you ONLY have to set the constants,
> because in the news TS is the following:
> plugin.tx_news {
> view {
> templateRootPaths {
> 0 = EXT:news/Resources/Private/Templates/
> 1 = {$plugin.tx_news.view.templateRootPath}
> }
> partialRootPaths {
> 0 = EXT:news/Resources/Private/Partials/
> 1 = {$plugin.tx_news.view.partialRootPath}
> }
> layoutRootPaths {
> 0 = EXT:news/Resources/Private/Layouts/
> 1 = {$plugin.tx_news.view.layoutRootPath}
> }
> }
> }
>
> and if you don'want to need constants only this is needed:
> plugin.tx_news {
> view {
> templateRootPaths {
> 100 = fileadmin/templates/ext/news/Templates/
> }
> partialRootPaths {
> 100 = fileadmin/templates/ext/news/Partials/
> }
> layoutRootPaths {
> 100 = fileadmin/templates/ext/news/Layouts/
> }
> }
> }
> (should be modified in the news documentation)
>
>
> Am 24.10.2015 um 11:05 schrieb Arun Chandran:
>> plugin.tx_news {
>> view {
>> templateRootPaths >
>> templateRootPaths {
>> 0 = EXT:news/Resources/Private/Templates/
>> 1 = fileadmin/templates/ext/news/Templates/
>> }
>> partialRootPaths >
>> partialRootPaths {
>> 0 = EXT:news/Resources/Private/Partials/
>> 1 = fileadmin/templates/ext/news/Partials/
>> }
>> layoutRootPaths >
>> layoutRootPaths {
>> 0 = EXT:news/Resources/Private/Layouts/
>> 1 = fileadmin/templates/ext/news/Layouts/
>> }
>> }
>> }
>
More information about the TYPO3-english
mailing list