<?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; TypoScript</title>
	<atom:link href="http://typo3.schloebe.de/kategorie/typoscript/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>RealURL und nav_title</title>
		<link>http://typo3.schloebe.de/typoscript/realurl-und-nav_title/</link>
		<comments>http://typo3.schloebe.de/typoscript/realurl-und-nav_title/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 11:35:07 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Extension]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[nav_title]]></category>
		<category><![CDATA[RealURL]]></category>
		<category><![CDATA[realurlconf]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/?p=62</guid>
		<description><![CDATA[Wer in den Seiteneigenschaften einer Seite dem &#8220;Navigationstitel&#8221; einen Wert zuweist und RealURL nutzt, k&#246;nnte vor einem Problem stehen. Denn sofern dem Feld &#8220;Navigationstitel&#8221; ein Wert zugewiesen wurde, wird dieser Wert standardm&#228;&#223;ig auch als URL-Slug genutzt. So wird bei einem &#8220;Navigationstitel&#8221; wie B&#252;rostuhl kaufen &#124; B&#252;rostuhl bestellen &#124; B&#252;rostuhl online z.B. eine URL wie /buerostuhl-kaufen-buerostuhl-bestellen-buerostuhl-online/ [...]]]></description>
			<content:encoded><![CDATA[<p>Wer in den Seiteneigenschaften einer Seite dem &#8220;Navigationstitel&#8221; einen Wert zuweist und RealURL nutzt, k&#246;nnte vor einem Problem stehen. <span id="more-62"></span></p>
<p>Denn sofern dem Feld &#8220;Navigationstitel&#8221; ein Wert zugewiesen wurde, wird dieser Wert standardm&#228;&#223;ig auch als URL-Slug genutzt. So wird bei einem &#8220;Navigationstitel&#8221; wie</p>
<p><em>B&#252;rostuhl kaufen | B&#252;rostuhl bestellen | B&#252;rostuhl online</em></p>
<p>z.B. eine URL wie</p>
<p><em>/buerostuhl-kaufen-buerostuhl-bestellen-buerostuhl-online/</em></p>
<p>Die Seite selbst hei&#223;t aber nur &#8220;B&#252;rostuhl&#8221;, also sollte auch in der URL nur <em>/buerostuhl/</em> vorkommen. Bei l&#228;ngeren &#8220;Navigationstitel&#8221;-Werten (wenn man diesen Wert z.B. als title nutzen will) k&#246;nnen mitunter recht lange URLs entstehen.</p>
<p>Um das zu vermeiden, bietet sich die Option <strong>segTitleFieldList</strong> an, die im &#8220;pagePath&#8221;-Konfigurations-Array zu notieren ist:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #ff0000;">'pagePath'</span> =<span style="color: #66cc66;">&gt;</span> <span style="color: #0066CC;">array</span><span style="color: #66cc66;">&#40;</span>
  ...
  <span style="color: #ff0000;">'segTitleFieldList'</span> =<span style="color: #66cc66;">&gt;</span> <span style="color: #ff0000;">'tx_realurl_pathsegment,alias,title,nav_title'</span>,
  ...
<span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/realurl-und-nav_title/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>typolink und der Linktitel</title>
		<link>http://typo3.schloebe.de/typoscript/typolink-und-der-linktitel/</link>
		<comments>http://typo3.schloebe.de/typoscript/typolink-und-der-linktitel/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 14:46:46 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[cObject]]></category>
		<category><![CDATA[RECORDS]]></category>
		<category><![CDATA[stdWrap]]></category>
		<category><![CDATA[Typolink]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/?p=47</guid>
		<description><![CDATA[Will man einen dynamischen Link via Typolink setzen, so kann man auf den ersten Blick nur einen statischen Linktitel vergeben. Mitnichten. Dem m&#228;chtigen RECORDS-Objekt sei Dank. Verschiedene Versuche mit 1 2 3 4 5 temp.LINK.typolink &#123; ... title.field = title ... &#125; oder dem cObject oder stdWrap f&#252;hren zu keinem Ergebnis. Folgender Code-Schnipsel f&#252;gt den [...]]]></description>
			<content:encoded><![CDATA[<p>Will man einen dynamischen Link via Typolink setzen, so kann man auf den ersten Blick nur einen statischen Linktitel vergeben.<span id="more-47"></span></p>
<p>Mitnichten. Dem m&#228;chtigen RECORDS-Objekt sei Dank. Verschiedene Versuche 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="actionscript" style="font-family:monospace;">temp.<span style="color: #006600;">LINK</span>.<span style="color: #006600;">typolink</span> <span style="color: #66cc66;">&#123;</span>
    ...
    <span style="color: #006600;">title</span>.<span style="color: #006600;">field</span> = title
    ...
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>oder dem cObject oder stdWrap f&#252;hren zu keinem Ergebnis.</p>
<p>Folgender Code-Schnipsel f&#252;gt den Seitentitel der Seite als Linktitel ein, zu der verlinkt wird bzw. die im parameter-Aufruf als Linkziel angegeben wird.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">temp.<span style="color: #006600;">LINK</span>.<span style="color: #006600;">typolink</span> <span style="color: #66cc66;">&#123;</span>
    parameter = <span style="color: #cc66cc;">5</span> _self link-klasse
    title <span style="color: #66cc66;">&#123;</span>
        cObject = RECORDS
        cObject <span style="color: #66cc66;">&#123;</span>
            tables = pages
            source = <span style="color: #cc66cc;">5</span>
            conf.<span style="color: #006600;">pages</span> = <span style="color: #0066CC;">TEXT</span>
            conf.<span style="color: #006600;">pages</span>.<span style="color: #006600;">field</span> = title
        <span style="color: #66cc66;">&#125;</span>
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>ps. Wow, 5 Monate seit dem letzten Artikel. <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/typoscript/typolink-und-der-linktitel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aktuelle Seite von &#8220;Men&#252; der Unterseiten&#8221; ausschlie&#223;en</title>
		<link>http://typo3.schloebe.de/typoscript/aktuelle-seite-von-menue-der-unterseiten-ausschliessen/</link>
		<comments>http://typo3.schloebe.de/typoscript/aktuelle-seite-von-menue-der-unterseiten-ausschliessen/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 14:01:40 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[TypoScript]]></category>

		<guid isPermaLink="false">http://typo3.schloebe.de/?p=40</guid>
		<description><![CDATA[Lange gab es hier keinen Artikel mehr, aber die Br&#246;tchen verdienen sich nun mal nicht selbst, dementsprechend viel war zu tun. Doch damit ich keine Putzfrau mieten muss, die hier Staub wischen muss, gibt es jetzt einen kleinen TypoScript-Snippet, der in letzter Zeit doch recht oft von Kunden nachgefragt wurde. Denn standardm&#228;&#223;ig wird im &#8220;Men&#252; [...]]]></description>
			<content:encoded><![CDATA[<p>Lange gab es hier keinen Artikel mehr, aber die Br&#246;tchen verdienen sich nun mal nicht selbst, dementsprechend viel war zu tun. <span id="more-40"></span></p>
<p>Doch damit ich keine Putzfrau mieten muss, die hier Staub wischen muss, gibt es jetzt einen kleinen TypoScript-Snippet, der in letzter Zeit doch recht oft von Kunden nachgefragt wurde. Denn standardm&#228;&#223;ig wird im &#8220;Men&#252; der Unterseiten&#8221; auch die aktuell angesehene Seite mit gelistet, was doch recht oft f&#252;r Verrwirrung sorgt, wenn man die Sitemap mit &#8220;Weitere Inhalte dieser Sektion&#8221; einleitet. Deswegen w&#228;re es nicht schlecht, wenn man die aktuelle Seite vom &#8220;Men&#252; der Unterseiten&#8221; ausschlie&#223;en k&#246;nnte.</p>
<p>Wie das geht, zeigt dieser kleine Drei-Zeiler, der ins TS-Setup geh&#246;rt:</p>

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

<p>Wer&#8217;s noch platzsparender haben m&#246;chte:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">tt_content.<span style="color: #0066CC;">menu</span>.20.1.<span style="color: #006600;">excludeUidList</span> = current</pre></td></tr></table></div>

<p>War mir vorher noch nicht bekannt, doch ein kleiner Ausflug in den TypoScript ObjectBrowser f&#252;hrte mich dann zur L&#246;sung. <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/typoscript/aktuelle-seite-von-menue-der-unterseiten-ausschliessen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Textbasiertes Sprachmen&#252;</title>
		<link>http://typo3.schloebe.de/typoscript/textbasiertes-sprachmenue/</link>
		<comments>http://typo3.schloebe.de/typoscript/textbasiertes-sprachmenue/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 12:33:01 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Mehrsprachigkeit]]></category>
		<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[sprachmenu]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

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

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

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

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

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

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

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

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

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

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

<p>in</p>

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

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

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

<p>l&#228;sst sich einfach die Hintergrund-Markierungsfarbe angeben.</p>
<p>Wie man die Pfade zu den Flaggen angeben muss, sieht man zudem oben. Diese k&#246;nnen platziert werden wo man will.</p>
]]></content:encoded>
			<wfw:commentRss>http://typo3.schloebe.de/typoscript/optimiertes-sprachmenue-reloaded/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quelltext TYPO3 Kommentar erweitern</title>
		<link>http://typo3.schloebe.de/typoscript/quelltext-typo3-kommentar-erweitern/</link>
		<comments>http://typo3.schloebe.de/typoscript/quelltext-typo3-kommentar-erweitern/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 10:10:05 +0000</pubDate>
		<dc:creator>Oliver Schlöbe</dc:creator>
				<category><![CDATA[Tweaks]]></category>
		<category><![CDATA[TypoScript]]></category>
		<category><![CDATA[kasper]]></category>
		<category><![CDATA[kommentar]]></category>
		<category><![CDATA[quellcode]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[typo3]]></category>

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

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

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

