<?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>typo3.schloebe.de &#187; tweak</title>
	<atom:link href="http://typo3.schloebe.de/tag/tweak/feed/" rel="self" type="application/rss+xml" />
	<link>http://typo3.schloebe.de</link>
	<description>TYPO3, TypoScript, Erweiterungen, Tipps</description>
	<lastBuildDate>Sat, 13 Aug 2011 18:18:12 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Extension msimageflow &amp; UMTS</title>
		<link>http://typo3.schloebe.de/extension/extension-msimageflow-umts/</link>
		<comments>http://typo3.schloebe.de/extension/extension-msimageflow-umts/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 14:00:36 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Extension]]></category>
		<category><![CDATA[Mobility]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[Erweiterung]]></category>
		<category><![CDATA[Mobil]]></category>
		<category><![CDATA[msimageflow]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[UMTS]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/?p=72</guid>
		<description><![CDATA[Die Extension &#8220;ImageFlow implementation for TYPO3&#8243; (msimageflow) zaubert einen sch&#246;nen Bilder-Slider, dessen Bilder man in TYPO3 pflegen kann. Leider kommt es bei einem mobilen Internetzugang z.B. via UMTS zu einem Fehler bei der Anzeige, denn bei UMTS (u.a. mobilen Zug&#228;ngen) werden Daten durch einen Proxy geleitet und stark komprimiert, im Falle der Extension msimageflow wird [...]]]></description>
			<content:encoded><![CDATA[<p>Die Extension &#8220;ImageFlow implementation for TYPO3&#8243; (<em>msimageflow</em>) zaubert einen sch&#246;nen Bilder-Slider, dessen Bilder man in TYPO3 pflegen kann. <span id="more-72"></span></p>
<p>Leider kommt es bei einem mobilen Internetzugang z.B. via UMTS zu einem Fehler bei der Anzeige, denn bei UMTS (u.a. mobilen Zug&#228;ngen) werden Daten durch einen Proxy geleitet und stark komprimiert, im Falle der Extension <em>msimageflow</em> wird dadurch leider der Pfad zu den Bildern verf&#228;lscht.</p>
<p>Sieht der Pfad im Original so aus:<br />
<em>typo3conf/ext/msimageflow/res/reflect3.php?img=/srv/www/vhosts/domain.de/httpdocs/uploads/tx_msimageflow/besucherstuhl.png&#038;bgc=ffffff</em></p>
<p>so wird er durch UMTS zu:<br />
<em>typo3conf/ext/msimageflow/res/reflect3.php?img=<strong>http://1.x.x.x/bmi/www.domain.de</strong>/srv/www/vhosts/domain.de/httpdocs/uploads/tx_msimageflow/besucherstuhl.png&#038;bgc=ffffff</em></p>
<p>http://1.x.x.x/bmi/ (in diesem Falle 1.2.3.11 und 1.2.3.12) stellt den Proxy der Mobilverbindung dar, wodurch die Bild-Pfade nat&#252;rlich nicht mehr stimmen und somit die Bilder nicht geladen werden k&#246;nnen.</p>
<p>Eine kleine Quick&#8217;n'Dirty-L&#246;sung daf&#252;r ist die folgende, einfach in der Datei <em>typo3conf/ext/msimageflow/res/reflect3.php</em> (bzw. reflect2.php oder reflect.php) um die Zeile 70 folgendes erg&#228;nzen. Nach</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$source_image</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'img'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></pre></div></div>

<p>folgendes einf&#252;gen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$mobileisp</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$source_image</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://1.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mobileisp</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$domain</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$srcimg</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$domain</span><span style="color: #339933;">,</span> <span style="color: #000088;">$source_image</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$source_image</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$srcimg</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Somit wird zwar der Pfad bei Nutzung von UMTS noch angepasst, allerdings mit obigem Snippet wieder herausgefiltert, und der normale Bildpfad verwendet.</p>
<p>Wer eine bessere L&#246;sung kennt, immer her damit. <img src='http://typo3.schloebe.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/extension/extension-msimageflow-umts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Textbasiertes Sprachmen&#252;</title>
		<link>http://typo3.schloebe.de/typoscript/textbasiertes-sprachmenue/</link>
		<comments>http://typo3.schloebe.de/typoscript/textbasiertes-sprachmenue/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 12:33:01 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Mehrsprachigkeit]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[sprachmenu]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/typoscript/textbasiertes-sprachmenue/</guid>
		<description><![CDATA[Gerade habe ich beim Entmotten ein textbasiertes Sprachmen&#252; entdeckt, das ich hier einfach mal ver&#246;ffentliche. Das Men&#252; kommt ohne Flaggen aus, wird per PHP generiert und l&#228;sst sich per Klick umschalten. Ist eine Seite in einer alternativen Sprache nicht verf&#252;gbar, wird der Men&#252;punkt ausgegraut. Ansonsten verh&#228;lt es sich wie ein normales Sprachmen&#252;, in diesem Fall [...]]]></description>
			<content:encoded><![CDATA[<p>Gerade habe ich beim Entmotten ein textbasiertes Sprachmen&#252; entdeckt, das ich hier einfach mal ver&#246;ffentliche. <span id="more-38"></span></p>
<p>Das Men&#252; kommt ohne Flaggen aus, wird per PHP generiert und l&#228;sst sich per Klick umschalten. Ist eine Seite in einer alternativen Sprache nicht verf&#252;gbar, wird der Men&#252;punkt ausgegraut. Ansonsten verh&#228;lt es sich wie ein normales Sprachmen&#252;, in diesem Fall eben nur ohne Flaggen.</p>
<p>In Aktion sieht das Men&#252; so aus (nat&#252;rlich in ein Design eingepasst; in der Rohfassung erzeugt es einfach nur die Links f&#252;r die Sprachen):</p>
<p>[inspic=47,fullscreen,148]</p>
<p><strong>Die PHP-Datei <em>sprachmenu.inc</em>:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: No parent object present.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TYPO3_DB'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">exec_SELECTquery</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pages_language_overlay'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pid='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">enableFields</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pages_language_overlay'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sys_language_uid'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$langArr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TYPO3_DB'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sys_language_uid'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$pointer</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$flags</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SCRIPT_FILENAME'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'index.php'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'index.php?'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$query</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'QUERY_STRING'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$langstrings</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;L=1&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&amp;L=0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langstrings</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$langtext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'de'</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$langtext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'de'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;L=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_top&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$langtext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;0&quot;</span> OR <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langstrings</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;L=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_top&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'ru'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">''</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'ru'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;0&quot;</span> OR <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$langvar</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'de'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$langvar</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ru'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$langvar</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$flags</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Per TypoScript kann das ganze dann so inkludiert werden:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span> = PHP_SCRIPT
page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span>.<span style="color: #006600;">file</span> = fileadmin<span style="color: #66cc66;">/</span>sprachmenu.<span style="color: #006600;">inc</span></pre></td></tr></table></div>

<p>Wirklich flexibel ist es nat&#252;rlich nicht, aber als Ansatz ist es vielleicht hilfreich f&#252;r den einen oder anderen.</p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/textbasiertes-sprachmenue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TypoScript-Wettbewerb &#8211; Men&#252; f&#252;r TYPO3</title>
		<link>http://typo3.schloebe.de/allgemein/typoscript-wettbewerb-menue-fuer-typo3/</link>
		<comments>http://typo3.schloebe.de/allgemein/typoscript-wettbewerb-menue-fuer-typo3/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 13:31:09 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[menü]]></category>
		<category><![CDATA[T3N Magazin]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>
		<category><![CDATA[Wettbewerb]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/allgemein/typoscript-wettbewerb-menue-fuer-typo3/</guid>
		<description><![CDATA[Thomas von fi-ausbilden.de hat seit etwa zwei Wochen einen interessanten TypoScript-Wettbewerb laufen. Ziel ist es, mit m&#246;glichst wenig TypoScript ein vorgegebenes Men&#252; zu erstellen. Zu gewinnen gibt es: “Das TYPO3 Profihandbuch &#8211; Der Leitfaden f&#252;r Entwickler und Administratoren zu Version 4.1” und die DVD “TypoScript &#8211; Video-Training“ Unter allen Teilnehmern ein Jahresabo des T3N Magazin [...]]]></description>
			<content:encoded><![CDATA[<p>Thomas von <a href="http://www.fi-ausbilden.de" target="_blank">fi-ausbilden.de</a> hat seit etwa zwei Wochen einen interessanten TypoScript-Wettbewerb laufen. <span id="more-30"></span> Ziel ist es, mit m&#246;glichst wenig TypoScript ein vorgegebenes Men&#252; zu erstellen.</p>
<p>Zu gewinnen gibt es:</p>
<ul>
<li>“Das TYPO3 Profihandbuch &#8211; Der Leitfaden f&#252;r Entwickler und Administratoren zu Version 4.1” und die DVD “TypoScript &#8211; Video-Training“</li>
<li>Unter allen Teilnehmern ein Jahresabo des T3N Magazin mit einer “OpenSource” &#8211; Tasche, “Das TYPO3 Profihandbuch &#8211; Der Leitfaden f&#252;r Entwickler und Administratoren zu Version 4.1″ und die DVD “TypoScript &#8211; Video-Training”</li>
</ul>
<p><strong>Einsendeschluss</strong> ist der 20.12.07 23:59 Uhr.</p>
<p><a href="http://www.fi-ausbilden.de/blog/2007/11/19/typo3-typoscript-wettbewerb/" target="_blank"><strong>Zum Wettbewerb!</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/allgemein/typoscript-wettbewerb-menue-fuer-typo3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Optimiertes Sprachmen&#252; &#8211; Reloaded</title>
		<link>http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue-reloaded/</link>
		<comments>http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue-reloaded/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 19:08:05 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Mehrsprachigkeit]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[flagge]]></category>
		<category><![CDATA[sprachmenu]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue-reloaded/</guid>
		<description><![CDATA[Ich habe heute mehrere Stunden damit zugebracht, ein von mir optimiertes Sprachmen&#252; anzupassen, um auch weitere Sprachen zu unterst&#252;tzen. Irgendwann war dann das Ma&#223; voll, denn die Anahl der Abfragen wurde ab einem gewissen Punkt zu viel. Also, nochmal rangesetzt und in die TSRef geschaut&#8230; mit den Infos dort war es mir dann m&#246;glich, ein [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe heute mehrere Stunden damit zugebracht, ein von mir <a href="http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue/" target="_blank">optimiertes Sprachmen&#252;</a> anzupassen, um auch weitere Sprachen zu unterst&#252;tzen. <span id="more-27"></span> Irgendwann war dann das Ma&#223; voll, denn die Anahl der Abfragen wurde ab einem gewissen Punkt zu viel. <img src='http://typo3.schloebe.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Also, nochmal rangesetzt und in die TSRef geschaut&#8230; mit den Infos dort war es mir dann m&#246;glich, ein eigenes neues, nur auf <strong>TypoScript basierendes</strong> Sprachmen&#252; zu erstellen. Das Ergebnis nun hier:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span> = HMENU
page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span> <span style="color: #66cc66;">&#123;</span>
  special = <span style="color: #0066CC;">language</span>
  special.<span style="color: #006600;">value</span> = <span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>
  special.<span style="color: #006600;">normalWhenNoLanguage</span> = <span style="color: #cc66cc;">0</span>
  <span style="color: #cc66cc;">1</span> = GMENU
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">NO</span> <span style="color: #66cc66;">&#123;</span>
    XY = <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">5</span>.<span style="color: #006600;">w</span><span style="color: #66cc66;">&#93;</span>+<span style="color: #cc66cc;">4</span>, <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">5</span>.<span style="color: #006600;">h</span><span style="color: #66cc66;">&#93;</span>+<span style="color: #cc66cc;">4</span>
    backColor = white
    transparentColor = white
    transparentBackground = <span style="color: #cc66cc;">1</span>
    <span style="color: #cc66cc;">5</span> = IMAGE
    <span style="color: #cc66cc;">5</span>.<span style="color: #006600;">file</span> = uploads<span style="color: #66cc66;">/</span>tf<span style="color: #66cc66;">/</span>flag_de.<span style="color: #006600;">gif</span> <span style="color: #66cc66;">||</span> uploads<span style="color: #66cc66;">/</span>tf<span style="color: #66cc66;">/</span>flag_en.<span style="color: #006600;">gif</span> <span style="color: #66cc66;">||</span> uploads<span style="color: #66cc66;">/</span>tf<span style="color: #66cc66;">/</span>flag_ru.<span style="color: #006600;">gif</span>
    <span style="color: #cc66cc;">5</span>.<span style="color: #006600;">offset</span> = <span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">2</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">ACT</span> <span style="color: #66cc66;">&lt;</span> page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span>.1.<span style="color: #006600;">NO</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">ACT</span> = <span style="color: #cc66cc;">1</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">ACT</span>.<span style="color: #006600;">backColor</span> = <span style="color: #808080; font-style: italic;">#9C9A9C</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">ACT</span>.<span style="color: #006600;">transparentBackground</span> = <span style="color: #cc66cc;">0</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">USERDEF1</span> <span style="color: #66cc66;">&lt;</span> page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span>.1.<span style="color: #006600;">NO</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">USERDEF1</span> = <span style="color: #cc66cc;">1</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">USERDEF1</span>.5.<span style="color: #006600;">file</span> = uploads<span style="color: #66cc66;">/</span>tf<span style="color: #66cc66;">/</span>flag_de_d.<span style="color: #006600;">gif</span> <span style="color: #66cc66;">||</span> uploads<span style="color: #66cc66;">/</span>tf<span style="color: #66cc66;">/</span>flag_en_d.<span style="color: #006600;">gif</span> <span style="color: #66cc66;">||</span> uploads<span style="color: #66cc66;">/</span>tf<span style="color: #66cc66;">/</span>flag_ru_d.<span style="color: #006600;">gif</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">USERDEF1</span>.<span style="color: #006600;">noLink</span> = <span style="color: #cc66cc;">1</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">USERDEF2</span> <span style="color: #66cc66;">&lt;</span> page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span>.1.<span style="color: #006600;">USERDEF1</span>
  <span style="color: #cc66cc;">1</span>.<span style="color: #006600;">USERDEF2</span>.<span style="color: #006600;">backColor</span> = <span style="color: #808080; font-style: italic;">#9C9A9C</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>Wer die Flaggen mit einem wei&#223;en 2 Pixel breiten Rahmen versehen will, &#228;ndert folgende Zeile</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>11
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">transparentBackground = <span style="color: #cc66cc;">1</span></pre></td></tr></table></div>

<p>in</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>11
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">transparentBackground = <span style="color: #cc66cc;">0</span></pre></td></tr></table></div>

<p>&#220;ber die Zeile</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>18
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #cc66cc;">1</span>.<span style="color: #006600;">ACT</span>.<span style="color: #006600;">backColor</span> = <span style="color: #808080; font-style: italic;">#9C9A9C</span></pre></td></tr></table></div>

<p>l&#228;sst sich einfach die Hintergrund-Markierungsfarbe angeben.</p>
<p>Wie man die Pfade zu den Flaggen angeben muss, sieht man zudem oben. Diese k&#246;nnen platziert werden wo man will.</p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue-reloaded/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>(Kopie 1)-Zusatz beim Kopieren verhindern</title>
		<link>http://typo3.schloebe.de/tweaks/kopie-1-zusatz-beim-kopieren-verhindern/</link>
		<comments>http://typo3.schloebe.de/tweaks/kopie-1-zusatz-beim-kopieren-verhindern/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 10:25:21 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[TSConfig]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[disablePrependAtCopy]]></category>
		<category><![CDATA[Kopie]]></category>
		<category><![CDATA[TCEMAIN]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>
		<category><![CDATA[TypoScript]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/tweaks/kopie-1-zusatz-beim-kopieren-verhindern/</guid>
		<description><![CDATA[Wer viele Seiteninhalte kopiert oder &#252;bersetzen muss, und beim Kopieren der Inhalte der &#8220;(Kopie x)&#8221;-Zusatz st&#246;rt, kann ihn mit diesem kleinen TSConfig-Script ausschalten: 1 2 3 TCEMAIN.table.tt_content &#123; disablePrependAtCopy = 1 &#125; Diesen Code einfach in die TSConfig der root-Seite einf&#252;gen. Wer das Ganze nur f&#252;r Seiten deaktivieren will, nutzt folgenden leicht abge&#228;nderten TSConfig-Code: 1 [...]]]></description>
			<content:encoded><![CDATA[<p>Wer viele Seiteninhalte kopiert oder &#252;bersetzen muss, und beim Kopieren der Inhalte der &#8220;(Kopie x)&#8221;-Zusatz st&#246;rt, <span id="more-22"></span> kann ihn mit diesem kleinen TSConfig-Script ausschalten:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">TCEMAIN.<span style="color: #006600;">table</span>.<span style="color: #006600;">tt_content</span> <span style="color: #66cc66;">&#123;</span>
  disablePrependAtCopy = <span style="color: #cc66cc;">1</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>Diesen Code einfach in die TSConfig der root-Seite einf&#252;gen.</p>
<p>Wer das Ganze nur f&#252;r Seiten deaktivieren will, nutzt folgenden leicht abge&#228;nderten TSConfig-Code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">TCEMAIN.<span style="color: #006600;">table</span>.<span style="color: #006600;">pages</span> <span style="color: #66cc66;">&#123;</span>
  disablePrependAtCopy = <span style="color: #cc66cc;">1</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/tweaks/kopie-1-zusatz-beim-kopieren-verhindern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quelltext TYPO3 Kommentar erweitern</title>
		<link>http://typo3.schloebe.de/typoscript/quelltext-typo3-kommentar-erweitern/</link>
		<comments>http://typo3.schloebe.de/typoscript/quelltext-typo3-kommentar-erweitern/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 10:10:05 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[kasper]]></category>
		<category><![CDATA[kommentar]]></category>
		<category><![CDATA[quellcode]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/typoscript/quelltext-typo3-kommentar-erweitern/</guid>
		<description><![CDATA[Wer sich im Quellcode seiner TYPO3-Seite als Ersteller verewigen m&#246;chte, kann dies mit folgendem kleinen TypoScript-Snippet tun. Der Code wird &#252;ber dem Standard-Kommentar von TYPO3-Erfinder Kasper eingef&#252;gt.. This website is powered by TYPO3 &#8211; &#8230; Hier das Snippet: 1 2 3 4 5 6 7 8 9 10 11 page.config &#123; headerComment &#40; ----------------------------------- &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Wer sich im Quellcode seiner TYPO3-Seite als Ersteller verewigen m&#246;chte, kann dies mit folgendem kleinen TypoScript-Snippet tun. <span id="more-20"></span> Der Code wird &#252;ber dem Standard-Kommentar von TYPO3-Erfinder Kasper eingef&#252;gt..</p>
<blockquote><p>This website is powered by TYPO3 &#8211; &#8230;</p></blockquote>
<p>Hier das Snippet:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">page.<span style="color: #006600;">config</span> <span style="color: #66cc66;">&#123;</span>
  headerComment <span style="color: #66cc66;">&#40;</span>
        -----------------------------------
        <span style="color: #66cc66;">|</span>                                 <span style="color: #66cc66;">|</span>
        <span style="color: #66cc66;">|</span> TYPO3 Webseite - Programming by <span style="color: #66cc66;">|</span>
        <span style="color: #66cc66;">|</span>                                 <span style="color: #66cc66;">|</span>
        <span style="color: #66cc66;">|</span>   Firma <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2007</span> <span style="color: #66cc66;">|</span> www.<span style="color: #006600;">firma</span>.<span style="color: #006600;">de</span>   <span style="color: #66cc66;">|</span>
        <span style="color: #66cc66;">|</span>                                 <span style="color: #66cc66;">|</span>
        -----------------------------------
  <span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/quelltext-typo3-kommentar-erweitern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimiertes Sprachmen&#252;</title>
		<link>http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue/</link>
		<comments>http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue/#comments</comments>
		<pubDate>Tue, 14 Aug 2007 20:54:13 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Mehrsprachigkeit]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[flagge]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[sprachmenu]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue/</guid>
		<description><![CDATA[Veraltet! F&#252;r diesen Snippet gibt es eine bessere L&#246;sung. Per Klick gelangen Sie zum Artikel&#8230; Das Standard Typo3 Sprachmen&#252; kennen mittlerweile die meisten, die multilinguale Webseiten mit Typo3 bauen. Aus Erfahrung ist es aber bei vielen &#8211; meist computerfremden &#8211; Menschen so, dass das Standardmen&#252; noch verwirrt, denn alle Flaggen sind jederzeit klickbar. Viele verwirrt [...]]]></description>
			<content:encoded><![CDATA[<div class="veraltet"><a href="http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue-reloaded/"><strong>Veraltet!</strong> F&#252;r diesen Snippet gibt es eine bessere L&#246;sung. Per Klick gelangen Sie zum Artikel&#8230;</a></div>
<p>Das Standard Typo3 Sprachmen&#252; kennen mittlerweile die meisten, die multilinguale Webseiten mit Typo3 bauen. Aus Erfahrung ist es aber bei vielen &#8211; meist computerfremden &#8211; Menschen so, dass das Standardmen&#252; noch verwirrt, denn alle Flaggen sind jederzeit klickbar. Viele verwirrt das insofern, dass man nun nicht wei&#223;, ob eine Sprache &#8211; trotz Ausgrauen der Flagge &#8211; verf&#252;gbar ist oder nicht. <span id="more-10"></span></p>
<p>Meine kleinen Anpassungen f&#252;r das Sprachmen&#252; st&#252;tzen sich vor allem auf 2 Dinge: </p>
<ul>
<li>Die Flaggen der nicht-verf&#252;gbaren Sprachen sind <em>nicht</em> klickbar</li>
<li>Die aktive Sprache wird, anders als im Standardmen&#252; mit einem kleinen roten Pfeil, mit einer farblichen Hinterlegung markiert</li>
</ul>
<p>Die Tatsache, dass nicht verf&#252;gbare Sprach-Flaggen nicht nur ausgegraut, sondern auch nicht klickbar sind, vermeidet Verwirrung.</p>
<p>Hier der Code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: No parent object present.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TYPO3_DB'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">exec_SELECTquery</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pages_language_overlay'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pid='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">enableFields</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pages_language_overlay'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sys_language_uid'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$langArr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TYPO3_DB'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>	<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sys_language_uid'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$pointer</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$flags</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;img src=&quot;uploads/tf/flag_de.gif&quot; width=&quot;20&quot; height=&quot;10&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;padding: 2px 2px 5px 2px;background:#667DAB; position:relative; top: 5px;&quot; /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;img src=&quot;uploads/tf/flag_de.gif&quot; width=&quot;20&quot; height=&quot;10&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;padding: 2px 2px 5px 2px; position:relative; top: 5px;&quot; /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'index.php?id='</span><span style="color: #339933;">.</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;L=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_top&quot;&gt;&lt;img src=&quot;uploads/tf/flag_de.gif&quot; width=&quot;20&quot; height=&quot;10&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;padding: 2px 2px 5px 2px; position:relative; top: 5px;&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">2</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;img src=&quot;uploads/tf/flag_en'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'_d'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.gif&quot; width=&quot;20&quot; height=&quot;10&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;padding: 2px 2px 5px 2px;background:#667DAB; position:relative; top: 5px;&quot; /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">2</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;img src=&quot;uploads/tf/flag_en'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'_d'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.gif&quot; width=&quot;20&quot; height=&quot;10&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;padding: 2px 2px 5px 2px; position:relative; top: 5px;&quot; /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">2</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'index.php?id='</span><span style="color: #339933;">.</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;L=2'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_top&quot;&gt;&lt;img src=&quot;uploads/tf/flag_en'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'_d'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.gif&quot; width=&quot;20&quot; height=&quot;10&quot; border=&quot;0&quot; alt=&quot;&quot; style=&quot;padding: 2px 2px 5px 2px; position:relative; top: 5px;&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">.</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$flags</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;nbsp;&amp;nbsp;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h1>Implementierung</h1>
<p>Dieser Code wird, zusammen mit den Flaggendateien, als <em>sprachmenu.inc</em> im uploads/tf/-Ordner gespeichert und mittels TypoScript &#252;ber einen Marker aufgerufen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">page = PAGE
&nbsp;
page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span> = PHP_SCRIPT
page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span>.<span style="color: #006600;">file</span> = uploads<span style="color: #66cc66;">/</span>tf<span style="color: #66cc66;">/</span>sprachmenu.<span style="color: #006600;">inc</span></pre></td></tr></table></div>

<p><strong>Hinweis:</strong> Dieses Men&#252; bedient die Sprachen Deutsch und Englisch, kann aber beliebig erweitert werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Sprachmen&#252; ohne Flaggen</title>
		<link>http://typo3.schloebe.de/typoscript/sprachmenue-ohne-flaggen/</link>
		<comments>http://typo3.schloebe.de/typoscript/sprachmenue-ohne-flaggen/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 20:55:03 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[flagge]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[sprachmenu]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/typoscript/sprachmenue-ohne-flaggen/</guid>
		<description><![CDATA[Das Standard Sprachmen&#252; von Typo3 arbeitet mit Flaggen. Doch abh&#228;ngig vom gew&#228;hlten Design kann ein rein textliches Sprachmen&#252; von Vorteil sein. Daf&#252;r habe ich ein wenig Hand angelegt. Das Textmen&#252; verf&#252;gt &#252;ber die selben Eigenschaften wie das Flaggen-Sprachmen&#252;: Ausgrauen bei Nicht-Verf&#252;gbarkeit und Markierung bei Aktivit&#228;t. 1 2 3 4 5 6 7 8 9 10 [...]]]></description>
			<content:encoded><![CDATA[<p>Das Standard Sprachmen&#252; von Typo3 arbeitet mit Flaggen. Doch abh&#228;ngig vom gew&#228;hlten Design kann ein rein textliches Sprachmen&#252; von Vorteil sein. Daf&#252;r habe ich ein wenig Hand angelegt.</p>
<p>Das Textmen&#252; verf&#252;gt &#252;ber die selben Eigenschaften wie das Flaggen-Sprachmen&#252;: Ausgrauen bei Nicht-Verf&#252;gbarkeit und Markierung bei Aktivit&#228;t.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error: No parent object present.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TYPO3_DB'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">exec_SELECTquery</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pages_language_overlay'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'pid='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">enableFields</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pages_language_overlay'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sys_language_uid'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$langArr</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TYPO3_DB'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>	<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'sys_language_uid'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$pointer</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$flags</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'SCRIPT_FILENAME'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'index.php'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'index.php?'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$query</span> <span style="color: #339933;">.=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'QUERY_STRING'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$langstrings</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;L=1&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&amp;L=0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langstrings</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$langtext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'German'</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$langtext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Deutsch'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;L=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_top&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$langtext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langstrings</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">0</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;L=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;0&quot;</span> OR <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'L'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langstrings</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;L=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_top&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'&lt;span style=&quot;color:#ddd&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'English'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">''</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'&lt;span style=&quot;color:#ddd&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'English'</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langArr</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span>?<span style="color: #0000ff;">''</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langstrings</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$flags</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'TSFE'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sys_language_uid</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span>?<span style="color: #000088;">$pointer</span><span style="color: #339933;">:</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;L=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_top&quot;&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #000088;">$flags</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' | '</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h1>Implementierung</h1>
<p>Dieser Code wird als <em>sprachmenu.inc</em> im uploads/tf/-Ordner gespeichert und mittels TypoScript &#252;ber einen Marker aufgerufen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">page = PAGE
&nbsp;
page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span> = PHP_SCRIPT
page.10.<span style="color: #006600;">marks</span>.<span style="color: #006600;">SPRACHE</span>.<span style="color: #006600;">file</span> = uploads<span style="color: #66cc66;">/</span>tf<span style="color: #66cc66;">/</span>sprachmenu.<span style="color: #006600;">inc</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/sprachmenue-ohne-flaggen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(M)Ein Setup- und Konstanten-TypoScript</title>
		<link>http://typo3.schloebe.de/typoscript/optimales-setup-und-konstanten-typoscript/</link>
		<comments>http://typo3.schloebe.de/typoscript/optimales-setup-und-konstanten-typoscript/#comments</comments>
		<pubDate>Sun, 22 Jul 2007 20:50:25 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[konstanten]]></category>
		<category><![CDATA[optimal]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/typoscript/optimales-setup-und-konstanten-typoscript/</guid>
		<description><![CDATA[Folgende Setups nutze ich standardm&#228;&#223;ig f&#252;r jedes neue Projekt. Deckt (fast) alle bekannten Dinge ab, die f&#252;r barriere- und fehlerfreie Typo3-Layouts wichtig sind. Zudem werden einige deutsche Default-Werte f&#252;r ein paar Extensions gesetzt. Constants: 1 2 3 4 5 6 7 8 9 10 11 12 PAGE_TARGET = _self styles.sitemap.text.target = _self styles.content.imgtext.caption.1.wrap = &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Folgende Setups nutze ich standardm&#228;&#223;ig f&#252;r jedes neue Projekt. Deckt (fast) alle bekannten Dinge ab, die f&#252;r barriere- und fehlerfreie Typo3-Layouts wichtig sind. Zudem werden einige deutsche Default-Werte f&#252;r ein paar Extensions gesetzt.</p>
<p>Constants: <span id="more-8"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">PAGE_TARGET = _self
styles.<span style="color: #006600;">sitemap</span>.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">target</span> = _self
styles.<span style="color: #006600;">content</span>.<span style="color: #006600;">imgtext</span>.<span style="color: #0066CC;">caption</span>.1.<span style="color: #006600;">wrap</span> = <span style="color: #66cc66;">|</span>
styles.<span style="color: #006600;">content</span>.<span style="color: #006600;">imgtext</span>.<span style="color: #0066CC;">caption</span>.1.<span style="color: #006600;">spaceBefore</span> = <span style="color: #cc66cc;">0</span>
styles.<span style="color: #006600;">content</span>.<span style="color: #006600;">imgtext</span>.<span style="color: #0066CC;">caption</span>.1.<span style="color: #006600;">br</span> = <span style="color: #cc66cc;">0</span>
styles.<span style="color: #006600;">sitemap</span>.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">target</span> = _self
content.<span style="color: #006600;">pageFrameObj</span> = _self
styles.<span style="color: #006600;">content</span>.<span style="color: #006600;">mailform</span>.<span style="color: #006600;">badMess</span> = Einige Felder wurden nicht ausgefüllt.
<span style="color: #006600;">styles</span>.<span style="color: #006600;">sitemap</span>.<span style="color: #0066CC;">text</span>.<span style="color: #006600;">totalWrap</span> = <span style="color: #66cc66;">|</span>
content.<span style="color: #006600;">subMenuWrap</span> = <span style="color: #66cc66;">|</span>
content.<span style="color: #006600;">menuWrap</span> = <span style="color: #66cc66;">|</span>
content.<span style="color: #006600;">headerSpace</span> = <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">|</span><span style="color: #cc66cc;">0</span></pre></td></tr></table></div>

<p>Setup:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#Linkziele für die Sitemap-Seitentypen</span>
tt_content.<span style="color: #0066CC;">menu</span>.20.5.1.<span style="color: #0066CC;">target</span> = _self
tt_content.<span style="color: #0066CC;">menu</span>.20.7.1.<span style="color: #0066CC;">target</span> = _self
tt_content.<span style="color: #0066CC;">menu</span>.20.7.2.<span style="color: #0066CC;">target</span> = _self
tt_content.<span style="color: #0066CC;">menu</span>.20.1.1.<span style="color: #0066CC;">target</span> = _self
tt_content.<span style="color: #0066CC;">menu</span>.20.4.1.<span style="color: #0066CC;">target</span> = _self
tt_content.<span style="color: #0066CC;">menu</span>.20.6.1.<span style="color: #0066CC;">target</span> = _self
&nbsp;
tt_content.<span style="color: #006600;">image</span>.20.<span style="color: #006600;">renderMethod</span> = div
tt_content.<span style="color: #006600;">image</span>.20.<span style="color: #006600;">rendering</span>.<span style="color: #006600;">dl</span>.<span style="color: #0066CC;">caption</span>.<span style="color: #b1b100;">if</span>.<span style="color: #006600;">isTrue</span>.<span style="color: #006600;">field</span> = imagecaption
&nbsp;
<span style="color: #808080; font-style: italic;">#Formatierung der CSS styled Filelinks</span>
tt_content.<span style="color: #006600;">uploads</span>.20.<span style="color: #006600;">layout</span> <span style="color: #66cc66;">&#123;</span>
  global = <span style="color: #66cc66;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">&quot;filelinks filelinks_layout_###LAYOUT###&quot;</span><span style="color: #66cc66;">&gt;</span><span style="color: #808080; font-style: italic;">###FILE###&lt;/div&gt;</span>
  fileSize <span style="color: #66cc66;">&#123;</span>
    layout = <span style="color: #66cc66;">&#40;</span><span style="color: #808080; font-style: italic;">###SIZE### ###SIZEFORMAT###)</span>
    char = none
    format = auto
    desc = Bytes<span style="color: #66cc66;">|</span>KB<span style="color: #66cc66;">|</span>MB
    <span style="color: #0066CC;">round</span> = <span style="color: #cc66cc;">2</span>
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
tt_content.<span style="color: #006600;">uploads</span>.20.<span style="color: #006600;">layout</span>.<span style="color: #006600;">file</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #006600;">uploads</span>.20.<span style="color: #006600;">layout</span>.<span style="color: #006600;">file</span>.<span style="color: #006600;">cObject</span> = COA
tt_content.<span style="color: #006600;">uploads</span>.20.<span style="color: #006600;">layout</span>.<span style="color: #006600;">file</span>.<span style="color: #006600;">cObject</span> <span style="color: #66cc66;">&#123;</span>
  wrap = <span style="color: #66cc66;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">&quot;###CLASS###&quot;</span><span style="color: #66cc66;">&gt;|&lt;/</span>div<span style="color: #66cc66;">&gt;</span>
  <span style="color: #cc66cc;">10</span> = <span style="color: #0066CC;">TEXT</span>
  <span style="color: #cc66cc;">10</span>.<span style="color: #006600;">wrap</span> = <span style="color: #66cc66;">&lt;</span>span<span style="color: #66cc66;">&gt;|&lt;/</span>span<span style="color: #66cc66;">&gt;</span>
  <span style="color: #cc66cc;">10</span>.<span style="color: #006600;">value</span> = <span style="color: #66cc66;">&lt;</span>a href=<span style="color: #ff0000;">&quot;###URL###&quot;</span> <span style="color: #808080; font-style: italic;">###TARGET###&gt;###DESCRIPTION###&lt;/a&gt;</span>
  <span style="color: #cc66cc;">20</span> <span style="color: #66cc66;">&lt;</span> .10
  <span style="color: #cc66cc;">20</span>.<span style="color: #006600;">value</span> = <span style="color: #66cc66;">&lt;</span>small<span style="color: #66cc66;">&gt;</span><span style="color: #808080; font-style: italic;">###FILESIZE###&lt;/small&gt;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
tt_content.<span style="color: #0066CC;">text</span>.20.<span style="color: #006600;">parseFunc</span>.<span style="color: #006600;">nonTypoTagStdWrap</span>.<span style="color: #006600;">encapsLines</span>.<span style="color: #006600;">nonWrappedTag</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #0066CC;">text</span>.20.<span style="color: #006600;">parseFunc</span>.<span style="color: #006600;">nonTypoTagStdWrap</span>.<span style="color: #006600;">encapsLines</span>.<span style="color: #006600;">addAttributes</span>.<span style="color: #006600;">P</span>.<span style="color: #006600;">style</span> =
&nbsp;
<span style="color: #808080; font-style: italic;">#Einstellungen für barrierearmes Typo3 Kontaktform</span>
tt_content.<span style="color: #006600;">mailform</span>.20 <span style="color: #66cc66;">&#123;</span>
  <span style="color: #0066CC;">accessibility</span> = <span style="color: #cc66cc;">1</span>
  noWrapAttr=<span style="color: #cc66cc;">1</span>
  formName = mailform
  REQ = <span style="color: #cc66cc;">1</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
config <span style="color: #66cc66;">&#123;</span>
  cache_clearAtMidnight = <span style="color: #cc66cc;">1</span>
  admPanel = <span style="color: #cc66cc;">0</span>
  noPageTitle = <span style="color: #cc66cc;">1</span>
  index_enable = <span style="color: #cc66cc;">1</span>
  index_externals = <span style="color: #cc66cc;">1</span>
  simulateStaticDocuments_addTitle = <span style="color: #cc66cc;">60</span>
  simulateStaticDocuments_pEnc_onlyP = cHash, no_cache, L, <span style="color: #0066CC;">print</span>, tx_ttnews<span style="color: #66cc66;">&#91;</span>backPid<span style="color: #66cc66;">&#93;</span>, tx_ttnews<span style="color: #66cc66;">&#91;</span>tt_news<span style="color: #66cc66;">&#93;</span>, tx_ttnews<span style="color: #66cc66;">&#91;</span>pS<span style="color: #66cc66;">&#93;</span>, tx_ttnews<span style="color: #66cc66;">&#91;</span>pL<span style="color: #66cc66;">&#93;</span>, tx_ttnews<span style="color: #66cc66;">&#91;</span>arc<span style="color: #66cc66;">&#93;</span>, tx_ttnews<span style="color: #66cc66;">&#91;</span>cat<span style="color: #66cc66;">&#93;</span>, tx_ttnews<span style="color: #66cc66;">&#91;</span>pointer<span style="color: #66cc66;">&#93;</span>, tx_ttnews<span style="color: #66cc66;">&#91;</span>swords<span style="color: #66cc66;">&#93;</span>
  spamProtectEmailAddresses = <span style="color: #cc66cc;">1</span>
  spamProtectEmailAddresses_atSubst = <span style="color: #66cc66;">&amp;</span>nbsp;<span style="color: #66cc66;">&#40;</span>at<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&amp;</span>nbsp;
  tx_realurl_enable = <span style="color: #cc66cc;">0</span>
  removeDefaultJS = <span style="color: #cc66cc;">1</span>
  removeDefaultJS = external
  doctype = xhtml_trans
  inlineStyle2TempFile = <span style="color: #cc66cc;">1</span>
  disablePrefixComment = <span style="color: #cc66cc;">1</span>
  xmlprologue = none
  xhtml_cleaning = all
  htmlTag_setParams = xmlns=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span> <span style="color: #0066CC;">xml</span>:lang=<span style="color: #ff0000;">&quot;de&quot;</span> lang=<span style="color: #ff0000;">&quot;de&quot;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#RTE Tuning</span>
lib.<span style="color: #006600;">parseFunc_RTE</span>.<span style="color: #006600;">nonTypoTagStdWrap</span>.<span style="color: #006600;">encapsLines</span>.<span style="color: #006600;">addAttributes</span>.<span style="color: #006600;">P</span>.<span style="color: #000000; font-weight: bold;">class</span> <span style="color: #66cc66;">&gt;</span>
lib.<span style="color: #006600;">parseFunc_RTE</span>.<span style="color: #006600;">nonTypoTagStdWrap</span>.<span style="color: #006600;">encapsLines</span>.<span style="color: #006600;">remapTag</span> <span style="color: #66cc66;">&gt;</span>
lib.<span style="color: #006600;">parseFunc_RTE</span>.<span style="color: #006600;">nonTypoTagStdWrap</span>.<span style="color: #006600;">encapsLines</span>.<span style="color: #006600;">addAttributes</span>.<span style="color: #006600;">DIV</span>.<span style="color: #000000; font-weight: bold;">class</span> <span style="color: #66cc66;">&gt;</span>
<span style="color: #808080; font-style: italic;">#Angabe von Tags, die nicht mit einem zusätzlichen wrap umgeben werden dürfen</span>
lib.<span style="color: #006600;">parseFunc_RTE</span>.<span style="color: #006600;">nonTypoTagStdWrap</span>.<span style="color: #006600;">encapsLines</span>.<span style="color: #006600;">encapsTagList</span> = cite, div, p, pre, h1, h2, h3, h4, h5, h6
&nbsp;
<span style="color: #808080; font-style: italic;">#Entfernt die zusätzlichen CSS-Klassen</span>
lib.<span style="color: #006600;">stdheader</span>.3 = LOAD_REGISTER
lib.<span style="color: #006600;">stdheader</span>.3.<span style="color: #006600;">headerClass</span> =
lib.<span style="color: #006600;">stdheader</span>.3.<span style="color: #006600;">headerClass</span>.<span style="color: #006600;">noTrimWrap</span> = <span style="color: #66cc66;">|</span>
lib.<span style="color: #006600;">stdheader</span>.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">dataWrap</span> = <span style="color: #66cc66;">|</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#Content Elemente aufräumen und Kommentare entfernen</span>
tt_content.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">dataWrap</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #006600;">header</span>.20.<span style="color: #006600;">dataWrap</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #006600;">header</span>.20.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #000000; font-weight: bold;">default</span>.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #0066CC;">text</span>.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #0066CC;">text</span>.20.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #006600;">textpic</span>.20.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #006600;">table</span>.20.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #006600;">mailform</span>.20.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">wrap</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #0066CC;">menu</span>.20.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #006600;">image</span>.20.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
tt_content.<span style="color: #0066CC;">list</span>.20.<span style="color: #006600;">stdWrap</span>.<span style="color: #006600;">prefixComment</span> <span style="color: #66cc66;">&gt;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#Seitensprachen setzen</span>
config.<span style="color: #006600;">linkVars</span> = L
config.<span style="color: #006600;">sys_language_uid</span> = <span style="color: #cc66cc;">0</span>
config.<span style="color: #0066CC;">language</span> = de
config.<span style="color: #006600;">locale_all</span> = de_DE
<span style="color: #66cc66;">&#91;</span>globalVar = GP:L = <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>
config.<span style="color: #006600;">sys_language_uid</span> = <span style="color: #cc66cc;">1</span>
config.<span style="color: #0066CC;">language</span> = en
config.<span style="color: #006600;">locale_all</span> = english
<span style="color: #66cc66;">&#91;</span>global<span style="color: #66cc66;">&#93;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#tt_news Tuning-Einstellungen</span>
plugin.<span style="color: #006600;">tt_news</span>.<span style="color: #006600;">sys_language_mode</span> = strict
plugin.<span style="color: #006600;">tt_news</span>.<span style="color: #006600;">showNewsWithoutDefaultTranslation</span> = <span style="color: #cc66cc;">1</span>
&nbsp;
plugin.<span style="color: #006600;">tt_news</span> <span style="color: #66cc66;">&#123;</span>
  displaySingle.<span style="color: #006600;">age_stdWrap</span>.<span style="color: #006600;">age</span> = Minute<span style="color: #66cc66;">&#40;</span>n<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> Stunde<span style="color: #66cc66;">&#40;</span>n<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> Tag<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> Jahr<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span><span style="color: #66cc66;">&#41;</span>
  displayList.<span style="color: #006600;">age_stdWrap</span>.<span style="color: #006600;">age</span> = Minute<span style="color: #66cc66;">&#40;</span>n<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> Stunde<span style="color: #66cc66;">&#40;</span>n<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> Tag<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">|</span> Jahr<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span><span style="color: #66cc66;">&#41;</span>
  displayList.<span style="color: #006600;">date_stdWrap</span>.<span style="color: #006600;">strftime</span> = <span style="color: #66cc66;">%</span>A, <span style="color: #66cc66;">%</span>d. <span style="color: #66cc66;">%</span>B <span style="color: #66cc66;">%</span>Y
  displaySingle.<span style="color: #006600;">date_stdWrap</span>.<span style="color: #006600;">strftime</span> = <span style="color: #66cc66;">%</span>A, <span style="color: #66cc66;">%</span>d. <span style="color: #66cc66;">%</span>B <span style="color: #66cc66;">%</span>Y <span style="color: #66cc66;">|</span> 
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">#indexed_search Datums-Tuning</span>
plugin.<span style="color: #006600;">tx_indexedsearch</span> <span style="color: #66cc66;">&#123;</span>
  displayList.<span style="color: #006600;">date_stdWrap</span>.<span style="color: #006600;">strftime</span> = <span style="color: #66cc66;">%</span>A, <span style="color: #66cc66;">%</span>d. <span style="color: #66cc66;">%</span>B <span style="color: #66cc66;">%</span>Y
  displaySingle.<span style="color: #006600;">date_stdWrap</span>.<span style="color: #006600;">strftime</span> = <span style="color: #66cc66;">%</span>A, <span style="color: #66cc66;">%</span>d. <span style="color: #66cc66;">%</span>B <span style="color: #66cc66;">%</span>Y <span style="color: #66cc66;">|</span> 
<span style="color: #66cc66;">&#125;</span>
&nbsp;
page = PAGE
&nbsp;
<span style="color: #808080; font-style: italic;">#Titel-Metas schreiben</span>
page <span style="color: #66cc66;">&#123;</span>
  headerData <span style="color: #66cc66;">&#123;</span>
    <span style="color: #cc66cc;">10</span> = <span style="color: #0066CC;">TEXT</span>
    <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#123;</span>
      field = title
      wrap = <span style="color: #66cc66;">&lt;</span>title<span style="color: #66cc66;">&gt;</span>IhrWebsiteTitel<span style="color: #66cc66;">/</span>Ihr Firmenname -<span style="color: #66cc66;">&amp;</span>nbsp;<span style="color: #66cc66;">|&lt;/</span>title<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
  headerData <span style="color: #66cc66;">&#123;</span>
    <span style="color: #cc66cc;">11</span> = <span style="color: #0066CC;">TEXT</span>
    <span style="color: #cc66cc;">11</span>.<span style="color: #006600;">value</span> = <span style="color: #66cc66;">&lt;</span>meta http-equiv=<span style="color: #ff0000;">&quot;Content-Script-Type&quot;</span> content=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #66cc66;">/&gt;</span>
  <span style="color: #66cc66;">&#125;</span>
  headerData <span style="color: #66cc66;">&#123;</span>
    <span style="color: #cc66cc;">14</span> = <span style="color: #0066CC;">TEXT</span>
    <span style="color: #cc66cc;">14</span>.<span style="color: #006600;">value</span> = <span style="color: #66cc66;">&lt;</span>meta <span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;language&quot;</span> content=<span style="color: #ff0000;">&quot;de&quot;</span> <span style="color: #66cc66;">/&gt;</span>
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
page.<span style="color: #006600;">includeCSS</span> <span style="color: #66cc66;">&#123;</span>
  file1 = 
  file1.<span style="color: #006600;">media</span> = screen
<span style="color: #66cc66;">&#125;</span>
&nbsp;
page.<span style="color: #006600;">meta</span>.<span style="color: #006600;">description</span> = 
page.<span style="color: #006600;">meta</span>.<span style="color: #006600;">keywords</span> = 
page.<span style="color: #006600;">meta</span>.<span style="color: #006600;">robots</span> = <span style="color: #0066CC;">index</span>,follow</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/optimales-setup-und-konstanten-typoscript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Typo3 Formular stylen</title>
		<link>http://typo3.schloebe.de/typoscript/typo3-formular-stylen/</link>
		<comments>http://typo3.schloebe.de/typoscript/typo3-formular-stylen/#comments</comments>
		<pubDate>Sun, 22 Jul 2007 20:01:16 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[formular]]></category>
		<category><![CDATA[stylen]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/typoscript/typo3-formular-stylen/</guid>
		<description><![CDATA[Hiermit l&#228;sst sich das Standard-Mailformular von Typo3 stylen. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 .csc-mailform &#123; border: 0px; &#125; &#160; .csc-mailform-field label &#123; font-size: 10pt; font-family: Helvetica, Verdana, Arial, sans-serif; width: 5em; float: left; text-align: right; margin-right: 0.5em; display: block; &#125; &#160; .csc-mailform-submit &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>Hiermit l&#228;sst sich das Standard-Mailformular von Typo3 stylen. <span id="more-3"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.csc-mailform</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.csc-mailform-field</span> label <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10pt</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.5em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.csc-mailform-submit</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5.5em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/typo3-formular-stylen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

