[TYPO3-mvc] fluidtemplate without rendering of the html tag

Bastian Waidelich bastian at typo3.org
Thu May 24 14:50:18 CEST 2012


Domi wrote:

> I would like to know how to clean the html tag inside of my website,
> [...]

> <html
> xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
> xmlns:fed="http://fedext.net/ns/fed/ViewHelpers"
> xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
>
> How can I remove this tags in my output?

Layouts/SomeLayout.html:
<f:flashMessages />
<f:render section="content" />


Templates/Foo/Index.html:
<f:layout name="Layout" />
<html
   xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
   xmlns:fed="http://fedext.net/ns/fed/ViewHelpers"
   xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<body>
<f:section name="content">
   your template content
   <f:render partial="SomePartial" section="content" />
</f:section>

Partials/SomePartial.html:
<html
   xmlns:flux="http://fedext.net/ns/flux/ViewHelpers"
   xmlns:fed="http://fedext.net/ns/fed/ViewHelpers"
   xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<body>
<f:section name="content">
   your partial content
</f:section>

In FLOW3 it's already possible to use those namespace declarations 
*instead* of the {namespace x=y} syntax [1]

I have created a related issue in the v4 tracker so we won't forget to 
backport this (see [2]).

[1] http://forge.typo3.org/issues/37466
[2] http://forge.typo3.org/issues/27119


HTH!

-- 
Bastian Waidelich
TYPO3 Core Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list