<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		
		<title>FiedoMedia Webdesign - News</title>
		<link>http://www.fiedomedia.de/</link>
		<description>Neueste Nachrichten, Snippets und Tutorials von FiedoMedia Webdesign</description>
		<language>de</language>
		<image>
			<title>FiedoMedia Webdesign - News</title>
			<url>http://www.fiedomedia.de/fileadmin/fm_liquid/images/icons/rss-32x32.png</url>
			<link>http://www.fiedomedia.de/</link>
			<width>32</width>
			<height>32</height>
			<description>Neueste Nachrichten, Snippets und Tutorials von FiedoMedia Webdesign</description>
		</image>
		<generator>TYPO3 - get.content.right</generator>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		
		
		
		<lastBuildDate>Mon, 14 May 2012 12:45:00 +0200</lastBuildDate>
		
		
		<item>
			<title>TYPO3: Sprechende Anker-Links für Content-Elemente</title>
			<link>http://www.fiedomedia.de/news/artikel/typo3-sprechende-anker-links-content-elemente/</link>
			<description>In TYPO3 werden standardmäßig vor sämtliche Inhaltselemente Anker-Links platziert, um diese Blöcke...</description>
			<content:encoded><![CDATA[Ich benutze hierzu die Überschrift des Content Elements als Anker-Link. Da ein Anker allerdings keine Leerzeichen enthalten darf, durchläuft mein sprechender Anker 2 Funktionen des stdWrap, um &quot;verbotene&quot; Zeichen zu entfernen. Das Ergebnis der Anker entspricht in etwa dem von RealURL für sprechende URLs.
Sollten für ein Inhaltselement keine Anker gewünscht sein, muss in den Eigenschaften des Elements nur das Feld sectionIndex (<em>im deutschen Backend: &quot;In Menüs zeigen&quot;</em>) deaktiviert werden. Dies ist standardmäßig aktiviert.
Hierzu muss im Setup-Bereich des Templates folgendes Typoscript&nbsp;eingefügt werden:&nbsp;(getestet in TYPO3 4.7)
<div class="tx_codehighlight_pi1"><div class="code"><pre class="typoscript" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #000066; font-weight: bold;">tt_content</span><span style="color: #339933; font-weight: bold;">.</span><a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/stdWrap/"><span style="font-weight: bold;">stdWrap</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #aaa; font-style: italic;"># alte prepend-Funktion von CSS Styled Content loeschen</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  prepend <span style="color: #339933; font-weight: bold;">&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  prepend <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/COA/"><span style="color: #990000; font-weight: bold;">COA</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  prepend<span style="color: #339933; font-weight: bold;">.</span><a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/stdWrap/"><span style="font-weight: bold;">stdWrap</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #aaa; font-style: italic;"># Vor Content-Block einen Anker einfuegen</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    wrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #339933; font-weight: bold;">&lt;</span> a id<span style="color: #339933; font-weight: bold;">=</span>&quot;c- <span style="color: #339933; font-weight: bold;">|</span> &quot;<span style="color: #339933; font-weight: bold;">&gt;</span><span style="color: #3366CC;">&lt;/a&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #aaa; font-style: italic;"># Anker aber nur setzen, wenn der Content-Block mit Anker umschlossen werden soll </span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a><span style="color: #339933; font-weight: bold;">.</span>isTrue<span style="color: #339933; font-weight: bold;">.</span>field <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/menu/common-properties/"><span style="font-weight: bold;">sectionIndex</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  prepend<span style="color: #339933; font-weight: bold;">.</span>10 <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/"><span style="color: #990000; font-weight: bold;">TEXT</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  prepend<span style="color: #339933; font-weight: bold;">.</span>10 <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #000066; font-weight: bold;">field</span> <span style="color: #339933; font-weight: bold;">=</span> header</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    case <span style="color: #339933; font-weight: bold;">=</span> lower</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    replacement <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># Mit Regex alle Leerzeichen durch Bindestriche ersetzen</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        search <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #339933; font-weight: bold;">/</span> <span style="color: #339933; font-weight: bold;">/</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        useRegExp <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        replace <span style="color: #339933; font-weight: bold;">=</span> -</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># Mit Regex alle unerlaubten Zeichen entfernen </span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #cc0000;">20</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        search <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #339933; font-weight: bold;">/</span><span style="color: #009900;">&#91;</span><span style="color: #339933; font-weight: bold;">^</span>a-zA-Z0-<span style="color: #cc0000;">9</span>-<span style="color: #009900;">&#93;</span><span style="color: #339933; font-weight: bold;">/</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        useRegExp <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        replace <span style="color: #339933; font-weight: bold;">=</span> </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #aaa; font-style: italic;"># Anker aber nur setzen, wenn der Content-Block mit Anker umschlossen werden soll</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a><span style="color: #339933; font-weight: bold;">.</span>isTrue<span style="color: #339933; font-weight: bold;">.</span>field <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/menu/common-properties/"><span style="font-weight: bold;">sectionIndex</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#125;</span></div></li></ol></pre></div></div>
<img alt="Vorschau Anker-Links" title="Vorschau der Anker-Links" style="padding-right: 10px; padding-bottom: 10px; float: left;" src="http://www.fiedomedia.de/fileadmin/user_upload/page_content/news/ankercode-vorschau.jpg" txdam="148" height="138" width="325" />Als Ergebnis würde ein Anker-Link, welcher vorher zum Beispiel <em><em>&lt;a id=&quot;c12345&quot;</em>&gt;&lt;/a&gt;</em> hieß, nun als <em>&lt;a id=&quot;news-anzeigen&quot;&gt;&lt;/a&gt;</em> angezeigt werden. Verlinkt werden kann auf diesen, in dem man&nbsp;<em>#news-anzeigen</em> an eine URL anhängt oder direkt in einem Link angibt.
Man sollte nun allerdings drauf achten, die Überschrift des Content Elements nicht mehr zu ändern, da ansonsten die Anker auch umbenannt werden&nbsp;und alte Anker-Links auf der Seite&nbsp;nicht mehr funktionieren würden.]]></content:encoded>
			<category>TYPO3</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Mon, 14 May 2012 12:45:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>jQuery Fancybox für HTML5 valide machen</title>
			<link>http://www.fiedomedia.de/news/artikel/fancybox-html5-valide/</link>
			<description>HTML5 erlebt als zukünftiger Standard dank des mobilen Surfens mit Smartphones &amp; Co einen rasanten...</description>
			<content:encoded><![CDATA[Im speziellen Fall von Lightbox Plugins und HTML5 wird das &quot;rel&quot;-Attribut vom W3C Validator als nicht valide deklariert. Dieses wird jedoch benötigt, um zusammengehörige Bilder in einer Galerie anzuzeigen. 
<div class="tx_codehighlight_pi1"><div class="code"><pre class="html4strict" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Ziel-Bild1&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gallery1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lightbox&quot;</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;meinbild1.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Vorschau-Bild1&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Ziel-Bild2&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gallery1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lightbox&quot;</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;meinbild2.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Vorschau-Bild2&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></li></ol></pre></div></div>
Das Problem lässt sich aber in Fancybox einfach beheben.
HTML5 erlaubt es, eigene&nbsp;Attribute in HTML-Tags zu erstellen, welchen &quot;data-&quot; vorangestellt werden muss. So hat auch Fancybox sein eigenes Attribut: &quot;data-fancybox-group&quot;. Im HTML-Code muss nun rel gegen data-fancybox-group ausgetauscht werden, das Ergebnis sieht dann wie folgt aus:
<div class="tx_codehighlight_pi1"><div class="code"><pre class="html4strict" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Ziel-Bild1&quot;</span> data-fancybox-group<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gallery1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lightbox&quot;</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;meinbild1.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Vorschau-Bild1&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Ziel-Bild2&quot;</span> data-fancybox-group<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;gallery1&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lightbox&quot;</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;meinbild2.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Vorschau-Bild2&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span></div></li></ol></pre></div></div>
Somit wird auch&nbsp;der W3C Validator die Website mit eingebundener Fancybox als valide einstufen.]]></content:encoded>
			<category>jQuery</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Fri, 16 Mar 2012 12:15:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Responsive Webdesign - FiedoMedia.de im neuen Look</title>
			<link>http://www.fiedomedia.de/news/artikel/responsive-webdesign-fiedomedia-neuer-look/</link>
			<description>Responsive Webdesign ist momentan in aller Munde. Jedoch ist der Trend des Jahres mehr als nur eine...</description>
			<content:encoded><![CDATA[Um Vorbild und Vorreiter zu sein, wurde die&nbsp;<link http://www.fiedomedia.de/ _blank external-link-new-window "Jetzt die neue Website besuchen!">Website von FiedoMedia Webdesign</link>&nbsp;nun responsive mit HTML5 und CSS3 umgestaltet.
Wollen Sie mehr dazu erfahren oder sind Sie an einem innovativen Internetauftritt interessiert, der die Möglichkeiten des &quot;<em>Responsive Webdesign</em>&quot; nutzt?&nbsp;<link 8 - internal-link "Kontaktieren Sie mich jetzt!">Dann kontaktieren Sie mich persönlich und lassen Sie uns über Weiteres sprechen!</link>]]></content:encoded>
			<category>CSS &amp; HTML</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Mon, 09 Jan 2012 08:51:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Weiterleitung auf Listenansicht wenn News-Id fehlt bei tt_news</title>
			<link>http://www.fiedomedia.de/news/artikel/ttnews-weiterleitung-listenansicht-wenn-news-id-fehlt/</link>
			<description>Sobald man bei tt_news in Verbindung mit RealUrl die Seiten-URL im Browser manuell bearbeitet und...</description>
			<content:encoded><![CDATA[Dabei wäre die Lösung gar nicht einmal so schwer.&nbsp;Um sich gegen dieses Szenario abzusichern, helfen einem wenige&nbsp;Zeilen Typoscript, mit denen eine sogennante&nbsp;Condition (= Bedingung)&nbsp;erstellt wird. Um folgendes Typoscript verwenden zu können, muss aber&nbsp;zuerst ein Extension-Template für die News-Detailseite erstellt werden, da die Weiterleitung&nbsp;ansonsten auf jeder Seite erfolgen würde. Dort&nbsp;wird&nbsp;anschließend das Script&nbsp;in den Setup-Teil eingetragen:
<div class="tx_codehighlight_pi1"><div class="code"><pre class="typoscript" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #aaa; font-style: italic;"># pruefen, ob die GET-Variable [tt_news] gesetzt und kleiner als 1 ist</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#91;</span><span style="color: #ed7d14;">globalVar</span> <span style="color: #339933; font-weight: bold;">=</span> GP<span style="color: #339933; font-weight: bold;">:</span><span style="color: #000066; font-weight: bold;">tx_ttnews</span><span style="color: #339933; font-weight: bold;">|</span><span style="color: #000066; font-weight: bold;">tt_news</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #cc0000;">1</span><span style="color: #009900;">&#93;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #aaa; font-style: italic;"># dann mach mir eine 301-Weiterleitung auf meine News-Listenansicht</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000066; font-weight: bold;">config</span><span style="color: #339933; font-weight: bold;">.</span>additionalHeaders <span style="color: #339933; font-weight: bold;">=</span> HTTP<span style="color: #339933; font-weight: bold;">/</span><span style="color: #cc0000;">1.0</span> <span style="color: #cc0000;">301</span> Permanent Redirect <span style="color: #339933; font-weight: bold;">|</span> Location<span style="color: #339933; font-weight: bold;">:</span> http<span style="color: #339933; font-weight: bold;">:</span><span style="color: #aaa; font-style: italic;">// example.de/news/</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #aaa; font-style: italic;"># fertig!</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#91;</span><span style="color: #ed7d14;">global</span><span style="color: #009900;">&#93;</span></div></li></ol></pre></div></div>
Zur&nbsp;Erklärung: tt_news-Nachrichten werden in der Regel mit folgender Syntax aufgerufen: &quot;/news/details.html?tx_ttnews[tt_news]=1&quot;, wobei 1 der Id der aufzurufenden News entspricht. Wenn nun dieser Parameter auf der News-SINGLE-Ansicht nicht gesetzt wäre, könnte auch keine News gefunden werden. Folge ist, dass die unschöne Meldung &quot;Keine news_id übergeben.&quot; angezeigt wird. Wenn nun also keine News-Id übergeben wurde und somit die Prüfung erfolgreich war, wird die komplette Seite per 301-Redirect&nbsp;(=&nbsp;permanente Weiterleitung) auf die unter Location eingetragene Website umgeleitet.
Sollte man auch&nbsp;mehrere Sprachen im Einsatz haben, kann man mit einer kombinierten Condition auch diese jeweils&nbsp;prüfen:
<div class="tx_codehighlight_pi1"><div class="code"><pre class="typoscript" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #aaa; font-style: italic;"># wenn Sprachparameter = 1 UND [tt_news] &lt; 1</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#91;</span><span style="color: #ed7d14;">globalVar</span> <span style="color: #339933; font-weight: bold;">=</span> GP<span style="color: #339933; font-weight: bold;">:</span>L <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933; font-weight: bold;">&amp;&amp;</span> <span style="color: #009900;">&#91;</span><span style="color: #ed7d14;">globalVar</span> <span style="color: #339933; font-weight: bold;">=</span> GP<span style="color: #339933; font-weight: bold;">:</span><span style="color: #000066; font-weight: bold;">tx_ttnews</span><span style="color: #339933; font-weight: bold;">|</span><span style="color: #000066; font-weight: bold;">tt_news</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #cc0000;">1</span><span style="color: #009900;">&#93;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #000066; font-weight: bold;">config</span><span style="color: #339933; font-weight: bold;">.</span>additionalHeaders <span style="color: #339933; font-weight: bold;">=</span> HTTP<span style="color: #339933; font-weight: bold;">/</span><span style="color: #cc0000;">1.0</span> <span style="color: #cc0000;">301</span> Permanent Redirect <span style="color: #339933; font-weight: bold;">|</span> Location<span style="color: #339933; font-weight: bold;">:</span> http<span style="color: #339933; font-weight: bold;">:</span><span style="color: #aaa; font-style: italic;">// example.com/news/</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#91;</span><span style="color: #ed7d14;">global</span><span style="color: #009900;">&#93;</span></div></li></ol></pre></div></div>
Ab jetzt wird nicht mehr an der fehlenden News-Id gemeckert und&nbsp;beim Aufruf von manipulierten News-Adressen gleich die News-Listenansicht aufgerufen, bzw. die Seite, welche als Location in der Condition eingetragen wurde. Vorstellbar wäre hier z. B. auch eine 404-Seite. Natürlich funktioniert dieser Trick auch, wenn man eine leere SINGLE-Ansicht aufrufen will. Auch dann wird direkt von z. B.&nbsp;<em>&quot;/news/artikel/&quot;</em>&nbsp;sofort auf&nbsp;<em>&quot;/news/&quot;</em>&nbsp;und die dortige Listenansicht aller News umgeleitet. Und das allerbeste daran ist auch noch, dass die Weiterleitung immer&nbsp;mit dem 301-Status erfolgt, welcher beim Thema Suchmaschinenoptimierung&nbsp;und Google sehr gern gesehen wird.
Es ist in diesem Fall übrigens egal, welche &quot;Sprechende URLs&quot;-Extension verwendet wird, da die Lösung mit TYPO3-eigenen Bordmitteln geschieht.]]></content:encoded>
			<category>RealUrl</category>
			<category>tt_news</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Fri, 25 Nov 2011 12:06:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title>Projekt abgeschlossen: Car-Tuning &amp; Wheel's by Petschko GmbH</title>
			<link>http://www.fiedomedia.de/news/artikel/projekt-abgeschlossen-car-tuning-and-wheels-by-petschko-gmbh/</link>
			<description>Nach wochenlanger Arbeit wurde nun die Internetseite des KFZ-Unternehmens &quot;Car-Tuning &amp; Wheel's by...</description>
			<content:encoded><![CDATA[FiedoMedia Webdesign übernahm hier die komplette Realisierung, vom grafischen Entwurf bis hin zur Umsetzung mit dem Content-Management-System&nbsp;<link http://typo3.org/ _blank external-link-new-window "Zur offiziellen Website von TYPO3">TYPO3</link>. Das Ergebnis kann sich auf jeden Fall sehen lassen und bietet eine hervorragende Grundlage für zukünftige Erweiterungen hinsichtlich News und einem Online-Shop.
Ich selbst bin stolz, wieder mal einen ansehnlichen Beitrag zum World Wide Web geleistet zu haben und wünsche&nbsp;<link http://www.petschko.de/ - external-link-new-window "Zur Website von Car-Tuning & Wheel's by Petschko GmbH">den Besuchern der Website unter www.petschko.de</link>&nbsp;viel Vergnügen. Des Weiteren besteht die Möglichkeit, detaillierte Informationen zum Projekt und der Umsetzung&nbsp;<link http://fiedomedia.de/de/portfolio/car-tuning-wheels-by-petschko-gmbh/ _blank external-link-new-window "Zur Referenz im Portfolio">in meinem Portfolio</link>&nbsp;einzusehen.]]></content:encoded>
			<category>Referenzen</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Mon, 17 Oct 2011 00:32:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>jQuery: Bildunterschrift animiert darstellen</title>
			<link>http://www.fiedomedia.de/news/artikel/jquery-caption-animieren/</link>
			<description>Flash ist Out, jQuery ist In! Die Anzeige am Bildschirm zu manipulieren geht seit der Einführung...</description>
			<content:encoded><![CDATA[<h3>1. HTML</h3>
Zu erst erstelle ich einen äußeren Container mit der Klasse &quot;outer&quot;, welche ich später mit jQuery greifen kann. In diesen packe ich das Bild wie gewohnt und unterhalb die gewünschte Bildunterschrift wieder in einem eigenen Container &quot;caption&quot;. Ich habe mich dabei für eine Überschrift und einen Absatz für längeren Text entschieden.
<div class="tx_codehighlight_pi1"><div class="code"><pre class="html4strict" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;outer&quot;</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">img</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;image.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Mein Testbild&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;caption&quot;</span>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span>Wow, was fuer ein Bild!<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">h1</span></a>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&lt;<a target="_blank" href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>Lorem Ipsum, das ist meine ausfuehrliche Bildbeschreibung...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a target="_blank" href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></li></ol></pre></div></div>
<h3>2. CSS</h3>
Nun passe ich mit CSS die Darstellung des HTML-Codes an. Dem äußeren Div verpasse ich zur Vereinfachung eine fixe Breite und Höhe. Der innere Rahmen für die Bildunterschrift wird absolut zum Elternelement positioniert, daher ist wichtig, dass die Eigenschaft &quot;overflow:hidden&quot; beim Außen-Div verwendet wird, da sonst die Bildunterschrift unterhalb von der gewünschten Position unschön dargestellt wird.
<div class="tx_codehighlight_pi1"><div class="code"><pre class="css" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #808080; font-style: italic;">/* CSS fuer den Aussen-Div */</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">div<span style="color: #6666ff;">.outer</span> <span style="color: #00AA00;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #808080; font-style: italic;">/* WICHTIG: damit wird der caption-div versteckt */</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <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></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span> </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #00AA00;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #808080; font-style: italic;">/* CSS fuer den Div mit der Bildunterschrift </span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #808080; font-style: italic;"> * der Div wird absolut positioniert und 220px unterhalb vom Aussen-Div gesetzt */</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">div<span style="color: #6666ff;">.caption</span> <span style="color: #00AA00;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-220px</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #808080; font-style: italic;">/* Hintergrund-Deckkraft 80% */</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #00AA00;">&#125;</span></div></li></ol></pre></div></div>
<h3>3. Javascript jQuery</h3>
Abschließend manipuliere ich nun mit Hilfe des&nbsp;<link http://jquery.com/ _blank external-link-new-window jquery.com>Javascript-Frameworks jQuery</link>&nbsp;die Anzeige meiner Bildunterschrift. Das Ergebnis soll sein, dass sobald die Maus über den Außen-Div fährt, die Bildunterschrift nach oben rutscht, und beim Verlassen wieder verschwindet.
Als Anmerkung: Das folgende jQuery-Snippet ist für den jQuery-NoConflict-Mode ausgelegt, falls jQuery zusammen mit Mootools oder Prototype auf der gleichen Seite verwendet werden würde. Außerdem muss die jQuery-Hauptdatei bereits eingebunden sein, z. B. mit Hilfe der Extension&nbsp;<link http://typo3.org/extensions/repository/view/t3jquery/current/ _blank external-link-new-window "t3jquery im TER">t3jquery</link>&nbsp;oder eben manuell.
<div class="tx_codehighlight_pi1"><div class="code"><pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #006600; font-style: italic;">/* Wenn das Dokument fertig ist */</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #006600; font-style: italic;">// den Aussen-Div fassen; Funktion aufrufen, wenn mit der Maus ueber den Div gefahren wird</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.outer'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #006600; font-style: italic;">// das Kinderelement vom Aussen-Div fassen</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.caption'</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #006600; font-style: italic;">// alte Animationen abbrechen</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    .<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #006600; font-style: italic;">// neue Animation (hochschieben, 200ms lang mit dem Effekt &quot;easeOutQuart&quot;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    .<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>bottom<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">200</span><span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">'easeOutQuart'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #006600; font-style: italic;">// das gleiche nochmal, wenn man mit der Maus den Aussen-Div verlaesst</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div.caption'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>bottom<span style="color: #339933;">:-</span><span style="color: #CC0000;">220</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>duration<span style="color: #339933;">:</span><span style="color: #CC0000;">200</span><span style="color: #339933;">,</span> easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">'easeOutQuart'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></pre></div></div>
Die easing-Effekte können natürlich angepasst oder auch ganz weggelassen werden, mehr dazu kann man der&nbsp;<link http://api.jquery.com/animate/ _blank external-link-new-window "jQuery API">jQuery-API</link>&nbsp;entnehmen.
Wer viele Bilder auf einer Seite hat, könnte auch überlegen, das ganze Javascript anders aufzurufen. Dadurch wird das jQuery-Konstrukt erst verfügbar, wenn auch alle Bilder fertig geladen sind:
<div class="tx_codehighlight_pi1"><div class="code"><pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">jQuery<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">...</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#125;</span></div></li></ol></pre></div></div>
<h3>4. Demo</h3>
Damit man sich das Ergebnis auch mal anschauen kann, habe ich natürlich dazu auch noch die passende Demo.&nbsp;<link 5 _blank internal-link "Demo zu den animierten jQuery-Bildunterschriften">Auf meiner Portfolio-Seite</link>&nbsp;kann man sehen, wie die Bildunterschrift beim Überfahren mit der Maus &quot;nach oben slided&quot; und beim Verlassen wieder verschwindet. Zusätzlich habe ich noch einen 2. Div mit dem Titel erstellt, welcher bei Bedarf &quot;nach unten slided&quot;.]]></content:encoded>
			<category>jQuery</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Tue, 05 Jul 2011 23:18:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>TypoScript: Flexibles CATMENU mit News-Counter für tt_news</title>
			<link>http://www.fiedomedia.de/news/artikel/typoscript-ttnews-catmenu-mit-news-counter/</link>
			<description>tt_news ist eine der ältesten vorhanden Extensions für TYPO3, sicherlich aber auch die am meisten...</description>
			<content:encoded><![CDATA[<ul><li>Bislang ist es unmöglich (?!?), ohne Eingriff in den Quellcode der&nbsp;<link http://typo3.org/extensions/repository/view/tt_news/current/ _blank external-link-new-window>tt_news-Extension</link>, die Anzahl der News, die eine Kategorie beinhaltet, dem Websiten-Besucher anzuzeigen</li><li>Wraps sind viel zu wenig implementiert, wodurch z. B. eine Listenansicht mit eingebetteten Unterlisten nicht HTML-konform erstellbar ist.</li></ul>
Um in den vollen Genuss der TYPO3-Wraps und Co. zu kommen, kann ich nur empfehlen, sich das Kategorien-Menü selbst zu generieren. Hierzu habe ein Typoscript-Snippet zusammengebastelt, mit welchem man sich selbst das CATMENU generieren lassen kann und als besonderes Feature, zu jeder Kategorie die Anzahl der dort hinterlegten News angezeigt werden.
Ich habe bewusst zu fast jeder Code-Zeile einen Kommentar verfasst, so dass auch TYPO3-Anfänger wenig Probleme haben sollten, die Zusammenhänge zu verstehen.
<div class="tx_codehighlight_pi1"><div class="code"><pre class="typoscript" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #aaa; font-style: italic;"># zu erst der Marker fuer das neue Kat-Menu</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #000066; font-weight: bold;">lib</span><span style="color: #339933; font-weight: bold;">.</span>catList <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/COA/"><span style="color: #990000; font-weight: bold;">COA</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #000066; font-weight: bold;">lib</span><span style="color: #339933; font-weight: bold;">.</span>catList <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #aaa; font-style: italic;"># hole alle Hauptkategorien</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/CONTENT/"><span style="color: #990000; font-weight: bold;">CONTENT</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #aaa; font-style: italic;"># wrappe die gesamte Liste als &quot;unsortierte Liste&quot;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    wrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #3366CC;">&lt;ul class=&quot;news-catmenu&quot;&gt;</span><span style="color: #339933; font-weight: bold;">|</span><span style="color: #3366CC;">&lt;/ul&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    table <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #000066; font-weight: bold;">tt_news_cat</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/select/"><span style="font-weight: bold;">select</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># hier muss die pid eures News-Sysordners rein, bzw. wo die News-Kategorien gespeichert sind</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      pidInList <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">3</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      orderBy <span style="color: #339933; font-weight: bold;">=</span> title</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      where <span style="color: #339933; font-weight: bold;">=</span> parent_category<span style="color: #339933; font-weight: bold;">=</span><span style="color: #cc0000;">0</span> AND deleted<span style="color: #339933; font-weight: bold;">=</span><span style="color: #cc0000;">0</span> AND hidden<span style="color: #339933; font-weight: bold;">=</span><span style="color: #cc0000;">0</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    renderObj <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/COA/"><span style="color: #990000; font-weight: bold;">COA</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    renderObj <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># wrappe jede gefundene Hauptkategorie als Listenelement</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      wrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #3366CC;">&lt;li&gt;</span><span style="color: #339933; font-weight: bold;">|</span><span style="color: #3366CC;">&lt;/li&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># ueberschreibe den vorherigen Wrap ...</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      wrap<span style="color: #339933; font-weight: bold;">.</span>override <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #3366CC;">&lt;li class=&quot;news-catmenu-ACT&quot;&gt;</span><span style="color: #339933; font-weight: bold;">|</span><span style="color: #3366CC;">&lt;/li&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># ... nur, wenn ...</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      wrap<span style="color: #339933; font-weight: bold;">.</span>override<span style="color: #339933; font-weight: bold;">.</span><a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/if/"><span style="font-weight: bold;">if</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #aaa; font-style: italic;"># ... eine News-Kategorie bereits ausgewaehlt wurde und per GET/POST ermittelt werden kann</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        value<span style="color: #339933; font-weight: bold;">.</span>data <span style="color: #339933; font-weight: bold;">=</span> GPvar<span style="color: #339933; font-weight: bold;">:</span><span style="color: #000066; font-weight: bold;">tx_ttnews</span><span style="color: #339933; font-weight: bold;">|</span>cat</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #aaa; font-style: italic;"># und dieser ermittelte Wert der aktuellen uid gleicht</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        equals<span style="color: #339933; font-weight: bold;">.</span>field <span style="color: #339933; font-weight: bold;">=</span> uid        </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">&nbsp;</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># zeig mir den Kategorie-Titel und mache einen Link daraus zur Kategorie-Detail-Uebersicht</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/"><span style="color: #990000; font-weight: bold;">TEXT</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #cc0000;">10</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #aaa; font-style: italic;"># das title-Feld soll als Text angezeigt werden (koennte man auch description... verwenden)</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #000066; font-weight: bold;">field</span> <span style="color: #339933; font-weight: bold;">=</span> title</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/typolink/"><span style="font-weight: bold;">typolink</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># verlinke zu der Seite mit der News-Auflistung (Listenansicht)</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          parameter <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">34</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          title<span style="color: #339933; font-weight: bold;">.</span>field <span style="color: #339933; font-weight: bold;">=</span> title</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># fuege den GET-Parameter fuer die ausgewaehlte Kategorie hinzu</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          additionalParams<span style="color: #339933; font-weight: bold;">.</span>dataWrap <span style="color: #339933; font-weight: bold;">=</span> &amp;<span style="color: #000066; font-weight: bold;">tx_ttnews</span><span style="color: #009900;">&#91;</span>cat<span style="color: #009900;">&#93;</span><span style="color: #339933; font-weight: bold;">=</span><span style="color: #009900;">&#123;</span>field<span style="color: #339933; font-weight: bold;">:</span>uid<span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># cHash mit uebergeben fuers Caching - Danke an ScubaBen fuer den Hinweis!</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          useCacheHash <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">&nbsp;</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># zeig mir einen Counter aller News-Eintraege in dieser Kategorie</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #cc0000;">20</span> <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/CONTENT/"><span style="color: #990000; font-weight: bold;">CONTENT</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #cc0000;">20</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        table <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #000066; font-weight: bold;">tt_news_cat</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/select/"><span style="font-weight: bold;">select</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># hier wieder der Sysordner aller News-Eintraege und -Kategorien</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          pidInList <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">3</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          join <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #000066; font-weight: bold;">tt_news_cat_mm</span> ON <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">tt_news_cat</span><span style="color: #339933; font-weight: bold;">.</span>uid <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #000066; font-weight: bold;">tt_news_cat_mm</span><span style="color: #339933; font-weight: bold;">.</span>uid_foreign<span style="color: #009900;">&#41;</span> </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">                   JOIN <span style="color: #000066; font-weight: bold;">tt_news</span> ON <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">tt_news</span><span style="color: #339933; font-weight: bold;">.</span>uid <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #000066; font-weight: bold;">tt_news_cat_mm</span><span style="color: #339933; font-weight: bold;">.</span>uid_local<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># dieses Where sorgt dafuer, dass auch die News der Unterkategorien 1 Ebene unterhalb</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># gezaehlt werden - tiefere Ebenen koennen nicht beruecksichtigt werden</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># andWhere.dataWrap = (tt_news_cat.uid={field:uid} OR </span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #aaa; font-style: italic;"># tt_news_cat.parent_category={field:uid}) AND tt_news.deleted=0 AND tt_news.hidden=0</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># dieses Where zaehlt nur die News in dieser Kategorie</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          andWhere<span style="color: #339933; font-weight: bold;">.</span>dataWrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">tt_news_cat</span><span style="color: #339933; font-weight: bold;">.</span>uid<span style="color: #339933; font-weight: bold;">=</span><span style="color: #009900;">&#123;</span>field<span style="color: #339933; font-weight: bold;">:</span>uid<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span> </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">                                           AND <span style="color: #000066; font-weight: bold;">tt_news</span><span style="color: #339933; font-weight: bold;">.</span>deleted<span style="color: #339933; font-weight: bold;">=</span><span style="color: #cc0000;">0</span> AND <span style="color: #000066; font-weight: bold;">tt_news</span><span style="color: #339933; font-weight: bold;">.</span>hidden<span style="color: #339933; font-weight: bold;">=</span><span style="color: #cc0000;">0</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">                                           AND sys_language_uid<span style="color: #339933; font-weight: bold;">=</span><span style="color: #009900;">&#123;</span>TSFE<span style="color: #339933; font-weight: bold;">:</span>sys_language_uid<span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># fuehre einen count durch und speichere das Ergebnis in &quot;counter&quot;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          selectFields <span style="color: #339933; font-weight: bold;">=</span> count<span style="color: #009900;">&#40;</span><span style="color: #339933; font-weight: bold;">*</span><span style="color: #009900;">&#41;</span> AS counter</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        renderObj <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/TEXT/"><span style="color: #990000; font-weight: bold;">TEXT</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        renderObj <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># zeig mir nun das Ergebnis des Counters an und wrappe es</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #000066; font-weight: bold;">field</span> <span style="color: #339933; font-weight: bold;">=</span> counter</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          wrap <span style="color: #339933; font-weight: bold;">=</span>  <span style="color: #3366CC;">&lt;span&gt;</span><span style="color: #009900;">&#40;</span><span style="color: #339933; font-weight: bold;">|</span><span style="color: #009900;">&#41;</span><span style="color: #3366CC;">&lt;/span&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">&nbsp;</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #aaa; font-style: italic;"># zeige mir alle Unterkategorien der aktuellen Kategorie an</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #cc0000;">30</span> <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/CONTENT/"><span style="color: #990000; font-weight: bold;">CONTENT</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #cc0000;">30</span> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/stdWrap/"><span style="font-weight: bold;">stdWrap</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># fuehre den Abschnitt nur aus, wenn in der Select-Abfrage ein Wert gefunden wurde</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          required <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">1</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          wrap <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #3366CC;">&lt;ul&gt;</span><span style="color: #339933; font-weight: bold;">|</span><span style="color: #3366CC;">&lt;/ul&gt;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">&nbsp;</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        table <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #000066; font-weight: bold;">tt_news_cat</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/functions/select/"><span style="font-weight: bold;">select</span></a> <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          pidInList <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #cc0000;">3</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          orderBy <span style="color: #339933; font-weight: bold;">=</span> title</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          andWhere<span style="color: #339933; font-weight: bold;">.</span>dataWrap <span style="color: #339933; font-weight: bold;">=</span> parent_category<span style="color: #339933; font-weight: bold;">=</span><span style="color: #009900;">&#123;</span>field<span style="color: #339933; font-weight: bold;">:</span>uid<span style="color: #009900;">&#125;</span> AND deleted<span style="color: #339933; font-weight: bold;">=</span><span style="color: #cc0000;">0</span> AND hidden<span style="color: #339933; font-weight: bold;">=</span><span style="color: #cc0000;">0</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #aaa; font-style: italic;"># vererbe die Einstellungen von lib.CatList.10.renderObj an dieses renderObj</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        renderObj <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">lib</span><span style="color: #339933; font-weight: bold;">.</span>catList<span style="color: #339933; font-weight: bold;">.</span>10<span style="color: #339933; font-weight: bold;">.</span>renderObj</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        renderObj <span style="color: #339933; font-weight: bold;">=</span> <a target="_blank" href="http://documentation.typo3.org/documentation/tsref/cobjects/COA/"><span style="color: #990000; font-weight: bold;">COA</span></a></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        renderObj <span style="color: #009900;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">&nbsp;</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># zeige den Titel mit Verlinkung an, genauso wie bei lib.catList.10.renderObj.10 (vererbt)</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #cc0000;">10</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">lib</span><span style="color: #339933; font-weight: bold;">.</span>catList<span style="color: #339933; font-weight: bold;">.</span>10<span style="color: #339933; font-weight: bold;">.</span>renderObj<span style="color: #339933; font-weight: bold;">.</span>10</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">&nbsp;</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># zeige den News-Counter an, genauso wie bei lib.catList.10.renderObj.20 (vererbt)</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #cc0000;">20</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">lib</span><span style="color: #339933; font-weight: bold;">.</span>catList<span style="color: #339933; font-weight: bold;">.</span>10<span style="color: #339933; font-weight: bold;">.</span>renderObj<span style="color: #339933; font-weight: bold;">.</span>20</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">&nbsp;</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># zeige die Unterkategorien an, genauso wie bei lib.catList.10.renderObj.30 (vererbt)</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #cc0000;">30</span> <span style="color: #339933; font-weight: bold;">&lt;</span> <span style="color: #000066; font-weight: bold;">lib</span><span style="color: #339933; font-weight: bold;">.</span>catList<span style="color: #339933; font-weight: bold;">.</span>10<span style="color: #339933; font-weight: bold;">.</span>renderObj<span style="color: #339933; font-weight: bold;">.</span>30</div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># wenn noch eine 4. und 5. Kategorien-Ebene abgebildet werden sollen,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># dann die folgenden 6 Zeilen verwenden</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># 30.renderObj = COA</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># 30.renderObj {</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;">#   10 &lt; lib.catList.10.renderObj.10</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;">#   20 &lt; lib.catList.10.renderObj.20</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;">#   30 &lt; lib.catList.10.renderObj.30</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #aaa; font-style: italic;"># }</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&#125;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#125;</span></div></li></ol></pre></div></div>
Zum Abschluss noch ein wenig CSS, um die aktuell ausgewählte Kategorie auch grafisch ansprechend darzustellen:
<div class="tx_codehighlight_pi1"><div class="code"><pre class="css" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">li<span style="color: #6666ff;">.news-catmenu-ACT</span> <span style="color: #00AA00;">&gt;</span> a <span style="color: #00AA00;">&#123;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span> </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #00AA00;">&#125;</span></div></li></ol></pre></div></div>
<h4>09.08.2011 - UPDATE 1 (Zeile 41+42)</h4>
Der cHash sollte bei einem Link mit übergeben werden, um das Caching von TYPO3 zu &quot;unterstützen&quot;. Hierzu gibt es im TypoScript zu typolink eine Option &quot;useCacheHash&quot;, diese auf 1 setzen, und schon wird der URL der cHash mit angehängt. Vielen Dank an ScubaBen, der mich &quot;in die richtige&nbsp;Richtung geschubst hat&quot; ;)
<h4>09.08.2011 - UPDATE 2 (Zeile 62)</h4>
<p style="font-size: 13px; line-height: 2em; margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; ">Ein kleiner Fehler hat sich beim Counter der News eingeschlichen. Um lediglich die News zu zählen, die auch in dieser Sprache verfügbar sind, muss die WHERE-Klausel um die sys_language_uid aus dem TSFE-Objekt erweitert werden: &quot;AND sys_language_uid={TSFE:sys_language_uid}&quot;</p>]]></content:encoded>
			<category>tt_news</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Mon, 27 Jun 2011 23:04:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>David gegen Goliath: die Vorteile von Startups gegenüber etablierten Firmen</title>
			<link>http://www.fiedomedia.de/news/artikel/david-gegen-goliath-vorteile-startups-gegen-etablierte-firmen/</link>
			<description>Neugegründete (Noch-)Kleinunternehmen, sogenannte STARTUPs, haben es oft schwer, sich gegen große,...</description>
			<content:encoded><![CDATA[<link http://startwerk.ch/2011/06/17/klein-aber-fein-grosen-vorteile-eines-startups/trackback/ _blank external-link-new-window "Klein aber fein: Größen-Vorteile von Startups">Im Blog der schweizer&nbsp;Startups-Plattform &quot;startwerk.ch&quot; wird nun für die Neu-Unternehmen gekämpft.</link>&nbsp;Zahlreiche Vorteile gegenüber den alteingesessenen Firmen sollen dazu bewegen, den Startups doch öfters mal&nbsp;eine Chance zu geben...]]></content:encoded>
			<category>News</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Mon, 20 Jun 2011 10:54:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>TYPO3: Spamshield als Alternative zu CAPTCHA</title>
			<link>http://www.fiedomedia.de/news/artikel/typo3-spamshield-alternative-captcha/</link>
			<description>Spam gehört heutzutage zum Internet schon fast wie Dieter Bohlen zu DSDS. Daher haben die meisten...</description>
			<content:encoded><![CDATA[Im TYPO3 Extension Repository (<link http://typo3.org/extensions/repository/ _blank external-link-new-window "TYPO3 Extension Repository">TER</link>) lassen sich 2 sehr nützliche Erweiterungen finden, welche beide versprechen, Spam zu verhindern,&nbsp;<strong>ohne dass der Websiten-Besucher eingreifen&nbsp;oder Beeinträchtigungen bei der Darstellung verschmerzen muss</strong>. Zum einen&nbsp;<link http://typo3.org/extensions/repository/view/wt_spamshield/current/ _blank external-link-new-window "wt_spamshield im TER">spamshield</link>&nbsp;und zum anderen&nbsp;<link http://typo3.org/extensions/repository/view/spamshield/current/ _blank external-link-new-window "spamshield im TER">wt_spamshield</link>, welche beide sehr ähnlich agieren.
<h3>Features</h3>
Beide Erweiterungen bieten zahlreiche Prüfungen, um einen vermeintlichen Spam-Bot zu identifizieren:&nbsp;&nbsp;
<strong>Features von wt_spamshield (laut Manual):</strong>
<ul><li>Name check: Prüfung, ob der eingegebene Vorname gleich dem Nachnamen ist (wer hat schon den gleichen Vor- wie Nachnamen?)</li><li>Session check: beim Aufruf des Formulars wird ein Zeitstempel erstellt, welcher beim Absenden mit übermittelt wird (verhindert, dass Formulare abgesendet werden können, ohne die Website jemals besucht zu haben)</li><li>Time (session) check: ein Zeitfenster, in welchem das Formular gesendet werden kann, z. B. 10 Sekunden bis 10 Minuten&nbsp;(kein Mensch schafft es unter 10 Sekunden ein ganzes Formular auszufüllen)</li><li>Link check: Prüfung, wie viele externe Links im Inhalt auftauchen</li><li>Akismet check: kostenlose Online-Prüfung des Inhalts, ob es sich um Spam handeln könnte</li><li>Unique check: ähnlich dem Name check, ob irgendwelche Felder doppelten Inhalt haben</li><li>Honeypod check: ein verstecktes Eingabefeld im Formular, welches nur von Spambots ausgefüllt wird (Bots tragen in jedes Eingabefeld Werte ein, welches sie finden können)</li></ul>
<strong>Features von spamshield (laut Manual):</strong>
<ul><li>referer: Prüfung des HTTP_REFERER, ähnlich dem Session check von wt_spamshield</li><li>useragent: Prüfung des HTTP_USER_AGENT, welcher vom Browser übermittelt wird (Spambots haben keine &quot;Browser&quot;)</li><li>javascript: Prüfung, ob der&nbsp;Browser Javascript und Cookies interpretieren kann</li><li>httpbl.org-blacklist: kostenloser Online-Check der IP-Adresse, ob diese bereits in einer Blacklist auftaucht</li><li>honeypot-fields: genauso wie der der Honeypod check von wt_spamshield</li></ul>
Beide Extensions lassen sich problemlos in andere Erweiterungen integrieren, wie&nbsp;u. a. in Formulare von&nbsp;<em>powermail</em>, die Kommentarfunktion von&nbsp;<em>comments</em>&nbsp;oder die Gästebuchfunktion von&nbsp;<em>ve_guestbook</em>. Außerdem sind alle&nbsp;Checks&nbsp;in der Konfiguration der Extension ein- und ausschaltbar.&nbsp;Interessant ist auch die Auswertung des Spams, da sämtliche Spamversuche in eine vordefinierte Seite eingetragen werden können, wenn gewünscht.&nbsp;Ausführliche Anleitungen hierzu sind im Manual der Erweiterung nachzulesen.
<h3>Installation</h3>
Die Installation der Extensions ist wie gehabt denkbar einfach:
<ul><li>die gewünschte Erweiterung im Extension Manager herunterladen und installieren.</li><li>bei spamshield werden die Einstellungen im EM vorgenommen, dazu die Extension in der Liste heraussuchen und die Details aufrufen</li><li>unter &quot;<em>Configuration</em>&quot; wie gewünscht anpassen</li><li>abschließend muss unter &quot;<em>WEB</em>&quot; -&gt; &quot;<em>Template</em>&quot; die Extension zum Haupttemplate der Seite hinzugefügt werden.<ul><li>Haupttemplate auswählen, also die Seite mit der kleinen Weltkugel voran</li><li>im Dropdown &quot;<em>Info/Modify</em>&quot; auswählen</li><li>&quot;<em>Edit the whole template record</em>&quot;&nbsp;auswählen</li><li>&quot;<em>Includes</em>&quot; auswählen</li><li>unter &quot;<em>Include static from extensions</em>&quot; in der rechten Liste spamshield anklicken, so dass es in die linke Liste hinzugefügt wird</li></ul></li><li>Fertig!</li></ul>
<h3>Fazit</h3>
Wie bereits erwähnt wird der Website-Besucher ab sofort nicht mehr dazu genötigt, kaum oder nur schwer lesbare, bunte Felder zu identifizieren und wiederzugeben.&nbsp;<strong>Es ist ja schön und gut, dass etwas gegen Spam getan wird, aber dann bitte ohne die menschlichen Besucher zu belästigen.</strong>]]></content:encoded>
			<category>Extensions</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Wed, 11 May 2011 11:17:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>TYPO3: RealUrl Pfad verkürzen bei tt_news</title>
			<link>http://www.fiedomedia.de/news/artikel/typo3-ttnews-realurl-pfad-verkuerzen/</link>
			<description>Die TYPO3-Extensions RealUrl und tt_news sind wohl die am öftesten verwendeten Extensions...</description>
			<content:encoded><![CDATA[Dass sich ein Pfad wie<br /><em>&quot;example.com/news/articel/2011/05/04/eine-nachricht-mit-ttnews-und-realurl.html&quot;<br /></em>schon besser anhört als ohne RealUrl<br /><em>&quot;example.com/index.php?id=123&amp;tx_ttnews[tt_news]=456&quot;<br /></em>ist jedem klar. Auch die Tatsache, dass Suchmaschinen sprechende Links höher bewerten, ist auch längst kein Geheimnis mehr.
Aber trotzdem ist hier noch nicht das Ende des&nbsp;Optimums erreicht. Bei Google sind zahlreiche Foren-Einträge von&nbsp;verzweifelten Programmierern findbar, die gern z. B. die Unterordner für das Datum aus der Url entfernen wollen, dabei allerdings gescheitert sind.
<strong>Hierzu meine Lösung, wie der News-Pfad auf ein Minimum beschränkt werden kann. In meinem Fall ist die Seite mit der Id 14 meine SinglePid, also die Seite, auf welcher die News im Detail angezeigt werden.&nbsp;Benutzt habe ich die&nbsp;<link http://typo3.org/extensions/repository/view/realurl/current/ _blank external-link-new-window "RealUrl im TYPO3 Extension Repository">RealUrl-Version 1.10</link>&nbsp;und&nbsp;<link http://typo3.org/extensions/repository/view/tt_news/current/ _blank external-link-new-window "tt_news im TYPO3 Extension Repository">tt_news 3.0.1</link>.&nbsp;</strong><strong>Der Code-Ausschnitt gehört in die realurl_conf.php im Verzeichnis /typo3conf/ bzw. in die entsprechende PHP-Datei, je nachdem wie sie benannt wurde:</strong>
<div class="tx_codehighlight_pi1"><div class="code"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #339933;">...</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #666666; font-style: italic;">// sucht diesen Abschnitt in der RealUrl-Config-Datei oder neu hinzufuegen</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #0000ff;">'fixedPostVars'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #666666; font-style: italic;">// hier muss nun eure SinglePid statt der 14 rein</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #0000ff;">'14'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #666666; font-style: italic;">// der folgende Teil ist Standard und aus der tt_news-Doku entnommen</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <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></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #0000ff;">'lookUpTable'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'table'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tt_news'</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'id_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'uid'</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'alias_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <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></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'useUniqueCache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'useUniqueCache_conf'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #0000ff;">'strtolower'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #0000ff;">'spaceCharacter'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #339933;">...</span></div></li></ol></pre></div></div>
<div>Mit Hilfe dieses kleines Snippets werden fortan News unter der Url&nbsp;<em>&quot;artikel/hier-kommt-der-news-titel.html&quot;</em>&nbsp;erreichbar sein. Ein weiterer Vorteil ist, dass der Seitentitel für die SinglePid (in meinem Fall &quot;Artikel&quot;) im Link verwendet wird und auch Mehrsprachigkeit kein Problem darstellt.
Ich habe das bei FiedoMedia.de so gelöst, dass ich noch eine übergeordnete Seite namens &quot;News&quot; erstellt habe, somit sind alle Nachrichten unter&nbsp;<link http://fiedomedia.de/de/news/artikel/realurl-pfad-verkuerzen-bei-tt-news/ _blank external-link-new-window>http://fiedomedia.de/de/news/artikel/realurl-pfad-verkuerzen-bei-tt-news/</link>&nbsp;erreichbar.
<strong>Analog dazu ist der Code-Ausschnitt auch mit jeder anderen Extension, welche eine Single-Ansicht bietet,&nbsp;und RealUrl kompatibel:</strong>
<div class="tx_codehighlight_pi1"><div class="code"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #339933;">...</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #666666; font-style: italic;">// sucht euch wieder diesen Abschnitt in der RealUrl-Config-Datei</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #0000ff;">'fixedPostVars'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #666666; font-style: italic;">// hier muss wieder die SinglePid der Extension eingetragen werden</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #0000ff;">'14'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #666666; font-style: italic;">// hier der $_GET Parameter eurer Extension, der umgewandelt wird</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #0000ff;">'GETvar'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_meineextension_pi1[uid]'</span><span style="color: #339933;">,</span> </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #0000ff;">'lookUpTable'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #666666; font-style: italic;">// in welcher DB-Tabelle stehen die Werte der Extension?</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'table'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tx_meineextension_tabellenname'</span><span style="color: #339933;">,</span> </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #666666; font-style: italic;">// nach welchem Feld soll gefiltert werden?</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'id_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'uid'</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #666666; font-style: italic;">// welches Feld soll fuer die Url verwendet werden?</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'alias_field'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span> </div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <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></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'useUniqueCache'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #0000ff;">'useUniqueCache_conf'</span> <span style="color: #339933;">=&gt;</span> <a target="_blank" href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #0000ff;">'strtolower'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">          <span style="color: #0000ff;">'spaceCharacter'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'-'</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">        <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">      <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;">  <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span></div></li><li style="font-weight: bold;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none;"><span style="color: #339933;">...</span></div></li></ol></pre></div></div>
Sollten Sie&nbsp;Anregungen, Fragen oder Kommentare zu meinem Snippet haben, zögern Sie&nbsp;nicht, die Kommentarfunktion zu benutzen oder&nbsp;diese Seite mit anderen zu teilen. Ich freue mich über jegliches Feedback.</div>]]></content:encoded>
			<category>RealUrl</category>
			<category>tt_news</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Wed, 04 May 2011 15:37:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>FiedoMedia.de ab sofort online</title>
			<link>http://www.fiedomedia.de/news/artikel/fiedomedia-ab-sofort-online/</link>
			<description>&quot;Was lange währt, wird endlich gut&quot;. Nach monatelangem Kopfzerbrechen habe ich nun endlich meine...</description>
			<content:encoded><![CDATA[Ich habe mir fest vorgenommen, des öfteren nützliche Snippets und Tipps zu TYPO3 und&nbsp;sonstigen Programmierungen&nbsp;zu posten, um&nbsp;Mysterien von TYPO3 und CO&nbsp;nicht für mich zu behalten.
Natürlich mag ich auch etwas Werbung in eigener Sache machen, daher werde ich regelmäßig meine fertiggestellten Projekte&nbsp;<link 5 - internal-link>in meinem Portfolio bzw. unter Referenzen</link>&nbsp;veröffentlichen.]]></content:encoded>
			<category>News</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Tue, 03 May 2011 14:35:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title>FiedoMedia Webdesign geht an den Start</title>
			<link>http://www.fiedomedia.de/news/artikel/fiedomedia-webdesign-geht-an-start/</link>
			<description>Zum Jahresanfang habe ich mich nun endlich selbstständig gemacht, um mein bisheriges Hobby neben...</description>
			<content:encoded><![CDATA[Anfangs will man gar nicht glauben, wie viele Kosten und Schreibarbeit auf einen lauern, nur um so einen Gewerbeschein in der Hand halten zu können... Aber ich denke, die Strapazen werden sich lohnen.
Ich hoffe, dass ich meine Begeisterung für Websiten und Web-Programmierung mit vielen Menschen teilen kann und Anklang finde.]]></content:encoded>
			<category>News</category>
			
			<author>info@fiedomedia.de</author>
			<pubDate>Tue, 18 Jan 2011 15:49:00 +0100</pubDate>
			
		</item>
		
	</channel>
</rss>
