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

<channel>
	<title>TYPO3-Addict &#187; Extensions</title>
	<atom:link href="http://www.typo3-addict.com/category/extensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.typo3-addict.com</link>
	<description>For those addicted to TYPO3</description>
	<lastBuildDate>Wed, 06 Jul 2011 08:08:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>TYPO3: Advanced GIFBUILDER use with tt_news</title>
		<link>http://www.typo3-addict.com/2011/05/typo3-advanced-gifbuilder-use-with-tt_news/</link>
		<comments>http://www.typo3-addict.com/2011/05/typo3-advanced-gifbuilder-use-with-tt_news/#comments</comments>
		<pubDate>Sun, 08 May 2011 08:55:09 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[GIFBUILDER]]></category>
		<category><![CDATA[tt_news]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=1088</guid>
		<description><![CDATA[In the tutorial we&#8217;re going to make an automatic gifbuilder image, for a tt_news article. We&#8217;re going to use the news image from the tt_news record and overlay it with the title. Onces finish, it will look like this: Step 0: We&#8217;ll start with creating a simple news record: We&#8217;re also going to need a [...]]]></description>
			<content:encoded><![CDATA[<p>In the tutorial we&#8217;re going to make an automatic gifbuilder image, for a tt_news article. We&#8217;re going to use the news image from the tt_news record and overlay it with the title. </p>
<p><span id="more-1088"></span><br />
Onces finish, it will look like this:</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/tt_news_image.png"><img class="alignnone size-full wp-image-1108" title="The result" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/tt_news_image.png" alt="" width="517" height="177" /></a></p>
<p><strong>Step 0: We&#8217;ll start with creating a simple news record:</strong></p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.01.14.png"><img class="alignnone size-medium wp-image-1091" title="A simple news record" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.01.14-273x300.png" alt="" width="273" height="300" /></a> <a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.01.27.png"><img class="alignnone size-medium wp-image-1092" title="Add the background image to the news record" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.01.27-257x300.png" alt="" width="257" height="300" /></a></p>
<p>We&#8217;re also going to need a background image for the final gifbuilder image, so we add that too.</p>
<p>Save the news record once your done.</p>
<p>Our news list will contain nothing more than just the image, since the title and subheader will be printed in there*. This means the tt_news template will look like this:</p>
<pre>&lt;!-- ###TEMPLATE_LIST### begin --&gt;
  &lt;div class="news-latest-container"&gt;
    &lt;!-- ###CONTENT### begin --&gt;
      &lt;!-- ###NEWS### begin --&gt;
        &lt;div class="news-latest-item"&gt;
          ###NEWS_IMAGE###
        &lt;/div&gt;
      &lt;!-- ###NEWS### end--&gt;
    &lt;!-- ###CONTENT###  end --&gt;
  &lt;/div&gt;
&lt;!-- ###TEMPLATE_LIST### end --&gt;</pre>
<p>We now have a basic news list view with nothing more than the tt_news image:</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.07.14.png"><img class="alignnone size-full wp-image-1098" title="The basic tt_news output with just one image." src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.07.14.png" alt="" width="580" /></a></p>
<p>So how to transform this image into a dynamic image with title and subtitle?</p>
<p><strong>Step 1: Creating a TypoScript template</strong></p>
<p>Create a TypoScript template at the same page your news-list is located. We tell TYPO3 to clear all current configuration regarding the news-list image:</p>
<pre>plugin.tt_news {
  displayList {
    # Remove all configuration
    image &gt;
  }
}</pre>
<p>We just removed all earlier configuration, which means we can start from the beginning.</p>
<p><strong>Step 2: Import the tt_news image</strong></p>
<p>Import the image we want to use as a background, from the tt_news record by inserting the following TypoScript</p>
<pre>plugin.tt_news {
  displayList {
    # Remove all configuration  
    image &gt;

    # Create a new image
    image {
      stdWrap.cObject = IMAGE
      stdWrap.cObject.file = GIFBUILDER
      stdWrap.cObject.file {
        # Width and height of the image
        XY = 517,177

        # First object: Our background image
        10 = IMAGE
        10 {
          offset = 0,0
          file {
            # Import the image from the tt_news record
            import = uploads/pics/
            import.data = field:image
            import.listNum = 0
            import.override.field = image

            # Determine the width and height (crop)
            width = 517c
            height = 177c

            # Set the quality of the image
            ext = jpg
            quality = 100
          }
        }
      }
    } 
  }       
}</pre>
<p>Save the TypoScript template, and have a look at the frontend. You now have:</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.40.47.png"><img class="alignnone size-full wp-image-1100" title="First result with TypoScript :)" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.40.47.png" alt="" width="580" /></a></p>
<p><strong>Step 3: Add the transparent box in which the title should be displayed</strong></p>
<p>We need to create another object within our TypoScript setup, to display the transparent box:</p>
<pre>plugin.tt_news {
  displayList {
    # Remove all configuration
    image &gt;

    # Create a new image
    image {
      stdWrap.cObject = IMAGE
      stdWrap.cObject.file = GIFBUILDER
      stdWrap.cObject.file {
        # Width and height of the image
        XY = 517,177

        10 = IMAGE
        [.........]

        20 = BOX
        20 {
          # Offset left, Offset bottom, Width, Height
          dimensions = 10,-10,280,70
          # Start at left bottom
          align = l,b
          # Color of the box
	  color = white
          # Opacity of the box
	  opacity = 75
        }
      }
    }
  }
}</pre>
<p>Again, save the template. You now have:</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.53.59.png"><img class="alignnone size-full wp-image-1104" title="The tt_news image now has a transparent box" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-15.53.59.png" alt="" width="580" /></a></p>
<p><strong>Step 4: Insert the tt_news title</strong></p>
<p>Create yet another object in your TypoScript setup, and get the title from the tt_news record:</p>
<pre>
plugin.tt_news {
  displayList {
    # Remove all configuration
    image >

    # Create a new image
    image {
      stdWrap.cObject = IMAGE
      stdWrap.cObject.file = GIFBUILDER
      stdWrap.cObject.file {
        # Width and height of the image
        XY = 517,177

        # First object: Our background image
        10 = IMAGE
        10 {
          offset = 0,0
          file {
            # Import the image from the tt_news record
            import = uploads/pics/
            import.data = field:image
            import.listNum = 0
            import.override.field = image

            # Determine the width and height (crop)
            width = 517c
            height = 177c

            # Set the quality of the image
            ext = jpg
            quality = 100
          }
        }
        20 = BOX
        20 {
          # Offset left, Offset bottom, Width, Height
          dimensions = 10,-10,280,70
          # Start at left bottom
          align = l,b
          # Color of the box
	  color = white
          # Opacity of the box
	  opacity = 75
        }
        30 = TEXT
        30 {
          text.data = field:title
          align = left
	  offset = 15,120
	  fontSize = 20
	  color = black
	}
      }
    }
  }
}
</pre>
<p><strong>We&#8217;re finished:</strong></p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-16.12.53.png"><img class="alignnone size-full wp-image-1110" title="Finished..." src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-30-om-16.12.53.png" alt="" width="580" /></a></p>
<p>If all went well, you should now be able to insert a subheader or any other tt_news field into the image as well. Hope you liked this tutorial, if you did please leave a comment.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2011/05/typo3-advanced-gifbuilder-use-with-tt_news/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TYPO3: Ajax login box with ods_ajaxfelogin</title>
		<link>http://www.typo3-addict.com/2011/05/typo3-ajax-login-box-with-ods_ajaxfelogin/</link>
		<comments>http://www.typo3-addict.com/2011/05/typo3-ajax-login-box-with-ods_ajaxfelogin/#comments</comments>
		<pubDate>Tue, 03 May 2011 09:09:53 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=1074</guid>
		<description><![CDATA[With the all new AJAX powered TYPO3 backend, the default frontend loginbox looks like old and slow technology&#8230; In this tutorial I will turn the default TYPO3 loginbox into an AJAX-powered loginbox with the extension ods_ajaxfelogin. First: Import the extension through the TYPO3 Extension Manager: You might need to install two additional extensions: xajax (for [...]]]></description>
			<content:encoded><![CDATA[<p>With the all new AJAX powered TYPO3 backend, the default frontend loginbox looks like old and slow technology&#8230; In this tutorial I will turn the default TYPO3 loginbox into an AJAX-powered loginbox with the extension <a title="Download the extension" href="http://typo3.org/extensions/repository/view/ods_ajaxfelogin/current/">ods_ajaxfelogin</a>.</p>
<p><span id="more-1074"></span>First: Import the extension through the TYPO3 Extension Manager:</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-29-om-16.01.52.png"><img class="size-full wp-image-1075 alignnone" title="Import the extension for TER" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-29-om-16.01.52.png" alt="" width="500" /></a></p>
<p>You might need to install two additional extensions: xajax (for ajax support) and the default TYPO3 loginbox which is already available but not active.</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-29-om-16.02.07.png"><img class="alignnone size-full wp-image-1078" title="Install additional extensions" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-29-om-16.02.07.png" alt="" width="500" /></a></p>
<p>We now have all necessary extensions.</p>
<p>Insert a loginbox into a page, by selecting the regular default login content element. If this is your first loginbox, please create a usergroup and a user first, preferably in a System Folder. In the login content element, point the startingpoint to this System Folder.</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-29-om-16.03.34.png"><img class="alignnone size-full wp-image-1079" title="Select the default 'login' content element" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/Schermafbeelding-2011-04-29-om-16.03.34.png" alt="" width="500" /></a></p>
<p>If you&#8217;re familiar with the default TYPO3 login box, you&#8217;ll notice nothing has actually changed in the frontend. To make the ajax-magic work, you should make some (small) template adjustments. The extension (ods_ajaxfelogin) provides a ready-to-use template, which is basically the same default template but with those small adjustments.</p>
<p>To make use of this template, we need to tell TYPO3 to use this template, instead of the default one. Create a TypoScript template and put the following inside the &#8216;setup&#8217; area:</p>
<pre># Custom template for the TYPO3 loginbox
plugin.tx_felogin_pi1 {
	templateFile = EXT:ods_ajaxfelogin/felogin.html
}</pre>
<p>In the code above I use the template provided by ods_ajaxfelogin, but you might way to copy the contents of this file and create your own file. This way you can make adjustments according to your design needs.</p>
<p>After you applied the code above, you should have an AJAX-powered loginbox in the frontend.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2011/05/typo3-ajax-login-box-with-ods_ajaxfelogin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3: 5000 extensions and counting!</title>
		<link>http://www.typo3-addict.com/2011/04/typo3-5000-extensions-and-counting/</link>
		<comments>http://www.typo3-addict.com/2011/04/typo3-5000-extensions-and-counting/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 18:41:34 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=1008</guid>
		<description><![CDATA[Last Friday the TYPO3 extension repository hit 5000 extensions. Of course, it&#8217;s not quantity but quality which matters most, still I think this is a great leap for TYPO3. With such a variety of extensions there&#8217;s almost always a solution available and often right out-of-the-box. To everyone who has published one of more useful extensions: Keep [...]]]></description>
			<content:encoded><![CDATA[<p>Last Friday the TYPO3 extension repository hit 5000 extensions. Of course, it&#8217;s not quantity but quality which matters most, still I think this is a great leap for TYPO3. With such a variety of extensions there&#8217;s almost always a solution available and often right out-of-the-box.</p>
<p>To everyone who has published one of more useful extensions: Keep up the good work!</p>
<p><a href="http://www.typo3-addict.com/wp-content/uploads/2011/04/5000.png"><img title="5000" src="http://www.typo3-addict.com/wp-content/uploads/2011/04/5000.png" alt="" width="549" height="126" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2011/04/typo3-5000-extensions-and-counting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3: Click and Enlarge in RTE tt_news</title>
		<link>http://www.typo3-addict.com/2010/06/typo3-click-and-enlarge-in-rte-tt_news/</link>
		<comments>http://www.typo3-addict.com/2010/06/typo3-click-and-enlarge-in-rte-tt_news/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 12:55:32 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[RTE]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[tt_news]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=990</guid>
		<description><![CDATA[I needed an image in the RTE to support the &#8216;click and enlarge&#8217; option in tt_news. Now, I used Google to find a solution but no luck, although it seems I&#8217;m not the only one trying to make this work. Looks like this isn&#8217;t as easy as it would sound.. Read more for the solution! [...]]]></description>
			<content:encoded><![CDATA[<p>I needed an image in the RTE to support the &#8216;click and enlarge&#8217; option in tt_news. Now, I used Google to find a solution but no luck, although it seems I&#8217;m not the only one trying to make this work. Looks like this isn&#8217;t as easy as it would sound..</p>
<p>Read more for the solution!</p>
<p><span id="more-990"></span></p>
<p><strong>How to set the click and enlarge option for the RTE in tt_news:</strong></p>
<p>Step 1:<br />
Include the static template: Clickenlarge Rendering (rtehtmlarea)</p>
<p>Now the click and enlarge rendering should work for normal content elements, but still no result for tt_news.</p>
<p>Step 2:<br />
Add the following TypoScript to your setup:</p>
<pre>
# Rendering RTE tt_news. Use the normal RTE parseFunc
# configuration for tt_news rte content
plugin.tt_news {
        general_stdWrap {
   	      parseFunc < tt_content.text.20.parseFunc
        }
}
</pre>
<p>Your Done <img src='http://www.typo3-addict.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It turns out tt_news uses another way of rendering the RTE, so this should be reversed.</p>
<p>Update: It seems this snippet is actually part of the tt_news static template but out-commented... makes me wonder why?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2010/06/typo3-click-and-enlarge-in-rte-tt_news/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3 Preview: tt_news 3.0</title>
		<link>http://www.typo3-addict.com/2009/11/typo3-preview-tt_news-3-0/</link>
		<comments>http://www.typo3-addict.com/2009/11/typo3-preview-tt_news-3-0/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 07:33:55 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[tt_news]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=761</guid>
		<description><![CDATA[No article or TypoScript this time, but a screenshot preview of the new tt_news 3.0 which will hopefully be out soon! There are some visual changes but I believe most of the improvements are &#8216;under the hood&#8217;. It&#8217;s obvious this trunk version is far from ready but it&#8217;s good to know there is still progress! [...]]]></description>
			<content:encoded><![CDATA[<p>No article or TypoScript this time, but a screenshot preview of the new <strong>tt_news 3.0</strong> which will hopefully be out soon! There are some visual changes but I believe most of the improvements are &#8216;under the hood&#8217;. It&#8217;s obvious this trunk version is far from ready but it&#8217;s good to know there is still progress! Want to see for yourself? Check out the .t3x file at the bottom of the post!<span id="more-761"></span></p>
<pre>Note: This is not an official preview but a trunk download from
the subversion repository. Features a subject to change!</pre>
<div id="attachment_763" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_1.jpg"><img class="size-full wp-image-763 " title="Update to 3.0" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_1.jpg" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p>When installed, tt_news tells you to update to version 3.0 using a dedicated update screen. There seems to be no more option to disable the tabbed flexform interface, yet there are more options regarding the caching of newsitems.</p>
<p style="text-align: left;">
<div id="attachment_764" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_2.jpg"><img class="size-full wp-image-764 " title="The update screen of 3.0" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_2.jpg" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p style="text-align: left;">There are several database updates needed to be done. Each one can be easily applied using the update wizzard.</p>
<p style="text-align: left;">
<div id="attachment_765" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_3.jpg"><img class="size-full wp-image-765 " title="The new news-admin module" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_3.jpg" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p>With tt_news 3.0 comes a News Admin module! Within this module there are no unknown features yet, but it&#8217;s gives you a nice overview of your tt_news records. You can edit news items and categories from within the module.</p>
<p style="text-align: left;">
<div id="attachment_766" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_4.jpg"><img class="size-full wp-image-766 " title="The 3.0 flexform" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_4.jpg" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p style="text-align: left;">The updated flexform reveals some new changes: There are more options to display, and more alternative template parts. With the option dropdown box there is no posibility anymore to choose LIST and SINGLE within the same record. Also notice there is no selector for the starting point.</p>
<p style="text-align: left;">
<div id="attachment_767" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_5.jpg"><img class="size-full wp-image-767 " title="The 3.0 flexform" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_5.jpg" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p>There are a few more options than before. Image width and height are now in the flexform too.</p>
<p style="text-align: left;">
<div id="attachment_768" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_6.jpg"><img class="size-full wp-image-768 " title="The 3.0 flexform" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/tt_news_preview_6.jpg" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p style="text-align: left;">The startingpoint has moved from the first tab to the last tab&#8230;</p>
<p style="text-align: left;">Download  tt_news 3.0 and see for yourself:</p>
<pre><strong>WARNING: This extension is still under development and
should NOT be used in production environments!</strong>

<a title="Download tt_news 3.0" href="http://www.typo3-addict.com/files/tt_news-3_0_0.t3x">Download tt_news 3.0</a> (Right-click save as, Trunk version 05-11-2009)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/11/typo3-preview-tt_news-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3: 5 things about tt_news</title>
		<link>http://www.typo3-addict.com/2009/10/5-things-you-should-know-about-tt_news/</link>
		<comments>http://www.typo3-addict.com/2009/10/5-things-you-should-know-about-tt_news/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 07:32:22 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[GIFBUILDER]]></category>
		<category><![CDATA[tt_news]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=610</guid>
		<description><![CDATA[In this post I'll show you 5 things about tt_news which might be nice to know about tt_news. We discuss a better pagebrowser, loading tt_news without cache and making images perfectly square by generating them automatically.]]></description>
			<content:encoded><![CDATA[<p>The tt_news extension is the most popular extension of TYPO3. No wonder, since it&#8217;s very flexible and can be used for much more than just handling newsitems. In this post I&#8217;ll show you 5 things about tt_news which might be nice to know about tt_news.</p>
<h4>1) A better pagebrowser</h4>
<p>By default, the tt_news pagebrowser is not very nice. Nor can it be easily styled. Inside tt_news there&#8217;s a &#8216;hidden&#8217; pagebrowser which is better, and much more flexible. To activate this better pagebrowser put the following into your template Setup section:<br />
<span id="more-610"></span></p>
<pre>#-----------------------------------
# A better tt_news pagebrowser
#-----------------------------------

plugin.tt_news {
  usePiBasePagebrowser = 1     # This activates the better pagebrowser
  pageBrowser {                # Here you can configure the better pagebrowser
    maxPages = 7                  # Maximum browserpage links
    showResultCount = 1           # Display the sentence: ** till ** out of ** messages
    showRange = 1                 # Will look like "Items: <span style="text-decoration: underline;">1-5</span> <span style="text-decoration: underline;">6-10</span>" instead of "Page <span style="text-decoration: underline;">1</span> <span style="text-decoration: underline;">2</span> <span style="text-decoration: underline;">3</span> <span style="text-decoration: underline;">4</span>"
    showPBrowserText = 0          # Prepends "<span style="text-decoration: underline;">1</span> <span style="text-decoration: underline;">2</span> <span style="text-decoration: underline;">3</span>" like "<span style="text-decoration: underline;">page 1</span> <span style="text-decoration: underline;">page 2</span> <span style="text-decoration: underline;">page 3</span>", only when showRange = 0
    dontLinkActivePage = 1        # No need to link the active page
    showFirstLast = 0             # Show a first / last link, 0 since there already is a previous / next link.
  }
}

#-----------------------------------
# Locallang for the tt_news pagebrowser
#-----------------------------------

plugin.tt_news {
  _LOCAL_LANG.default {
    pi_list_browseresults_displays = Newsitem ###FROM### till ###TO### out of ###OUT_OF### newsitems.
    pi_list_browseresults_first = First page
    pi_list_browseresults_last = Last page
    pi_list_browseresults_page = Page
    pi_list_browseresults_prev = &lt; Previous
    pi_list_browseresults_next = Next &gt;
  }
}</pre>
<h4>2) Do not display duplicate items</h4>
<p>If you have more than one tt_news plugin on your page, this can be nice. For example: The first plugin only shows the last newsitem, the second plugin the 5 most recent newsitems. The most recent newsitem is now shown by both the plugins. You can tell tt_news to only show newsitems once. This only works for List mode plugins. Put the following lines into your template Setup section:</p>
<pre>#-----------------------------------
# Only show newsitems once per page.
#-----------------------------------

plugin.tt_news {
  excludeAlreadyDisplayedNews = 1
}</pre>
<p>If &#8220;excludeAlreadyDisplayedNews&#8221; is enabled &#8220;excludeLatestFromList&#8221; and &#8220;listStartId&#8221; will be ignored. This is no problem, since both these fields are deprecated. Be aware this might break your archive links.</p>
<h4>3) Generate a tt_news image automatically when no image is available</h4>
<p>If your template design forces you to upload a photo with every newsitem, this can be helpful. The following code will generate a &#8220;No image&#8221; image using GIFBUILDER. Put this code in your template Setup section:</p>
<pre>#-----------------------------------
# Generate a tt_news image automatically when no image is available.
# In this snippet: Latest mode
#-----------------------------------

plugin.tt_news.displayLatest.image.noImage_stdWrap {
  cObject = IMAGE
  cObject {
    # Wrap the image with a div tag
    wrap = &lt;div&gt;|&lt;/div&gt;
    # Use GIFBUILDER to create an image
    file = GIFBUILDER
    file {
      # Define the width and height of the image.
      XY = 125,125
      # Define the background color of the image.
      backColor = #FFFFFF

      # First object in the image: TEXT
      10 = TEXT
      10 {
        # The actual text which is displayed in the image
        text = No image available
        # The fontsize
        fontSize = 16
        # niceText to make the text more natural. This can be good or bad depending on your server configuration.
        niceText = 1
        # Color of the text
        fontColor = #000000
        # Coordinates where your text should appear in the image. Width / Height
        offset = 125/2-32,125/2+4
      }
    }
  }
}</pre>
<h4>4) Load tt_news without cache; for example random news.</h4>
<p>If you want to display newsrecords random, set the viewmode to LIST or LATEST and set the &#8217;order by&#8217; field to &#8216;randomise order&#8217;. The tricky part here is that your plugin shouldn&#8217;t be cached, since that would destroy the whole random idea. Ofcourse you can set the whole page to &#8216;no cache&#8217; but this would kill your performance. Better is to just tell tt_news to use no cache. It will still cost you some performance but, it&#8217;s better than not caching the whole page. To setup tt_news without cache put the following code  into your template Setup section:</p>
<pre>#-----------------------------------
# Run tt_news without cache, remember to unset in deeper levels!
#-----------------------------------

plugin.tt_news = USER_INT</pre>
<p>This will load the tt_news plugin as a USER_INT object and render it without cache, outside of the main pagerendering. This way your page will be called from cache but the plugin will be non-cached. Just be sure to un-set this rendering on a deeper pagelevel since TypoScript is inherited from levels above.</p>
<h4>5) Perfectly square tt_news images.</h4>
<p>By default tt_news allows you to set the maximum width and height for an image in LIST or LATEST mode. Width and height are adjusted automatically when one exceeds the other. But what if you want a perfectly square image no matter what photo is being uploaded? CSS seems to be the only way to do this but there&#8217;s a solution which is better..</p>
<p>Ever noticed TYPO3 is able to crop images as soon as resizing isn&#8217;t posible anymore? An example: we have an image of 400 x 300 pixels, we want a picture of 30 x 30. What it does is it resizes the image to 40 x 30 pixels and than crops the width to 30 pixels. But that&#8217;s TYPO3.. not tt_news.</p>
<p>To enable this for tt_news you need to put the following code into your tempate Setup section:</p>
<pre>#-----------------------------------
# Generate a perfectly square tt_news image.
# In this snippet: Latest mode
#-----------------------------------

plugin.tt_news {
    # This only affects the LATEST mode, to use LIST mode change to 'displayList'
    displayLatest {
        # Unset the default tt_news maximum width and height parameter
        image.file.maxW &gt;
        image.file.maxH &gt;
        # Call the TYPO3 way to render images, setting it to 90 pixels; cropping mode (c)
        image.file.width  = 90c
        image.file.height = 90c
        # Make the images SEO, using the caption as Alt tag.
        image.altText.field = imagecaption
    }
}</pre>
<p>Now, the image will be resized untill the given width or height is reached and than be cropped. Width and height are always in pixels so there is no need to append &#8216;px&#8217;. The &#8216;c&#8217; tells TYPO3 to crop the image.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/10/5-things-you-should-know-about-tt_news/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>TYPO3 SEO: The Basics&#8230;</title>
		<link>http://www.typo3-addict.com/2009/10/typo3-seo-the-basics/</link>
		<comments>http://www.typo3-addict.com/2009/10/typo3-seo-the-basics/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 12:10:19 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Sourcecode]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=556</guid>
		<description><![CDATA[In this post I'm going to show you some basics of SEO in TYPO3, I will explain how you can easily handle SEO stuff within TYPO3. This is not a "best practise" nor is it a tutorial on how SEO works. But if you're new to TYPO3, or SEO in TYPO3 you'll find some useful things here.]]></description>
			<content:encoded><![CDATA[<p>In this post I&#8217;m going to show you some basics of SEO in TYPO3, I will explain how you can easily handle SEO stuff within TYPO3. This is not a &#8220;best practise&#8221; nor is it a tutorial on how SEO works. But if you&#8217;re new to TYPO3, or SEO in TYPO3 you&#8217;ll find some useful things here.</p>
<h4>Basic no. 1: A clean source code.</h4>
<p>A clean source code makes it easier for search engines to crawl your website. For that, you need to clean up the default HTML output done by TYPO3. Use this line of TypoScript a put it in your template Setup section:<span id="more-556"></span></p>
<pre># Clean up prefixes in source code
config.disablePrefixComment = 1</pre>
<p>This will clean up the prefixes made with every content-element. This should be a relief! For a more complete cleanup please <a title="Clean up your sourcecode!" href="http://www.typo3-addict.com/2009/02/updated-cleanup-your-fe-sourcecode/">go to this post</a>.</p>
<h4>Basic no. 2: Make you headers better.</h4>
<p>By default, every content-element header is a &lt;h1&gt; header in TYPO3. For your SEO it&#8217;s better to just have one &lt;h1&gt; tag per page. To convert all these &lt;h1&gt; tags into &lt;h2&gt; tags you need to put the following line in your template Constants section:</p>
<pre># Convert default H1 tags into H2 tags
content.defaultHeaderType = 2</pre>
<p>You can now add a &lt;h1&gt; tag manually to the page, or generate one dynamically using TypoScript.</p>
<h4>Basic no. 3: Images.</h4>
<p>By default, images which are scaled, croped or in any other way modified by TYPO3 are given a random name. For example:</p>
<pre>/typo3temp/pics/b3e43c4bb3.jpg.</pre>
<p>By installing the extension: <a title="Nicer image names" href="http://typo3.org/extensions/repository/view/fl_realurl_image/current/">fl_realurl_image</a>, your images will get a nicer name. Install the extension and you&#8217;re done. Images will now be named like:</p>
<pre>/typo3temp/fl_realurl_image/your_image.jpg</pre>
<h4>Basic no. 4: Page title.</h4>
<p>The pagetitle is important for your SEO ranking. This title needs to summerize the pagecontent as close as posible. I suggest you manually edit these to your needs. Someone (can&#8217;t rememer the name, sorry) once told me: Use an inverted breadcrumb path as a pagetitle. The theory behind this: People think about their page names, the lower in the pagetree the more specific. If you invert this you have a pretty close to content path and also the main keywords which people interested in this subject will search for.</p>
<h4>Basic no. 5: URL&#8217;s.</h4>
<p>The default URL&#8217;s of TYPO3 are not readable, the solution to this problem is RealURL. Since this extension is really popular I&#8217;m not going to explain it, this has been done more than enough times. Just search the web for a good tutorial. I can recommend the extension &#8220;danp_realurlconfigurator&#8221; though, which gives you a nice configurator.</p>
<h4>Basic no. 6: Description and meta tags.</h4>
<p>A really important SEO rule is to have unique page descriptions and meta tags. Since these fields have to match the page content as close as posible it&#8217;s only logical to have them in your page configuration. If you edit your page you&#8217;ll find the second tab is all about meta data. Here you can fill in the description and meta tags for your page. To actually use these field in the frontend source code you&#8217;ll need to following lines in your template Setup section:</p>
<pre># This will activate the page meta data
page.meta.keywords.field = keywords
page.meta.description.field = description</pre>
<h4>Basic no. 7: An XML sitemap for Google Webmaster Center.</h4>
<p>If you want Google to track your page changes and crawl them accordingly you can submit a XML sitemap. If you do not know what a XML sitemap is <a title="Google Sitemaps" href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=82300">please read this first</a>. There are a couple of extensions to generate such a sitemap dynamically in TYPO3.</p>
<h4>Basic no. 8: JavaScript at the bottom of your source.</h4>
<pre>Deprecated since version 4.3! Use page.includeJSFooter instead.</pre>
<p>This might be more of a speed thing rather than SEO, but still&#8230; By default TYPO3 will put javascript includes in your header.</p>
<pre>-- SNIP: Deprecated snippet --</pre>
<p>TYPO3 also generates a default JavaScript which can be removed by putting this line in your template Setup section:</p>
<pre># Remove the default JS file in the header
config.removeDefaultJS = 1</pre>
<p>Make sure you copy the content of this file to your custom one before removing it.</p>
<h4>Tip: Extension <a title="Seo_Basics extension" href="http://typo3.org/extensions/repository/view/seo_basics/current/">seo_basics</a></h4>
<p style="text-align: left;">Benjamin Mack has developed an extension (<a title="Seo_Basics extension" href="http://typo3.org/extensions/repository/view/seo_basics/current/">seo_basics)</a> which is really useful. It not only generates the XML sitemap by default, but it also helps you to update the page descriptions and meta tags. Download and install the extension through the extension manager. Once installed, go to http://www.your-website.com/sitemap.xml, you&#8217;ll notice it works right out of the box. (If it doesn&#8217;t, please check you RealURL configuration). But this is just the beginning. Go to the &#8220;info&#8221; module and select your root website page. Now, in the drop-down box choose &#8220;SEO Management&#8221;.</p>
<p>(Update: 17-01-2010: Breaking change in extension update, include static template first!)</p>
<div id="attachment_569" class="wp-caption aligncenter" style="width: 600px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/seo_basics_11.png"><img class="size-full wp-image-569 " title="Seo Basics: Screen 1" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/seo_basics_11.png" alt="Click to enlarge!" width="590" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p style="text-align: left;">Here you&#8217;ll see all pages with there url-path, title, description and metatags. Click on the &#8220;Edit SEO fields&#8221;. Now you&#8217;ll notice you can edit all fields of all pages within one screen! Once you start filling in the details you&#8217;ll notice the color changes while typing:</p>
<p style="text-align: left;">Yellow: To little text<br />
Green: Just good!<br />
Red: To much text</p>
<p>If you would like to add META Abstract &amp; Author to seo_basics please look at this post of Michael Cannon: <a href="http://www.acqal.com/blog/a/article/add-meta-abstract-author-to-seo-basics/">http://www.acqal.com/blog/a/article/add-meta-abstract-author-to-seo-basics/</a></p>
<div id="attachment_570" class="wp-caption aligncenter" style="width: 600px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/seo_basics_2.png"><img class="size-full wp-image-570 " title="seo_basics_2" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/seo_basics_2.png" alt="Click to enlarge!" width="590" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<h4>Hope you liked this post:)</h4>
<p>These basics are far from a complete reference but I hope they will be of use. If you&#8217;ve got suggestions, please don&#8217;t hesitate to comment&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/10/typo3-seo-the-basics/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>TYPO3: Generate all realurl path&#8217;s in one click!</title>
		<link>http://www.typo3-addict.com/2009/03/generate-all-realurl-paths-in-one-click/</link>
		<comments>http://www.typo3-addict.com/2009/03/generate-all-realurl-paths-in-one-click/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 20:20:06 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[RealUrl]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=404</guid>
		<description><![CDATA[A small trick when working with realurl. If you want generate all url path&#8217;s at onces just create a sitemap page (not in menu) and visted it. All pages in the sitemap do now have a realurl path generated.]]></description>
			<content:encoded><![CDATA[<p>A small trick when working with realurl. If you want generate all url path&#8217;s at onces just create a sitemap page (not in menu) and visted it. All pages in the sitemap do now have a realurl path generated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/03/generate-all-realurl-paths-in-one-click/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TYPO3: Quick RSS feed of tt_news</title>
		<link>http://www.typo3-addict.com/2009/03/quick-rss-feed-of-tt_news/</link>
		<comments>http://www.typo3-addict.com/2009/03/quick-rss-feed-of-tt_news/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 20:14:54 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[tt_news]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=400</guid>
		<description><![CDATA[RSS-feeds of tt_news are really simple. To make it even more easy just copy-paste this to your TypoScript setup: plugin.tt_news { # SYS-Folder with newsitems pid_list = # Page with single view singlePid = displayXML { xmlTitle = Your RSS title xmlLink = Your website url xmlDesc = Your RSS description subheader_stdWrap.crop = 250 &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>RSS-feeds of tt_news are really simple. To make it even more easy just copy-paste this to your TypoScript setup:</p>
<pre>plugin.tt_news {
# SYS-Folder with newsitems
pid_list =
# Page with single view
singlePid =
displayXML {
  xmlTitle = Your RSS title
  xmlLink = Your website url
  xmlDesc = Your RSS description
  subheader_stdWrap.crop = 250 | ... | 1
  }
}</pre>
<p>Now just go to your homepage and add &amp;type=100 to the url! You&#8217;re done</p>
<p>There are a few more options, but above are the most important. See the tt_news manual for a complete reference!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/03/quick-rss-feed-of-tt_news/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TYPO3: A better tt_news page browser</title>
		<link>http://www.typo3-addict.com/2009/03/a-better-tt_news-page-browser/</link>
		<comments>http://www.typo3-addict.com/2009/03/a-better-tt_news-page-browser/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 21:03:50 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[tt_news]]></category>
		<category><![CDATA[Typoscript]]></category>

		<guid isPermaLink="false">http://www.typo-addict.com/?p=380</guid>
		<description><![CDATA[Sometimes you walk into things you should have known by now&#8230; This week I was setting up a tt_news configuration, which I have done like a million times, and found this code: plugin.tt_news { usePiBasePagebrowser = 0 } Now, just out of curiosity I set it to 1, just to see what happened&#8230; What do [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you walk into things you should have known by now&#8230; This week I was setting up a tt_news configuration, which I have done like a million times, and found this code:</p>
<pre>
plugin.tt_news {
usePiBasePagebrowser = 0
}
</pre>
<p>Now, just out of curiosity I set it to 1, just to see what happened&#8230; What do you know&#8230; way better than the default pagebrowser! It really makes me wonder why these things aren&#8217;t active by default?</p>
<p>Anyway, most of you probably already knew this, and if you didn&#8217;t like me, you should have <img src='http://www.typo3-addict.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>By the way: If any of you programmers are bored and want to write something really useful.. write a Ajax-based pagebrowser!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/03/a-better-tt_news-page-browser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

