<?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; Tweaks</title>
	<atom:link href="http://typo3.schloebe.de/kategorie/tweaks/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>Plugin felogin und Duplicate Content</title>
		<link>http://typo3.schloebe.de/typoscript/plugin-felogin-duplicate-content/</link>
		<comments>http://typo3.schloebe.de/typoscript/plugin-felogin-duplicate-content/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 14:40:01 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[Duplicate Content]]></category>
		<category><![CDATA[felogin]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/?p=84</guid>
		<description><![CDATA[Wer das Plugin &#8220;Frontend Login for Website Users&#8221; (felogin) nutzt, der sorgt so u.U. f&#252;r Duplicate Content auf seiner Seite. Der Grund f&#252;r den Duplicate Content ist der &#8220;Kennwort vergessen?&#8221;-Link, der den Google Bot jede Seite doppelt crawlen l&#228;sst. So werden z.B. folgende URLs doppelt indexiert, obwohl sie den selben Inhalt liefern: domain.de/seite/ domain.de/seite/?tx_felogin_pi1[forgot]=1 Es [...]]]></description>
			<content:encoded><![CDATA[<p>Wer das Plugin &#8220;Frontend Login for Website Users&#8221; (<em>felogin</em>) nutzt, der sorgt so u.U. f&#252;r Duplicate Content auf seiner Seite.<span id="more-84"></span></p>
<p>Der Grund f&#252;r den Duplicate Content ist der &#8220;Kennwort vergessen?&#8221;-Link, der den Google Bot jede Seite doppelt crawlen l&#228;sst. So werden z.B. folgende URLs doppelt indexiert, obwohl sie den selben Inhalt liefern:</p>
<blockquote><p>domain.de/seite/<br />
domain.de/seite/?tx_felogin_pi1[forgot]=1</p></blockquote>
<p>Es gibt daf&#252;r 2 Wege, dies zu beseitigen, sodass die Parameter-URL nicht mehr von Suchmaschinen indexiert werden.</p>
<h2>1. TypoScript</h2>
<p>Folgendes TypoScript-Snippet im Setup f&#252;gt dem &#8220;Kennwort vergessen?&#8221;-Link ein rel=nofollow hinzu, was Suchmaschinen-Bots sagt, dass sie den Links nicht folgenden sollen:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">plugin.<span style="color: #006600;">tx_felogin_pi1</span>.<span style="color: #006600;">linkConfig</span>.<span style="color: #006600;">ATagParams</span> = rel=<span style="color: #ff0000;">&quot;nofollow&quot;</span></pre></div></div>

<h2>2. robots.txt</h2>
<p>Alternativ (oder zus&#228;tzlich) kann man auch folgendes Statement in seine robots.txt eintragen, was Suchmaschinen-Bots ebenfalls sagt, dass sie den Links nicht folgenden sollen:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">User-agent: <span style="color: #66cc66;">*</span>
Disallow: <span style="color: #808080; font-style: italic;">/*?tx_felogin_pi1</span></pre></div></div>

<p>Als dritte M&#246;glichkeit sei noch erw&#228;hnt, dass man in den Google Webmaster Tools unter &#8220;Website Konfiguration&#8221; > URL-Parameter den URL-Parameter <em>tx_felogin_pi1</em> ebenfalls von der Indexierung ausschlie&#223;en kann.</p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/plugin-felogin-duplicate-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bildunterschriften des Inhaltselements nutzen trotz DAM</title>
		<link>http://typo3.schloebe.de/typoscript/bildunterschriften-inhaltselements-dam/</link>
		<comments>http://typo3.schloebe.de/typoscript/bildunterschriften-inhaltselements-dam/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 08:56:20 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[Caption]]></category>
		<category><![CDATA[DAM]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/?p=75</guid>
		<description><![CDATA[Installiert man die DAM-Extension, kann das Bildunterschrift-Feld im &#8220;Bilder&#8221;-Inhaltselement nicht mehr standardm&#228;&#223;ig genutzt werden. Es m&#252;ssen die Bildunterschriften im DAM-Medien-Datensatz gesetzt werden. Will man dennoch weiterhin das Bildunterschrift-Feld im &#8220;Bilder&#8221;-Inhaltselement nutzen, hilft folgendes TypoScript-Snippet, das im Setup des Templates Platz findet: tt_content.image.20 &#123; captionEach = &#123;$styles.content.imgtext.captionEach&#125; caption &#123; 1 = TEXT 1 &#123; field = [...]]]></description>
			<content:encoded><![CDATA[<p>Installiert man die DAM-Extension, kann das Bildunterschrift-Feld im &#8220;Bilder&#8221;-Inhaltselement nicht mehr standardm&#228;&#223;ig genutzt werden.<span id="more-75"></span> Es m&#252;ssen die Bildunterschriften im DAM-Medien-Datensatz gesetzt werden.</p>
<div id="attachment_76" class="wp-caption aligncenter" style="width: 367px"><img src="http://typo3.schloebe.de/wp-content/uploads/2011/04/bildunterschrift_typo3.jpg" alt="Bildunterschrift TYPO3" title="Bildunterschrift TYPO3" width="357" height="153" class="size-full wp-image-76" /><p class="wp-caption-text">Bildunterschrift TYPO3</p></div>
<p>Will man dennoch weiterhin das Bildunterschrift-Feld im &#8220;Bilder&#8221;-Inhaltselement nutzen, hilft folgendes TypoScript-Snippet, das im Setup des Templates Platz findet:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">tt_content.<span style="color: #006600;">image</span>.20 <span style="color: #66cc66;">&#123;</span>
  captionEach = <span style="color: #66cc66;">&#123;</span>$styles.<span style="color: #006600;">content</span>.<span style="color: #006600;">imgtext</span>.<span style="color: #006600;">captionEach</span><span style="color: #66cc66;">&#125;</span>
  <span style="color: #0066CC;">caption</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #cc66cc;">1</span> = <span style="color: #0066CC;">TEXT</span>
    <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#123;</span>
      field = imagecaption
      required = <span style="color: #cc66cc;">1</span>
      parseFunc =<span style="color: #66cc66;">&lt;</span> lib.<span style="color: #006600;">parseFunc</span>
      br = <span style="color: #cc66cc;">1</span>
      fontTag = <span style="color: #66cc66;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">&quot;csc-caption&quot;</span><span style="color: #66cc66;">&gt;|&lt;/</span>div<span style="color: #66cc66;">&gt;</span>
      wrapAlign.<span style="color: #006600;">field</span> = imagecaption_position
      <span style="color: #0066CC;">split</span>.<span style="color: #006600;">token</span>.<span style="color: #006600;">char</span> = <span style="color: #cc66cc;">10</span>
      <span style="color: #0066CC;">split</span>.<span style="color: #006600;">token</span>.<span style="color: #b1b100;">if</span>.<span style="color: #006600;">isPositive</span> = <span style="color: #66cc66;">&#123;</span>$styles.<span style="color: #006600;">content</span>.<span style="color: #006600;">imgtext</span>.<span style="color: #006600;">imageTextSplit</span><span style="color: #66cc66;">&#125;</span> + <span style="color: #66cc66;">&#123;</span>$styles.<span style="color: #006600;">content</span>.<span style="color: #006600;">imgtext</span>.<span style="color: #006600;">captionSplit</span><span style="color: #66cc66;">&#125;</span>
      <span style="color: #0066CC;">split</span>.<span style="color: #006600;">returnKey</span>.<span style="color: #0066CC;">data</span> = register : IMAGE_NUM_CURRENT
    <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/bildunterschriften-inhaltselements-dam/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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>Namenspr&#252;fung f&#252;r fe_users deaktivieren</title>
		<link>http://typo3.schloebe.de/allgemein/namenspruefung-fuer-fe_users-deaktivieren/</link>
		<comments>http://typo3.schloebe.de/allgemein/namenspruefung-fuer-fe_users-deaktivieren/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 15:19:48 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[eval]]></category>
		<category><![CDATA[Evaluation]]></category>
		<category><![CDATA[fe_user]]></category>
		<category><![CDATA[fe_users]]></category>
		<category><![CDATA[TCA]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/?p=66</guid>
		<description><![CDATA[Die automatische Pr&#252;fung bzw. Umwandlung von fe_user Nutzernamen beim Bearbeiten eines Nutzer-Datensatzes ist sinnvoll, kann aber auch st&#246;ren. So wird aus einem Benutzernamen &#8220;Andreas Test&#8221; nach dem Speichern &#8220;andreastest&#8220;, d.h. der Loginname &#228;ndert sich komplett, da dies so von TYPO3 vorgegeben ist. Manchmal kann es aber eher hinderlich sein, wenn z.B. kurzfristig ein Loginsystem etabliert [...]]]></description>
			<content:encoded><![CDATA[<p>Die automatische Pr&#252;fung bzw. Umwandlung von fe_user Nutzernamen beim Bearbeiten eines Nutzer-Datensatzes ist sinnvoll, kann aber auch st&#246;ren.<span id="more-66"></span></p>
<p>So wird aus einem Benutzernamen &#8220;<strong>Andreas Test</strong>&#8221; nach dem Speichern &#8220;<strong>andreastest</strong>&#8220;, d.h. der Loginname &#228;ndert sich komplett, da dies so von TYPO3 vorgegeben ist.</p>
<p>Manchmal kann es aber eher hinderlich sein, wenn z.B. kurzfristig ein Loginsystem etabliert werden muss, bei dem die Daten aus einer Kunden-CSV kommen, und die rund 300 Mitarbeiter so kurzfristig ihre neuen Logindaten nicht zugeschickt bekommen k&#246;nnen bzw. sie so schnell nicht auf die &#196;nderung vorbereitet h&#228;tten werden k&#246;nnen. Es soll also der Anmeldename nach dem Import bei &#8220;Andreas Test&#8221; bleiben, und das soll nach dem Bearbeiten eines fe_users-Datensatzen auch so bleiben.</p>
<p>Mit der folgenden Zeile in der <strong>extTables.php</strong> des /typo3conf-Verzeichnisses l&#228;sst sich diese Namenskonventionspr&#252;fung abschalten bzw. etwas entkr&#228;ften:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$TCA</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fe_users'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'columns'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'config'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'eval'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'uniqueInPid,required'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Der Wert &#8216;uniqueInPid,required&#8217; ist dabei die entsch&#228;rfte Form. Standardm&#228;&#223;ig werden folgende Regeln evaluiert:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$TCA</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fe_users'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'columns'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'config'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'eval'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'nospace,lower,uniqueInPid,required'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Also zus&#228;tzlich noch auf <em>Leerzeichen entfernen</em> (nospace) und <em>In Kleinbuchstaben umwandeln</em> (lower).</p>
<p>Ein weiteres Beispiel, wie einfach man wirklich alles in TYPO3 nach eigenen W&#252;nschen anpassen kann. <img src='http://typo3.schloebe.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/allgemein/namenspruefung-fuer-fe_users-deaktivieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sitemap (mit Inhaltsanangabe) anpassen</title>
		<link>http://typo3.schloebe.de/typoscript/sitemap-mit-inhaltsanangabe-csc-menu4-anpassen/</link>
		<comments>http://typo3.schloebe.de/typoscript/sitemap-mit-inhaltsanangabe-csc-menu4-anpassen/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 11:11:03 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[bild]]></category>
		<category><![CDATA[Frame]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[media feld]]></category>
		<category><![CDATA[menü]]></category>
		<category><![CDATA[Sitemap]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/?p=57</guid>
		<description><![CDATA[Die Sitemap &#8220;Men&#252; der Unterseiten (mit Inhaltsanangabe)&#8221; listet standardm&#228;&#223;ig nur die Seiten mitsamt einer kurzen Beschreibung auf. Nicht sonderlich sch&#246;n. Sch&#246;n w&#228;ren da Bilder, die die Seiteninhalte optisch widerspiegeln. Denn Bilder sagen bekanntlich mehr als Tausend Worte. Darum folgend ein Code-Schnipsel, wie man das &#8220;Men&#252; der Unterseiten (mit Inhaltsanangabe)&#8221; (csc-menu4) ein wenig aufh&#252;bscht, und mit [...]]]></description>
			<content:encoded><![CDATA[<p>Die Sitemap &#8220;Men&#252; der Unterseiten (mit Inhaltsanangabe)&#8221; listet standardm&#228;&#223;ig nur die Seiten mitsamt einer kurzen Beschreibung auf. Nicht sonderlich sch&#246;n. <span id="more-57"></span></p>
<p>Sch&#246;n w&#228;ren da Bilder, die die Seiteninhalte optisch widerspiegeln. Denn Bilder sagen bekanntlich mehr als Tausend Worte. <img src='http://typo3.schloebe.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Darum folgend ein Code-Schnipsel, wie man das &#8220;Men&#252; der Unterseiten (mit Inhaltsanangabe)&#8221; (<em>csc-menu4</em>) ein wenig aufh&#252;bscht, und mit Bildern versieht:</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
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">tt_content.<span style="color: #0066CC;">menu</span> = COA
tt_content.<span style="color: #0066CC;">menu</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #cc66cc;">10</span> = <span style="color: #66cc66;">&lt;</span> lib.<span style="color: #006600;">stdheader</span>
  <span style="color: #cc66cc;">20</span> = <span style="color: #b1b100;">CASE</span>
  <span style="color: #cc66cc;">20</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #cc66cc;">4</span> <span style="color: #66cc66;">&lt;</span> .<span style="color: #000000; font-weight: bold;">default</span>
    <span style="color: #cc66cc;">4</span>.<span style="color: #006600;">special</span> = directory
    <span style="color: #cc66cc;">4</span>.<span style="color: #006600;">includeNotInMenu</span> = <span style="color: #cc66cc;">1</span>
    <span style="color: #cc66cc;">4</span>.<span style="color: #006600;">wrap</span> = <span style="color: #66cc66;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">&quot;csc-menu csc-menu-4&quot;</span><span style="color: #66cc66;">&gt;|&lt;/</span>div<span style="color: #66cc66;">&gt;</span>
    <span style="color: #cc66cc;">4.1</span>.<span style="color: #006600;">NO</span> <span style="color: #66cc66;">&#123;</span>
      before.<span style="color: #006600;">cObject</span> = COA
      before.<span style="color: #006600;">cObject</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #cc66cc;">10</span> = IMAGE
        <span style="color: #cc66cc;">10</span>.<span style="color: #006600;">file</span>.<span style="color: #0066CC;">import</span>.<span style="color: #006600;">field</span> = media
        <span style="color: #cc66cc;">10</span>.<span style="color: #006600;">file</span>.<span style="color: #0066CC;">import</span> = uploads<span style="color: #66cc66;">/</span>media<span style="color: #66cc66;">/</span>
        <span style="color: #cc66cc;">10</span>.<span style="color: #006600;">file</span>.<span style="color: #0066CC;">import</span>.<span style="color: #006600;">listNum</span> = <span style="color: #cc66cc;">0</span>
        <span style="color: #cc66cc;">10</span>.<span style="color: #006600;">file</span>.<span style="color: #006600;">maxW</span> = <span style="color: #cc66cc;">80</span>
        <span style="color: #cc66cc;">10</span>.<span style="color: #006600;">wrap</span> = <span style="color: #66cc66;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">&quot;csc-menu-imagelink&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: #006600;">imageLinkWrap</span> = <span style="color: #cc66cc;">1</span>
        <span style="color: #cc66cc;">10</span>.<span style="color: #006600;">imageLinkWrap</span> <span style="color: #66cc66;">&#123;</span>
          enable = <span style="color: #cc66cc;">1</span>
          typolink <span style="color: #66cc66;">&#123;</span>
            ATagParams.<span style="color: #006600;">insertData</span> = <span style="color: #cc66cc;">1</span>
            ATagParams = title=<span style="color: #ff0000;">&quot;{field:title}&quot;</span>
            parameter.<span style="color: #0066CC;">data</span> = field:uid
            <span style="color: #808080; font-style: italic;">#addQueryString = 1</span>
            <span style="color: #808080; font-style: italic;">#addQueryString.method = GET</span>
          <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#125;</span>
      <span style="color: #66cc66;">&#125;</span>
      allWrap <span style="color: #66cc66;">&gt;</span>
      allWrap = <span style="color: #66cc66;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">&quot;csc-frame csc-frame-frame1&quot;</span><span style="color: #66cc66;">&gt;|&lt;</span>div style=<span style="color: #ff0000;">&quot;clear:both;&quot;</span><span style="color: #66cc66;">&gt;&lt;/</span>div<span style="color: #66cc66;">&gt;&lt;/</span>div<span style="color: #66cc66;">&gt;</span>
      wrapItemAndSub = <span style="color: #66cc66;">|</span>
      after.<span style="color: #006600;">required</span> = <span style="color: #cc66cc;">1</span>
      after.<span style="color: #0066CC;">data</span> = field : abstract <span style="color: #808080; font-style: italic;">// field : description // field : subtitle</span>
      after.<span style="color: #006600;">htmlSpecialChars</span> = <span style="color: #cc66cc;">1</span>
      after.<span style="color: #006600;">wrap</span> = <span style="color: #66cc66;">&lt;</span>p <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">&quot;csc-abstract&quot;</span><span style="color: #66cc66;">&gt;|&lt;/</span>p<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<h1>Erl&#228;uterung</h1>
<p>Die Bilder f&#252;r die einzelnen Seiten werden in den Seiteneigenschaften der jew. Seiten im &#8220;Bilder&#8221;-Block hinterlegt. Die Gr&#246;&#223;e ist dabei egal, denn das Code-Snippet begrenzt die Breite der Bilder auf max. 80 Pixel, sodass diese eine einheitliche Breite haben.</p>
<p>Die H&#246;he wird im Snippet nicht begrenzt, kann aber mittels der umschlie&#223;enden CSS-Klasse <em>csc-menu-imagelink</em> per CSS geregelt werden, z.B. mit:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.csc-menu-4</span> <span style="color: #6666ff;">.csc-menu-imagelink</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">60px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</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: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>So hat man ein einheitliches Layout, das dennoch die Flexibilit&#228;t der Sitemap genie&#223;t.</p>
<p>Wie das ganze aussehen kann, zeigt folgendes Bild:</p>
<p><img src="http://typo3.schloebe.de/wp-content/uploads/2009/03/csc-sitemap4.jpg" alt="csc-sitemap4" title="csc-sitemap4" width="589" height="186" class="aligncenter size-full wp-image-60" /></p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/sitemap-mit-inhaltsanangabe-csc-menu4-anpassen/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>Eine RealURL-Konfiguration</title>
		<link>http://typo3.schloebe.de/tweaks/eine-realurl-konfiguration/</link>
		<comments>http://typo3.schloebe.de/tweaks/eine-realurl-konfiguration/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 09:25:50 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[localconf]]></category>
		<category><![CDATA[mm forum]]></category>
		<category><![CDATA[RealURL]]></category>
		<category><![CDATA[realurlconf]]></category>
		<category><![CDATA[tt news]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/tweaks/eine-realurl-konfiguration/</guid>
		<description><![CDATA[Auch wenn es an vielen Stellen bereits Vorschl&#228;ge zur RealURL-Konfiguration gibt, stelle ich nun meine oft genutzte Konfig aus. Diese werde ich im Laufe der Zeit erweitern, sobald ich neue RealURL-Konfigurationen f&#252;r weitere Extensions habe. Sie schreibt tt_news-Links um. Die tt_news-Links sehen dann wie folgt mit Datumsformation so aus: /archiv/2008/10/artikel/das-ist-ein-news-titel-als-ueberschrift/ Anzupassen gibt es lediglich zwei [...]]]></description>
			<content:encoded><![CDATA[<p>Auch wenn es an vielen Stellen bereits Vorschl&#228;ge zur RealURL-Konfiguration gibt, stelle ich nun meine oft genutzte Konfig aus. <span id="more-33"></span> <img src='http://typo3.schloebe.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Diese werde ich im Laufe der Zeit erweitern, sobald ich neue RealURL-Konfigurationen f&#252;r weitere Extensions habe.</p>
<p>Sie schreibt <em>tt_news</em>-Links um. Die <em>tt_news</em>-Links sehen dann wie folgt mit Datumsformation so aus:</p>
<blockquote><p>/archiv/2008/10/artikel/das-ist-ein-news-titel-als-ueberschrift/</p></blockquote>
<p>Anzupassen gibt es lediglich zwei Werte f&#252;r die <em>mm_forum</em>-Umschreibungen, siehe unten.</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$TYPO3_CONF_VARS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'EXTCONF'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'realurl'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'_DEFAULT'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'init'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			<span style="color: #0000ff;">'enableCHashCache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'appendMissingSlash'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ifNotFile'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'enableUrlDecodeCache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'enableUrlEncodeCache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'redirects'</span> <span style="color: #339933;">=&gt;</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: #0000ff;">'preVars'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
				<span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'no_cache'</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'valueMap'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'nc'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'noMatch'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'bypass'</span><span style="color: #339933;">,</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
			<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
				<span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'L'</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'valueMap'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'de'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'0'</span><span style="color: #339933;">,</span>
					<span style="color: #0000ff;">'en'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'1'</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'noMatch'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'bypass'</span><span style="color: #339933;">,</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'pagePath'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'user'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'userFunc'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'EXT:realurl/class.tx_realurl_advanced.php:&amp;tx_realurl_advanced-&gt;main'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'spaceCharacter'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'languageGetVar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'L'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'expireDays'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">7</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'rootpage_id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'fixedPostVars'</span> <span style="color: #339933;">=&gt;</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: #0000ff;">'postVarSets'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			<span style="color: #0000ff;">'_DEFAULT'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
				<span style="color: #0000ff;">'archiv'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[year]'</span> <span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[month]'</span> <span style="color: #339933;">,</span>
						<span style="color: #0000ff;">'valueMap'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
							<span style="color: #0000ff;">'01'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'01'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'02'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'02'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'03'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'03'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'04'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'04'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'05'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'05'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'06'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'06'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'07'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'07'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'08'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'08'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'09'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'09'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'10'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'10'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'11'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'11'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'12'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'12'</span><span style="color: #339933;">,</span>
							<span style="color: #009900;">&#41;</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'browse'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[pointer]'</span><span style="color: #339933;">,</span>
						<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'kategorie'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span>
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[cat]'</span><span style="color: #339933;">,</span>
						<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'artikel'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[tt_news]'</span><span style="color: #339933;">,</span>
						<span style="color: #0000ff;">'lookUpTable'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
							<span style="color: #0000ff;">'table'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tt_news'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'id_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'uid'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'alias_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'addWhereClause'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">' AND NOT deleted'</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'useUniqueCache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
							<span style="color: #0000ff;">'useUniqueCache_conf'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
								<span style="color: #0000ff;">'strtolower'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span>
								<span style="color: #0000ff;">'spaceCharacter'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span>
							<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
						<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[swords]'</span><span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'datum'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[year]'</span> <span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[month]'</span> <span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[day]'</span> <span style="color: #339933;">,</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
					<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_ttnews[tt_news]'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'lookUpTable'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'table'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tt_news'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'id_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'uid'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'alias_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'addWhereClause'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">' AND NOT deleted'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'useUniqueCache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'useUniqueCache_conf'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'strtolower'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'spaceCharacter'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span>  <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'pagePath'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> 
			<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'user'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'userFunc'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'EXT:realurl/class.tx_realurl_advanced.php:&amp;tx_realurl_advanced-&gt;main'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'spaceCharacter'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'segTitleFieldList'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'alias,tx_realurl_pathsegment,nav_title,title'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'languageGetVar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'L'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'expireDays'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'disablePathCache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'rootpage_id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> 
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'fileName'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
				<span style="color: #0000ff;">'rss.xml'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'keyValues'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'rss091.xml'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'keyValues'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">101</span><span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'rdf.xml'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'keyValues'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">102</span><span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #0000ff;">'atom.xml'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'keyValues'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">103</span><span style="color: #339933;">,</span>
					<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/tweaks/eine-realurl-konfiguration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vorgabe Backend Benutzergruppe und Benutzer</title>
		<link>http://typo3.schloebe.de/tweaks/vorgabe-backend-benutzergruppe-und-benutzer/</link>
		<comments>http://typo3.schloebe.de/tweaks/vorgabe-backend-benutzergruppe-und-benutzer/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 07:36:38 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[Benutzer]]></category>
		<category><![CDATA[Benutzergruppe]]></category>
		<category><![CDATA[Immport]]></category>
		<category><![CDATA[Rechte]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[typo3]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/tweaks/vorgabe-backend-benutzergruppe-und-benutzer/</guid>
		<description><![CDATA[Ein Kunde und/oder redaktioneller Benutzer von Typo3 sollte per default nicht alles vom BE sehen, denn die schiere Anzahl an Optionen und Funktionen kann f&#252;r einen Einsteiger geradezu erdr&#252;ckend sein. Aus diesem Grund gibt es von mir nun an dieser Stelle eine XML-Datei mit einem Vorgabe Benutzer und einer Benutzergruppe, die gleich importiert ad hoc [...]]]></description>
			<content:encoded><![CDATA[<p>Ein Kunde und/oder redaktioneller Benutzer von Typo3 sollte per default nicht alles vom BE sehen, denn die schiere Anzahl an Optionen und Funktionen kann f&#252;r einen Einsteiger geradezu erdr&#252;ckend sein. <span id="more-23"></span></p>
<p>Aus diesem Grund gibt es von mir nun an dieser Stelle eine XML-Datei mit einem Vorgabe Benutzer und einer Benutzergruppe, die gleich importiert ad hoc genutzt werden kann.</p>
<h1>Die Import-Datei</h1>
<p><a href="http://typo3.schloebe.de/downloads/be_vorgabe.xml" target="_blank">Die Import-Datei (.XML) herunterladen</a></p>
<h1>Die Voraussetzungen</h1>
<p>Die Import-Datei ben&#246;tigt zwei sinnvolle Erweiterungen, die installiert sein m&#252;ssen:</p>
<ul>
<li><a href="http://typo3.org/extensions/repository/view/tt_news/2.5.0/" target="_blank">tt_news</a></li>
<li><a href="http://typo3.org/extensions/repository/view/cl_becache/1.0.2/" target="_blank">cl_becache</a></li>
</ul>
<p>Was die beiden Erweiterungen bewirken, l&#228;sst sich auf den jew. Dokumentationsseiten nachlesen. Sollten die Erweiterungen nicht installiert sein, so wird dies im Import-Prozess gemeldet und Sie k&#246;nnen die Erweiterungen (nach-)installieren.</p>
<p><strong>Es d&#252;rfen sich keine bereits vorhandenen Gruppen oder Benutzer im root befinden. Nur der admin-User darf vorhanden sein!</strong></p>
<h1>Der Import</h1>
<p>[inspic=28,right,fullscreen,250]</p>
<p><strong>1.)</strong> Der Import beginnt mit einem Klick auf das Symbol der obersten Dokumentenbaum-Ebene.</p>
<p><strong>2.)</strong> &#220;ber den Reiter &#8220;Upload&#8221; kann die XML-Datei hochgeladen werden</p>
<p><strong>3.)</strong> Mit Klick auf den &#8220;Import&#8221;-Button ist der Import abgeschlossen und die Benutzergruppe und der Benutzer sind im Seiten-root in der &#8220;Liste&#8221;-Ansicht verf&#252;gbar. Ggf. m&#252;ssen nun noch <em>DB Mounts</em> und <em>File Mounts</em> angepasst werden.</p>
<h1>Die Daten</h1>
<p><strong>Nutzername</strong>: bearbeiter<br />
<strong>Passwort</strong>: bearbeiter</p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/tweaks/vorgabe-backend-benutzergruppe-und-benutzer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symlinks f&#252;r TYPO3 nutzen</title>
		<link>http://typo3.schloebe.de/allgemein/symlinks-fuer-typo3-nutzen/</link>
		<comments>http://typo3.schloebe.de/allgemein/symlinks-fuer-typo3-nutzen/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 10:46:15 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[Dummy]]></category>
		<category><![CDATA[Putty]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Symlinks]]></category>
		<category><![CDATA[typo3]]></category>
		<category><![CDATA[Typo3 Source]]></category>
		<category><![CDATA[VHost]]></category>
		<category><![CDATA[vhost.conf]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/allgemein/symlinks-fuer-typo3-nutzen/</guid>
		<description><![CDATA[Irgendwie scheint es, dass das Thema Symlinks und TYPO3 zwar oft angesprochen und wohl auch benutzt wird, jedoch rar dokumentiert ist. So kam es, dass sich Rico, der Apache- und Symlink-Gott ( ), und ich uns rangesetzt haben, und aus unserem wachsenden Wissen bzw. diversen Ressourcen es geschafft haben, mehrere TYPO3-Installation mit nur einer TYPO3-Source [...]]]></description>
			<content:encoded><![CDATA[<p>Irgendwie scheint es, dass das Thema <em>Symlinks und TYPO3</em> zwar oft angesprochen und wohl auch benutzt wird, jedoch rar dokumentiert ist. <span id="more-28"></span> So kam es, dass sich Rico, der Apache- und Symlink-Gott ( <img src='http://typo3.schloebe.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), und ich uns rangesetzt haben, und aus unserem wachsenden Wissen bzw. diversen Ressourcen es geschafft haben, mehrere TYPO3-Installation mit nur einer TYPO3-Source laufen zu lassen.</p>
<p>Folgend nun eine kleine Anleitung, wie man Symlinks nutzt, und was es zu beachten gilt.</p>
<h1>I. Der TYPO3-Source</h1>
<p>Der TYPO3-Source soll ja f&#252;r jede einzelne TYPO3-Installation nutzbar sein, muss also an einem zentralen Ort gespeichert werden, auf den alle Vhosts zugreifen k&#246;nnen. In unserem Fall ist das <em>/typosource/</em> direkt im root des Apache-Servers, in dem sich das Verzeichnis der jeweils aktuellen TYPO3-Version befindet, in dem Fall <em>/typo3_src-4.1.3/</em>. Sp&#228;ter wird von allen TYPO3-Instanzen dorthin ge&#8221;symlinkt&#8221;, um den Source zu nutzen.</p>
<p>In diesem Verzeichnis sind keine weiteren Anpassungen notwendig, daher lassen wir das Verzeichnis nun ruhen. <img src='http://typo3.schloebe.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h1>II. Den VHost mit der TYPO3-(Dummy-)Instanz aufsetzen</h1>
<p>Das TYPO3-Dummypaket wird nun in den erstellten neuen VHost kopiert (welcher Pfad das ist, h&#228;ngt vom Provider ab). Die Dateien, die wir hochladen bzw. auf dem Server entpacken und nutzen werden, sind folgende:</p>
<ul>
<li>fileadmin</li>
<li>typo3conf</li>
<li>typo3temp</li>
<li>uploads</li>
<li>_.htaccess</li>
<li>clear.gif</li>
</ul>
<h1>III. Die Symlinks setzen</h1>
<p>Jetzt setzen wir die Symlinks vom typosource-Verzeichnis in das Vhost httpdocs-Verzeichnis. Mit <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Putty</a> und Midnight Commander ist das mit einer grafischen Oberfl&#228;che recht einfach. Wer die Kommandozeile bevorzugt, nutzt den Befehl <strong>ln -s</strong>.</p>
<p><strong>Folgende Symlinks werden <em>im typosource-Verzeichnis</em> gesetzt (das Symlink-Ziel (=>) befindet sich im httpdocs-Verzeichnis im Vhost):</strong></p>
<p><em>/typosource/typo3_src-4.1.3/index.php => index.php</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;">ln -s /typosource/typo3_src-4.1.3/index.php index.php</pre></td></tr></table></div>

<p><em>/typosource/typo3_src-4.1.3 => typo3_src</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;">ln -s /typosource/typo3_src-4.1.3 typo3_src</pre></td></tr></table></div>

<p><strong>Folgende Symlinks werden im <em>httpdocs-Verzeichnis</em> gesetzt (das Symlink-Ziel (=>) befindet sich im typosource-Verzeichnis):</strong></p>
<p><em>typo3_src/t3lib => t3lib</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;">ln -s typo3_src/t3lib t3lib</pre></td></tr></table></div>

<p><em>typo3_src/typo3 => typo3</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;">ln -s typo3_src/typo3 typo3</pre></td></tr></table></div>

<h1>III. Rechte und Gruppen zuweisen</h1>
<p>Gem&#228;&#223; einer normalen TYPO3-Installation setzen wir nun die Rechte einiger Ordner, damit sie von TYPO3 beschreibbar sind.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;">chmod -R <span style="color: #ff0000;">777</span> fileadmin typo3conf uploads typo3temp</pre></td></tr></table></div>

<p>Symlinks ben&#246;tigen zudem bestimmte Gruppen-Rechte und -zugeh&#246;rigkeitten, um zu funktionieren bzw. aufgel&#246;st werden zu k&#246;nnen. Dazu setzen wir die Gruppenzugeh&#246;rigkeit auf wwwrun, das ist der Apache, der schlie&#223;lich den Symlinks folgen soll. Die Gruppen-Rechte im httpdocs-Verzeichnis setzen wir mit:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;">chown -R wwwrun:psacln *</pre></td></tr></table></div>

<h1>IV. Nachbetrachtung: open_basedir und vhost.conf Skeletons</h1>
<p>Damit die Symlinks auch Zugriff auf alle ben&#246;tigten Verzeichnisse haben (die Symlinks linken schlie&#223;lich fast &#252;ber den gesamten Server), ist es mitunter n&#246;tig, f&#252;r jeden Vhost die open_basedir Variable neu zu setzen (abh&#228;ngig vom open_basedir Wert in der php.ini). Dazu empfiehlt sich eine vhost.conf im conf-Verzeichnis <em>/srv/www/vhosts/domain.de/conf/</em>. Damit man diese nicht jedes Mal neu erstellen muss, wenn man einen Vhost anlegt, gibt es die M&#246;glichkeiten der Skeletons, womit man eine Art vhost.conf-Maske nutzen kann, die automatisch gef&#252;llt wird, sobald ein neuer Vhost erstellt wird.</p>
<div class="veraltet"><strong>Hinweis</strong>: Damit die vhost.conf genutzt werden kann, muss der safe_mode auf Off stehen. Sonst werden &#196;nderungen in der vhost.conf nicht ausgelesen.</div>
<p>Eine solche Datei erstellt man im Verzeichnis <em>/srv/www/vhosts/.skel/0/conf/</em>. Der Name der Datei ist identisch mit der, die wir automatisch f&#252;r jeden Vhost erstellen lassen wollen, also vhost.conf. Als Inhalt kommt hinein:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">Directory</span> /srv/www/vhosts/@domain_name@/httpdocs&gt;
<span style="color: #00007f;">php_admin_value</span> open_basedir <span style="color: #7f007f;">&quot;/srv/www/vhosts/@domain_name@/httpdocs:/tmp:/typosource&quot;</span>
&lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;</pre></td></tr></table></div>

<div class="veraltet"><strong>Hinweis</strong>: Eine &#196;nderung am open_basedir muss innerhalb einer &#8220;Directory&#8221;-Direktive geschehen.</div>
<p>Der Platzhalter <em>@domain_name@</em> wird automatisch mit der Adresse des neu angelegten Vhosts ersetzt, womit wir darin also nicht mehr Hand anlegen m&#252;ssen. <img src='http://typo3.schloebe.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Bei jedem Anlegen eines neuen Vhosts sucht dann der Apache, ob eine vhost.conf vorhanden ist, und inkludiert diese automatisch in die <em>httpd.include</em>. So m&#252;ssen wir die &#196;nderungen nicht global f&#252;r den ganzen Server durchf&#252;hren, sondern k&#246;nnen f&#252;r jeden Vhost seperat Einstellungen und Werte &#228;ndern.</p>
<p>Damit die &#196;nderungen &#252;bernommen werden, starten wir den Apache neu:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;">rcapache2 restart</pre></td></tr></table></div>

<div class="veraltet"><strong>Tipp</strong>: Es ist ebenfallls m&#246;glich, den Apache &#252;ber Plesk neu zu starten: Server > Diensteverwaltung > Apache > Restart</div>
<h1>V. Nachbetrachtung: M&#246;gliche Probleme beim Datei-Upload im TYPO3-BE</h1>
<p>Nachdem auf Symlinks umgestellt wurde, kann es <strong>u.U.</strong> sein, dass der Dateiupload im TYPO3-Backend nicht mehr funktioniert. Als Resultat erscheint dann die Fehlermeldung:</p>
<blockquote><p>The uploaded file did not exist</p></blockquote>
<p>Das liegt vermutlich daran, dass die Variable <em>upload_tmp_dir</em> leer ist, obwohl es vorher funktionierte. Dann einfach der Variable in der php.ini den Wert /tmp zuweisen, und den Apache neu starten.</p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/allgemein/symlinks-fuer-typo3-nutzen/feed/</wfw:commentRss>
		<slash:comments>6</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>
	</channel>
</rss>

