[TYPO3-mvc] template files

Bastian Waidelich bastian at typo3.org
Tue Jul 13 12:55:03 CEST 2010


Stephen Bungert wrote:

Hi Stephen,

> With the old pi extensions most had a TS property called templateFile or
> similar to allow you to easily change the locations of html templates.
>
> How do you do this with extbase/fluid?

You can specify the paths of templates, layouts and partials 
independently in the view part of your TS setup:

plugin.tx_yourextension {
	settings {
		// user settings
	}
	persistence {
		// persistence options
	}
	view {
		templateRootPath = ...
		partialRootPath = ...
		layoutRootPath = ...
	}
}
If you want to make this easily configurable, you should consider to use 
TypoScript constants here.
Also have a look at the blog_example Extension 
(https://svn.typo3.org/TYPO3v4/CoreProjects/MVC/blog_example/trunk/).

Best,
Bastian



More information about the TYPO3-project-typo3v4mvc mailing list