<?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; tt_news</title>
	<atom:link href="http://www.typo3-addict.com/tag/tt_news/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: 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: 301 redirect pages or tt_news records</title>
		<link>http://www.typo3-addict.com/2009/11/tt_news-pages-301-redirect/</link>
		<comments>http://www.typo3-addict.com/2009/11/tt_news-pages-301-redirect/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 08:14:42 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[tt_news]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.typo3-addict.com/?p=672</guid>
		<description><![CDATA[I&#8217;m getting a lot of traffic lately of people searching for a tutorial on 301 redirects, especially in combination with tt_news. Therefore I&#8217;m going to explain how to make such a redirect the easiest way. In this tutorial I&#8217;m assuming you already have a website up and running with RealURL installed and you want to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting a lot of traffic lately of people searching for a tutorial on 301 redirects, especially in combination with tt_news. Therefore I&#8217;m going to explain how to make such a redirect the easiest way. In this tutorial I&#8217;m assuming you already have a website up and running with RealURL installed and you want to setup a 301 redirect for a page or news record which no longer exist.</p>
<p><span id="more-672"></span></p>
<pre>Note: If you don't know anything about a 301 redirect
please read the grey box at the bottom of the article!</pre>
<h4>Redirecting a page using 301</h4>
<p>In this tutorial we have 2 pages: a news list page and a news single page</p>
<pre>http://www.your-website.com/old-news-page/

http://www.your-website.com/news/</pre>
<p>Now, since both page 1 and 2 are well indexed in Google and there are several inbound links we don&#8217;t want to delete either of them.  Yet the first news item had become obsolete and we want to redirect all these inbound links to another page.</p>
<p>If we delete the first page the visitor will end up with a 404 page. A 301 redirect could redirect the first pages to another page, and this is Google friendly too! So&#8230; how to do this?</p>
<pre>1. In the backend, go the 'info' module in the left main menu.
2. Select the rootpage of your website.
3. Choose "Speaking Url Management" from the dropdown menu.
4. Choose "Error log" from the second dropdown menu.</pre>
<p>You should now see a list of url errors:</p>
<p style="text-align: center;">
<div id="attachment_688" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/error_log.jpg"><img class="size-large wp-image-688 " title="error_log" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/error_log-1024x348.jpg" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p>It seems the page &#8216;old-news-page&#8217; has been requested by a visitor but could not be found. To make sure this won&#8217;t happen again we are going to redirect this page to our new page: &#8216;news&#8217;. As you can see, there&#8217;s a little button called &#8216;set as redirect&#8217;. Click this button to set the redirect for this url. You should now see the following screen:</p>
<p style="text-align: left;">
<div id="attachment_689" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/make_301_redirect.jpg"><img class="size-large wp-image-689 " title="make_301_redirect" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/make_301_redirect-1024x348.jpg" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p style="text-align: left;">In the screenshot above I&#8217;m redirecting the page &#8216;old-news-page&#8217; to the new page: &#8216;news&#8217;. As you can see I activate the &#8216;Send &#8220;301 Moved permanently&#8221; header&#8217; checkbox. Now TYPO3 will make the redirect a 301 redirect!</p>
<pre>1. Set the old url (this way it's set automatically)
2. Set the new page
3. Save the redirect
4. Go to <a href="http://www.your-website.com/old-news-page/">http://www.your-website.com/old-news-page/</a>
5. TYPO3 will redirect you to <a href="http://www.your-website.com/news/">http://www.your-website.com/news/</a>
6. Redirect succesful!</pre>
<p>Now let&#8217;s see how we can make this work for tt_news!</p>
<h4>Redirecting a tt_news record using 301</h4>
<p>When you delete a news record and try to visit it you&#8217;ll end up with a &#8216;no news id&#8217; error. The RealURL Management Error Log does not register this error! So, we need to manually set the redirect.</p>
<p>In this case we have 2 news records:</p>
<pre>http://dev.emaux.nl/news/news-single/article/example-news-record/

http://dev.emaux.nl/news/news-single/article/new-news-record/</pre>
<p>To redirect news record 1 to news record 2, please follow the following steps:</p>
<pre>1. In the backend, go the 'info' module again.
2. Select the rootpage of your website.
3. Choose "Speaking Url Management" from the dropdown menu.
4. Choose "Redirects" from the second dropdown menu.

We're back at the second screenshot above!

5. Click '+ New entry'
6. Set the url which no longer exists
7. Set the new url to which you want to redirect
8. Check the 301 checkbox
9. Save and enjoy!</pre>
<div id="attachment_692" class="wp-caption aligncenter" style="width: 595px"><a href="http://www.typo3-addict.com/wp-content/uploads/2009/10/Schermafbeelding-2009-10-30-om-13.37.35.png"><img class="size-large wp-image-692 " title="tt_news redirect 301" src="http://www.typo3-addict.com/wp-content/uploads/2009/10/Schermafbeelding-2009-10-30-om-13.37.35-1024x348.png" alt="Click to enlarge!" width="585" /></a><p class="wp-caption-text">Click to enlarge!</p></div>
<p>That&#8217;s it, your done! Repeat this procedure for all news items you delete. Hope this tutorial was clear and helpful. If you have any questions don&#8217;t hesitate to ask.</p>
<h4>What is a 301 redirect?</h4>
<pre>A 301 redirect is a redirect which uses a 301 http-header code.
This code tells search engines the page is no longer available
at the given location but is 'permanently moved' to another
location. The resource (e.g. search engine) should use the new
URL in the future instead of the old URL. In real life this would
mean the old page should be replaced by the new page upon
re-indexing.

This is a good thing! Now the search enige realizes the old page
doesn't contain the information which is being looked for. The
new page does, so your pageranking is preserved. A win-win
situation: We happy (pageranking preserved), seach engine happy
(page contains good information) and visitor happy (finds the
information it's looking for).</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/11/tt_news-pages-301-redirect/feed/</wfw:commentRss>
		<slash:comments>4</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: 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>
		<item>
		<title>TYPO3: Auto generated tt_news image using GIFBUILDER</title>
		<link>http://www.typo3-addict.com/2009/02/auto-generated-tt_news-image-using-gifbuilder/</link>
		<comments>http://www.typo3-addict.com/2009/02/auto-generated-tt_news-image-using-gifbuilder/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 08:00:16 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[GIFBUILDER]]></category>
		<category><![CDATA[tt_news]]></category>

		<guid isPermaLink="false">http://www.typo-addict.com/?p=360</guid>
		<description><![CDATA[If you have a image in your latest of list view sometimes you just don&#8217;t have a appropriate picture, but no picture would distroy your nice design. tt_news can automatically insert a generated image, using GIFBUILDER. This TypoScript snippet is a latest view, but list is also posible. Adjust the output by reading this. plugin.tt_news.displayLatest.image.noImage_stdWrap [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">If you have a image in your latest of list view sometimes you just don&#8217;t have a appropriate picture, but no picture would distroy your nice design. tt_news can automatically insert a generated image, using GIFBUILDER.</p>
<p style="text-align: left;">This TypoScript snippet is a latest view, but list is also posible.</p>
<p style="text-align: left;">Adjust the output by <a href="http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/9/2/">reading this</a>.</p>
<p><span id="more-360"></span></p>
<pre>plugin.tt_news.displayLatest.image.noImage_stdWrap {
  cObject = IMAGE
  cObject {
    wrap = &lt;div class="ttnews-no-image"&gt;|&lt;/div&gt;
    file = GIFBUILDER
    file {
      XY = {$plugin.tt_news.latestMaxW},{$plugin.tt_news.latestMaxH}
      backColor = #3f5158
    20 = TEXT
    20 {
      text = No image
      fontSize = 16
      niceText = 1
      fontColor = #ccedfb
      offset = {$plugin.tt_news.latestMaxW}/2-30, {$plugin.tt_news.latestMaxH}/2+4
      }
    }
  }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/02/auto-generated-tt_news-image-using-gifbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3: Raw HTML in tt_news records</title>
		<link>http://www.typo3-addict.com/2009/01/raw-html-in-tt_news-records/</link>
		<comments>http://www.typo3-addict.com/2009/01/raw-html-in-tt_news-records/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 21:00:59 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[tt_news]]></category>

		<guid isPermaLink="false">http://www.typo-addict.com/?p=338</guid>
		<description><![CDATA[When trying to embed a video in tt_news I sadly came to the conclusion this was in no way posible. There are a few extension to embed YouTube video in tt_news but since my video was from another website I was out of luck. I wrote an extension to insert raw HTML into a tt_news [...]]]></description>
			<content:encoded><![CDATA[<p>When trying to embed a video in tt_news I sadly came to the conclusion this was in no way posible. There are a few extension to embed YouTube video in tt_news but since my video was from another website I was out of luck.</p>
<p>I wrote an extension to insert raw HTML into a tt_news record. Just install the extension and place the ###HTMLCODE### marker into your tt_news template. Should work fine <img src='http://www.typo3-addict.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<span id="more-338"></span></p>
<p><a title="Extension" href="http://www.typo-addict.com/wp-content/uploads/2009/01/ttnews_html.t3x">Click to download<br />
</a></p>
<div id="attachment_340" class="wp-caption alignnone" style="width: 674px"><a rel="attachment wp-att-340" href="http://www.typo3-addict.com/2009/01/raw-html-in-tt_news-records/afbeelding-1-2/"><img class="size-full wp-image-340" title="Screenshot_HTML" src="http://www.typo-addict.com/wp-content/uploads/2009/01/afbeelding-1.png" alt="Screenshot from inside tt_news record" width="664" height="275" /></a><p class="wp-caption-text">Screenshot from inside tt_news record</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/01/raw-html-in-tt_news-records/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>TYPO3: Single tt_news with ratings and comment on frontpage</title>
		<link>http://www.typo3-addict.com/2009/01/single-news-with-ratings-and-comment-on-frontpage/</link>
		<comments>http://www.typo3-addict.com/2009/01/single-news-with-ratings-and-comment-on-frontpage/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 07:12:40 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[tt_news]]></category>

		<guid isPermaLink="false">http://www.typo-addict.com/?p=303</guid>
		<description><![CDATA[There is a TypoScript solution for displaying a single news item on your frontpage,  this way you don&#8217;t need to use a List of Latest element. But this is not always effective since you are not able to rate or comment this single news item, just the page. After a long search I found this [...]]]></description>
			<content:encoded><![CDATA[<p>There is a <a href="http://typo3.org/documentation/document-library/extension-manuals/tt_news/2.5.2/view/1/7/#id3912069">TypoScript solution</a> for displaying a single news item on your frontpage,  this way you don&#8217;t need to use a List of Latest element. But this is not always effective since you are not able to rate or comment this single news item, just the page.</p>
<p>After a long search I found this extension: <a href="http://typo3.org/extensions/repository/view/xw_ttnewslatestsingle/current/">xw_ttnewslatestsingle</a></p>
<p>This extension adds a new tt_news view called LatestSingle, which allows you to use your single news template for a latest news item. When used, template markers for rating and stuff from tt_news add-ons are suddenly available since these markers only work in the single template, NOT in the latest template.</p>
<p>This is REALLY useful for direct rating and commenting on the frontpage!</p>
<p>Check the screenshot:</p>
<p><img class="alignnone size-full wp-image-304" title="latestsingle" src="http://www.typo-addict.com/wp-content/uploads/2009/01/latestsingle.png" alt="latestsingle" width="454" height="167" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.typo3-addict.com/2009/01/single-news-with-ratings-and-comment-on-frontpage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

