Zum Inhalt springen

<f:format.raw> funktioniert nicht

Erstellt am 16. Juli 2015 · 6 Antworten · letzte Antwort am 21. Juli 2015

Tags: Fluid, ViewHelper, Frage

nullstein ·

Liebe Kollegen,

ich hab ein Problem bei meiner Extension (Distribution):

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

Klappt einfach nicht.

Folgendes ist mein 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:

<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?

casi-g ·

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

nullstein ·

Hi casi-g,

ich hab jetzt mal den Test über:

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

gemacht, und ja, da kommt was raus:

' &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

casi-g ·

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ß

nullstein ·

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