[TYPO3-english] Setting path for plugin templates

Ralf-Rene Schröder ralf.rene at online.de
Sat Oct 24 14:12:42 CEST 2015


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/
>                 }
>         }
> }


-- 
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format


More information about the TYPO3-english mailing list