---
title: "<f:format.raw> funktioniert nicht"
url: "https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht"
source: "typo3.net"
tags: ["Extensions","Extbase","Fluid","Frage","ViewHelper"]
created: "2015-07-16"
last_reply: "2015-07-21"
replies: 6
solved: false
page: 1
pages: 1
lang: "de"
---

# <f:format.raw> funktioniert nicht

Extensions › Extbase · 6 Antworten · gestartet 2015-07-16

## Eröffnungsbeitrag

**nullstein** · 2015-07-16 · [Beitrag #1](https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht/1)

Liebe Kollegen,

ich hab ein Problem bei meiner Extension (Distribution):

<f:format.raw>{content}</f:format.raw>

Klappt einfach nicht.

Folgendes ist mein TypoScript:

```typoscript
#### Language Config ####
config.language = de
config.locale_all = de_DE

page = PAGE
page {
	config	{
		metaCharset = utf-8
		additionalHeaders = Content-Type:text/html;charset=utf-8
	}

	10 = FLUIDTEMPLATE
	10 {
		file = EXT:tc_mp_distribution/Resources/Private/Template/index.html
		layoutRootPath = EXT:tc_mp_distribution/Resources/Private/Layouts/
		partialRootPath = EXT:tc_mp_distribution/Resources/Private/Partials/

		variables {
			content < styles.content.get
		}

	}
	
	#### Einbindung Favicon ####
	shortcutIcon = EXT:tc_mp_distribution/Resources/Resources/Public/Icons/favicon.ico
	
	#Hier werden die Pfade zum HTML-Gedöns meines Templates angegeben...
	
	includeCSS.bootstrap = EXT:tc_mp_distribution/Resources/Public/Bootstrap/css/bootstrap.min.css
	includeCSS.bootstraptheme = EXT:tc_mp_distribution/Resources/Public/Bootstrap/css/bootstrap-theme.min.css
	includeCSS.bootstrapcustom = EXT:tc_mp_distribution/Resources/Public/Css/custom.css

	includeCSS.googleannitelescope {
		file5 = http://fonts.googleapis.com/css?family=Annie+Use+Your+Telescope
		file5.external = 1
		file5.media = all
	}

	includeCSS.googleopensans {
		file6 = http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700
		file6.external = 1
		file6.media = all
	}

	
	### includeJSlibs von Bootstrapmin und jquery / für den Footer dann includeJSFooterlibs ###

	includeJSlibs {
		  jquery = http://code.jquery.com/jquery-1.11.3.min.js
		  jquery.external = 1
		  jquery.forceOnTop = 1
		  
		  bootstrapmin = EXT:tc_mp_distribution/Resources/Public/Bootstrap/js/bootstrap.min.js
		}
		
}
```

Folgendes ist meine main.html:

```html
<main class="home">
    <f:format.raw>{content}</f:format.raw>
</main>
```

Es kommt aber (egal in welche Column des Backends ich meine Contents einkippe) ums verrecken nichts im Frontend an. Was mach' ich falsch?

## Antworten

### [#2](https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht/2) · casi-g · 2015-07-16

Mal ganz blöd gefragt:
css_styled_content im Root Template eingebunden?

### [#3](https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht/3) · nullstein · 2015-07-17

Ja. Der Rest klappt ja auch, also z.b. Menü, CSS wird geladen, Schriftart etc.

### [#4](https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht/4) · casi-g · 2015-07-17

wenn du {content} in den debug schmeisst gibt er dir denn da was aus? Oder wenn du f:format.html oder ähnliches benutzt?

### [#5](https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht/5) · nullstein · 2015-07-17

Hi casi-g,

ich hab jetzt mal den Test über:

```php
<f:debug title="Result of content">{content}</f:debug>
```

gemacht, und ja, da kommt was raus:

```php
' &lt;!-- CONTENT ELEMENT, uid:3/header [begin] --&gt; &lt;di
   v id=&quot;c3&quot; class=&quot;csc-default&quot;&gt; 
   &lt;!-- Header: [begin] --&gt; &lt;div class=&quot;csc-h
   eader csc-header-n1&quot;&gt;&lt;h1 class=&quot;csc-firstHea
   der&quot;&gt;Testheadline Spalte Normal&lt;/h1&gt;&lt;/d
   iv&gt; &lt;!-- Header: [end] --&gt; &lt;/div&gt; 
   &lt;!-- CONTENT ELEMENT, uid:3/header [end] --&gt;  ' (406 chars)
```

BG
nullstein

### [#6](https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht/6) · casi-g · 2015-07-17

okay du nutzt aber nicht zufällig eine TYPO3 v 4.5 ?
Denn der ist erst mit der 4.6 Version gekommen soweit ich weiß

### [#7](https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht/7) · nullstein · 2015-07-21

Hi,

es hat sich alles aufgeklärt. Ich hatte ein index.html, und darin die f:format.raw als Partial eingebunden (ich wollte eine möglichst schlanke index.html haben). Nachdem ich das vom Main.html Partial in die index gepackt hatte, funktionierte es. Muss man erst mal drauf kommen - das Partial-Ausgelagere klappt ja mit Menüs und anderem auch.

Meine Version ist die 6.2.14

Vielen Dank für Eure Hilfe,
nullstein

---

Quelle: „<f:format.raw> funktioniert nicht“, typo3.net, https://www.typo3.net/d/120536-fformatraw-funktioniert-nicht
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
