<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Martin Hesse, Webmasterblog &#187; xHTML</title>
	<atom:link href="http://www.martin-hesse.info/tag/xhtml/feed" rel="self" type="application/rss+xml" />
	<link>http://www.martin-hesse.info</link>
	<description></description>
	<lastBuildDate>Wed, 10 Aug 2011 16:47:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<div id='fb-root'></div>
					<script type='text/javascript'>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/de_DE/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>HTML-Code in TYPO3 säubern</title>
		<link>http://www.martin-hesse.info/typo3/html-code-in-typo3-saubern.html</link>
		<comments>http://www.martin-hesse.info/typo3/html-code-in-typo3-saubern.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 10:00:47 +0000</pubDate>
		<dc:creator>Martin Hesse</dc:creator>
				<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[Barrierefrei]]></category>
		<category><![CDATA[Valid]]></category>
		<category><![CDATA[xHTML]]></category>

		<guid isPermaLink="false">http://www.martin-hesse.info/blog/?p=41</guid>
		<description><![CDATA[TYPO3-Templates entschlacken.]]></description>
			<content:encoded><![CDATA[<p>Ihr kennt das, ihr wollt eine möglichst aufgeräumte TYPO3-Seite erstellen aber euch stört der zum Teil nicht valide Code, jetzt wird aufgeräumt!</p>
<p>Mit diesem Code, den ihr in euer Template-Setup schreibt, könnt ihr Abhilfe schaffen. Mit diesem könnt ihr valide Seiten ganz einfach realisieren. Es werden alle unnötigen Parameter und Werte gelöscht, dazu auch die ganzen Spacer etc.</p>
<p><span id="more-41"></span></p>
<pre lang="typoscript"># Prolog deaktivieren
config.xmlprologue = none

#RTE Tuning
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class &gt;
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.remapTag &gt;
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.DIV.class &gt;

#Angabe von Tags, die nicht mit einem zusätzlichen wrap umgeben werden dürfen
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList = cite, div, p, pre, h1, h2, h3, h4, h5, h6

#Entfernt die zusätzlichen CSS-Klassen
lib.stdheader.3 = LOAD_REGISTER
lib.stdheader.3.headerClass =
lib.stdheader.3.headerClass.noTrimWrap = |
lib.stdheader.stdWrap.dataWrap = |

#Standard-Headings aufräumen
lib.stdheader.stdWrap.dataWrap = |
lib.stdheader.10.1.fontTag =|
lib.stdheader.10.2.fontTag =|
lib.stdheader.10.3.fontTag =|
lib.stdheader.10.4.fontTag =|
lib.stdheader.10.5.fontTag =|

# Unterdrückt den Umbruch mit
lib.stdheader.10.stdWrap.wrap = |

# Wirft das CLEAR.GIF raus
tt_content.textpic.20.spaceBelowAbove = 0
tt_content.image.20.spaceBelowAbove = 0
tt_content.header.stdWrap.space = 0|0
tt_content.stdWrap.space = 0|0
tt_content.stdWrap.spaceBefore = 0
tt_content.stdWrap.spaceAfter = 0
lib.stdheader.stdWrap.space = 0|0

#Content Elemente aufräumen und Kommentare entfernen
#tt_content.stdWrap.dataWrap &gt;
tt_content.stdWrap.prefixComment &gt;
tt_content.header.20.dataWrap &gt;
tt_content.header.20.prefixComment &gt;
tt_content.default.prefixComment &gt;
tt_content.text.stdWrap.prefixComment &gt;
tt_content.text.20.prefixComment &gt;
tt_content.textpic.20.stdWrap.prefixComment &gt;
tt_content.table.20.stdWrap.prefixComment &gt;
tt_content.mailform.20.stdWrap.wrap &gt;
tt_content.menu.20.stdWrap.prefixComment &gt;
tt_content.image.20.stdWrap.prefixComment &gt;
tt_content.list.20.stdWrap.prefixComment &gt;

# entfernt 1-pixel CLEAR.GIF über jedem Bild mit Text
tt_content.textpic.20.noStretchAndMarginCells = 1

# entfernt 1-pixel CLEAR.GIF über jedem Bild
tt_content.image.20.noStretchAndMarginCells = 1

# Entfernen des clear.gif bzw. der Abstände nach Seitenelementen
content.headerSpace = 0|0
content.space = 0|0

# entfernt automatische Abstände
styles.content.imgtext.colSpace = 0
styles.content.imgtext.rowSpace = 0
styles.content.imgtext.textMargin = 10

# Noch ein paar  entfernen
styles.content.imgtext.caption.1.wrap = |
styles.content.imgtext.caption.1.spaceBefore = 0
styles.content.imgtext.caption.1.br = 0</pre>
<p></p>
<h2>Versionsunterschiede</h2>
<p><strong>Achtung!</strong> Ab TYPO3 4.4 ist der Aufbau ein wenig anders. Anstelle von (Beispiel) &#8220;lib.stdHeader.10.1.<span style="text-decoration: underline;">fontTag</span>&#8221; muss jetzt &#8220;lib.stdHeader.10.1.<span style="text-decoration: underline;">dataWrap</span>&#8221; verwendet werden. Vielen Dank an <a href="http://www.martin-hesse.info/typo3/html-code-in-typo3-saubern.html/comment-page-1#comment-211">Christopher</a> &#038; <a href="http://www.martin-hesse.info/typo3/html-code-in-typo3-saubern.html/comment-page-1#comment-212">Kurt Kunig</a>.</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://www.martin-hesse.info/typo3/html-code-in-typo3-saubern.html' layout='button_count' show_faces='false' width='400' action='like' colorscheme='light' send='false' /></div>]]></content:encoded>
			<wfw:commentRss>http://www.martin-hesse.info/typo3/html-code-in-typo3-saubern.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

