[TYPO3-mvc] Setting viewhelper namespace in layouts

Martin Kutschker masi-no at spam-typo3.org
Fri Feb 19 08:30:58 CET 2010


Sebastian Kurfürst schrieb:
> Hey Christine,
> 
>> which works if I put it under the <f:layout name="master" /><f:section
>> name="content"> tags in the template, but doesn't work if I put it at the
>> top of the "master.html" layout.
> They have to be defined in every file, as every file has to be parsable
> on its own.

Why? Partials are by definition a part of a template and a template must (?) be used in a layout.

> This has been inspired by XML: You have to declare custom namespaces
> there in each file as well.

I recall that there was the idea to create XML fragments that would be included in other XML
documents. I reckon that you wouldn't have to add document definitions to each one.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list