<?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 tips, tricks &#38; tutorials</title>
	<atom:link href="http://www.training-typo3.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.training-typo3.com</link>
	<description>training TYPO3</description>
	<lastBuildDate>Wed, 25 Jan 2012 10:08:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>tt_news RSS feed &#8211; valid and with images</title>
		<link>http://www.training-typo3.com/2011/06/16/tt_news-rss-feed-valid-and-with-images/</link>
		<comments>http://www.training-typo3.com/2011/06/16/tt_news-rss-feed-valid-and-with-images/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 09:08:34 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 extension configuration]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[tt_news]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=270</guid>
		<description><![CDATA[I struggled some hours to get a RSS feed from tt_news including images. It appeared to be quiet simple. One of the problems was after inserting the NEWS_IMAGE marker in de template that the path in the source was only relative. An absRefPrefix with the baseURL seems to fix this. The template also needed some [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-278" title="tt_news RSS" src="http://www.training-typo3.com/wp-content/uploads/2011/06/Rss-150x150.jpg" alt="" width="150" height="150" />I struggled some hours to get a RSS feed from tt_news including images. It appeared to be quiet simple. One of the problems was after inserting the NEWS_IMAGE marker in de template that the path in the source was only relative. An <a href="http://cweiske.de/tagebuch/typo3-tt_news-feed-images.htm">absRefPrefix with the baseURL</a> seems to fix this. The template also needed some altering to get it through the <a href="http://validator.w3.org/feed/">W3 validator</a>.</p>
<p><span id="more-270"></span></p>
<p>After you set up a working tt_news (3.0.1)  :<br />
<em>Note : replace or declare the constants like $newsFolder for the corresponding values, page id&#8217;s and paths</em></p>
<p><strong>Typoscript setup</strong></p>
<pre>plugin.tt_news {
 displayXML {
    rss2_tmplFile = {$tmplpath}tt_news_rss_2.tmpl
    xmlFormat = rss2
    xmlTitle = {$title} - latest news
    xmlLink = {$baseURL}newsarchive/
    xmlDesc = {$slogan}
    xmlLang = nl
    xmlIcon = fileadmin/templates/img/siteLogoRSS.gif
    title_stdWrap.htmlSpecialChars = 1
    title_stdWrap.htmlSpecialChars.preserveEntities = 1
    subheader_stdWrap.stripHtml = 1
    subheader_stdWrap.htmlSpecialChars = 1
    subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
    subheader_stdWrap.crop = 300 | ... | 1
    subheader_stdWrap.ifEmpty.field = bodytext
    xmlLastBuildDate = 1
    xmlLimit = 10
    image.file.maxW = 180c

    # images in rss tmpl
    showImages = 1
 }
}

xmlnews = PAGE
xmlnews {
 typeNum = 100
 10 &gt;
 10 &lt; plugin.tt_news
 10.pid_list &gt;
 10.pid_list = {$newsFolder}
 10.singlePid = {$newsArticle}
 10.defaultCode = XML

 #10.categoryMode = 1
 #10.categorySelection = 1  # would show only category 1

 config {
 disableAllHeaderCode = 1
 additionalHeaders = Content-type:text/xml
 no_cache = 1
 xhtml_cleaning = 0
 }
}

[globalVar = GP:type = 100]
 #URL prefix for images in feed
 config.absRefPrefix = {$baseURL}
 config.baseURL =
[global]

## RSS button in for example address bar in Firefox &lt; version 4, what happened to RSS button in 4+ ?? :S
#page.headerData.12 = TEXT
#page.headerData.12.value = &lt;link rel="alternate" type="application/rss+xml" title="{$title}: latest news" href="{$baseURL}newsarchive/rss.xml"&gt;</pre>
<p><strong>Template tt_news_rss_2.tmpl</strong></p>
<p>It is assumed here you have the tt_news archive in /newsarchive  :</p>
<pre>&lt;!-- ###TEMPLATE_RSS2### begin --&gt;###XML_DECLARATION###
&lt;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/"
 &gt;
 &lt;channel&gt;
 &lt;!-- ###HEADER### begin --&gt;
 &lt;title&gt;###SITE_TITLE###&lt;/title&gt;
 &lt;atom:link href="###SITE_LINK###newsarchive/rss.xml" rel="self" type="application/rss+xml" /&gt;
 &lt;link&gt;###SITE_LINK###&lt;/link&gt;
 &lt;description&gt;###SITE_DESCRIPTION###&lt;/description&gt;
 ###SITE_LANG###
 &lt;image&gt;
 &lt;title&gt;###SITE_TITLE###&lt;/title&gt;
 &lt;url&gt;###IMG###&lt;/url&gt;
 &lt;link&gt;###SITE_LINK###&lt;/link&gt;
 &lt;description&gt;###SITE_DESCRIPTION###&lt;/description&gt;
 &lt;/image&gt;
 &lt;generator&gt;TYPO3 - get.content.right&lt;/generator&gt;
 &lt;docs&gt;http://blogs.law.harvard.edu/tech/rss&lt;/docs&gt;
 ###NEWS_COPYRIGHT###
 ###NEWS_WEBMASTER###
 ###NEWS_MANAGINGEDITOR###
 ###NEWS_LASTBUILD###
 &lt;!-- ###HEADER### end --&gt;
 &lt;!-- ###CONTENT### begin --&gt;
 &lt;!-- ###NEWS### begin --&gt;
 &lt;item&gt;
 &lt;title&gt;###NEWS_TITLE###&lt;/title&gt;
 &lt;link&gt;###NEWS_LINK###&lt;/link&gt;
 &lt;description&gt;&lt;![CDATA[###NEWS_SUBHEADER###]]&gt;
 &lt;![CDATA[&lt;p&gt;&lt;/p&gt;]]&gt;&lt;![CDATA[###NEWS_IMAGE###]]&gt;
 &lt;![CDATA[###NEWS_CONTENT###]]&gt;&lt;/description&gt;
 ###NEWS_CATEGORY###
 &lt;guid&gt;###NEWS_LINK###&lt;/guid&gt;
 &lt;pubDate&gt;###NEWS_DATE###&lt;/pubDate&gt;
 ###NEWS_RSS2_ENCLOSURES###
 &lt;/item&gt;
 &lt;!-- ###NEWS### end --&gt;
 &lt;!-- ###CONTENT### end --&gt;
 &lt;/channel&gt;
&lt;/rss&gt;&lt;!-- ###TEMPLATE_RSS2### end --&gt;</pre>
<p><img class="aligncenter size-full wp-image-276" title="tt_news rss image" src="http://www.training-typo3.com/wp-content/uploads/2011/06/tt_news_rss.gif" alt="tt_news rss image" width="600" height="632" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2011/06/16/tt_news-rss-feed-valid-and-with-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Render tt_content element in extension</title>
		<link>http://www.training-typo3.com/2010/12/03/render-tt_content-element-in-extension/</link>
		<comments>http://www.training-typo3.com/2010/12/03/render-tt_content-element-in-extension/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 10:58:07 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 extension configuration]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=262</guid>
		<description><![CDATA[If you would like to read and output a normal tt_content record in an extension, you can do the following. In this example I wanted to have an extra remark / reminder when posting a new topic in the extension mm_forum, which a normal editor could edit in a tt_content element for example text.The needed [...]]]></description>
			<content:encoded><![CDATA[<p>If you would like to read and output a normal tt_content record in an extension, you can do the following. In this example I wanted to have an extra remark / reminder when posting a new topic in the extension mm_forum, which a normal editor could edit in a tt_content element for example text.<span id="more-262"></span>The needed PHP code which can be put in the class ( for example class.tx_mmforum_pi1.php in the function new_topic) :</p>
<pre>$tt_content_conf = array('tables' =&gt; 'tt_content'
      ,'source' =&gt; 33
      ,'dontCheckPid' =&gt; 1
      );
$extraRemark= $this-&gt;cObj-&gt;RECORDS($tt_content_conf);</pre>
<p>The source number corresponds with the uid of the content element. You could also make a constant or a flexform value of this,  if you know how to build extensions you probably know how to do this.</p>
<p>Output :</p>
<p>Put a marker in the html-template of the extension. In my case this was ###EXTRAREMARK### in new_topic.html</p>
<p>Fill marker :</p>
<pre>$marker = array(
    '###EXTRAREMARK###'            =&gt; $extraRemark,
etc... );
</pre>
<p>That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2010/12/03/render-tt_content-element-in-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting rid of the javascript in Powermail</title>
		<link>http://www.training-typo3.com/2010/05/21/getting-rid-of-the-javascript-in-powermail/</link>
		<comments>http://www.training-typo3.com/2010/05/21/getting-rid-of-the-javascript-in-powermail/#comments</comments>
		<pubDate>Fri, 21 May 2010 09:35:07 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 extension configuration]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[Powermail]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=211</guid>
		<description><![CDATA[Sometimes you do not want to use javascript as means of validation in the Powermail forms. Powermail can be set in the constants to either use the Mootools or the Prototype library. When for example using jQuery at the same time, you might want to disable the javascript in Powermail since most of the times [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you do not want to use javascript as means of validation in the Powermail forms. Powermail can be set in the constants to either use the Mootools or the Prototype library. When for example using jQuery at the same time, you might want to disable the javascript in Powermail since most of the times you cannot use 2 different javascript libraries at the same time.</p>
<p><span id="more-211"></span></p>
<h3>Powermail PHP field validation</h3>
<p>At this moment jQuery is still not implemented in Powermail, though it seems they are <a href="http://forge.typo3.org/issues/show/4762" target="_blank">working on it</a>.  Unfortunately javascript cannot be switched of at the present (Powermail 1.5.3) via the constant editor. When using 2 different libraries chances are that for example jQuery or another lib might work ok and the field validation in Powermail will work fine with PHP. But.. the page contains errors and for example Internet Explorer will produce an annoying script error :</p>
<div id="attachment_214" class="wp-caption aligncenter" style="width: 468px"><img class="size-full wp-image-214" title="Powermail-javascript-error_2" src="http://www.training-typo3.com/wp-content/uploads/2010/05/Powermail-javascript-error_2.gif" alt="Powermail Javascript error" width="458" height="294" /><p class="wp-caption-text">Powermail Javascript error in Internet Explorer</p></div>
<h3>Disable javascript in Powermail</h3>
<p>To get rid of this error and to get cleaner code you can do the following :</p>
<p>In Typoscript, setup disable the loading of the js :</p>
<pre>page.includeJS.file31311 &gt;
page.includeJS.file31312 &gt;
page.includeJS.file31313 &gt;
page.includeJS.file31314 &gt;
page.headerData.31310 &gt;
</pre>
<p>This will make sure prototype.js (or mootools.js), effects.js, fabtabulous.js and checkbox.js are not loaded in the HTML source. The last line makes sure the validation script is not loaded. <a href="http://www.typo3.net/forum/list/list_post//83745/">More info on disabling the javascript in Powermail here.</a></p>
<h3>Powermail javascript error in Internet Explorer</h3>
<p>You might wanna think that this would solve it, however after that another error appears :</p>
<div id="attachment_212" class="wp-caption aligncenter" style="width: 468px"><img class="size-full wp-image-212" title="Powermail-javascript-error" src="http://www.training-typo3.com/wp-content/uploads/2010/05/Powermail-javascript-error.gif" alt="Powermail Javascript error" width="458" height="294" /><p class="wp-caption-text">Another javascript error with Powermail</p></div>
<p>It seems in the source the following is the cause :</p>
<pre id="line187">&lt;script type="text/javascript"&gt;
  function formCallback(result, form) {
     window.status = "valiation callback for form '"
     + form.id + "': result = " + result;
   }
    var valid = new Validation('MyNiceForm',
    {immediate : true, onFormValidate : formCallback});
&lt;/script&gt;
</pre>
<p>So we need to get rid of that too. This is located in the Powermail extension file &#8220;templates/tmpl_formwrap.html&#8221;. This file can be edited via the Extension Manager, choose Loaded extensions, than click on Powermail and Edit files. After removing the script part, save the file.</p>
<p>If you do see the message “SAVING IS DISABLED” instead of the save  button go to the install manager first, find in all configuration  “[noEdit]” (use ctrl-F in Firefox to search),  uncheck it and than  scroll down totally and click on “Write to localconf.php”.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2010/05/21/getting-rid-of-the-javascript-in-powermail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Enlarging the Typoscript and RTE windows in the TYPO3 backend</title>
		<link>http://www.training-typo3.com/2010/05/20/enlarging-the-typoscript-and-rte-windows-in-the-typo3-backend/</link>
		<comments>http://www.training-typo3.com/2010/05/20/enlarging-the-typoscript-and-rte-windows-in-the-typo3-backend/#comments</comments>
		<pubDate>Thu, 20 May 2010 14:42:04 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 general configuration]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[RTE]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=181</guid>
		<description><![CDATA[It could be unhandy at times to haveto work in the default sizes of the htmlArea RTE text-editor and the Typoscript constants en setup windows. This can easily be changed by modifying the backend user and the user settings. 1. Changing the size of the TYPO3 RTE For the RTE this can easily be changed [...]]]></description>
			<content:encoded><![CDATA[<p>It could be unhandy at times to haveto work in the default sizes of the htmlArea RTE text-editor and the Typoscript constants en setup windows. This can easily be changed by modifying the backend user and the user settings.</p>
<p><span id="more-181"></span></p>
<h3>1. Changing the size of the TYPO3 RTE</h3>
<div id="attachment_184" class="wp-caption aligncenter" style="width: 600px"><img class="size-full wp-image-184 " title="TYPO3-RTE-size-default" src="http://www.training-typo3.com/wp-content/uploads/2010/05/TYPO3-RTE-size-default1.gif" alt="" width="590" height="468" /><p class="wp-caption-text">Default size of the small RTE in TYPO3..</p></div>
<p>For the RTE this can easily be changed by editing the backenduser (via the List View under the globe level). There under options you can add your desired dimensions of the small version of the RTE :</p>
<pre>options.RTESmallWidth = 800
options.RTESmallHeight = 600</pre>
<div id="attachment_186" class="wp-caption aligncenter" style="width: 600px"><img class="size-full wp-image-186 " title="TYPO3-changing-RTE-size" src="http://www.training-typo3.com/wp-content/uploads/2010/05/TYPO3-changing-RTE-size.gif" alt="Changing the RTE size in the backend of TYPO3" width="590" height="401" /><p class="wp-caption-text">Editing the backend user to get larger RTE</p></div>
<p>After this the RTE should look like :</p>
<div id="attachment_189" class="wp-caption aligncenter" style="width: 600px"><img class="size-full wp-image-189 " title="TYPO3-RTE-size-large" src="http://www.training-typo3.com/wp-content/uploads/2010/05/TYPO3-RTE-size-large.gif" alt="TYPO3 larger RTE in the backend" width="590" height="441" /><p class="wp-caption-text">Much more space to conveniently type some text <img src='http://www.training-typo3.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p></div>
<h3>2. Changing the size of the TYPO3 Typoscript textarea windows</h3>
<div id="attachment_191" class="wp-caption aligncenter" style="width: 600px"><img class="size-full wp-image-191 " title="TYPO3-typoscript-textarea-size-default" src="http://www.training-typo3.com/wp-content/uploads/2010/05/TYPO3-typoscript-textarea-size-default.gif" alt="Default size of TYPO3 Typoscript textarea" width="590" height="634" /><p class="wp-caption-text">Not much space to code some TS in a relaxed way <img src='http://www.training-typo3.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p></div>
<p>This can be adjusted by going to the User Settings under the User Tools.</p>
<div id="attachment_196" class="wp-caption aligncenter" style="width: 600px"><img class="size-medium wp-image-196 " title="TYPO3-changing-typoscript-textarea-size" src="http://www.training-typo3.com/wp-content/uploads/2010/05/TYPO3-changing-typoscript-textarea-size-590x354.gif" alt="TYPO3 changing typoscript textarea size" width="590" height="354" /><p class="wp-caption-text">Changing the TYPO3 Typoscript textarea window size</p></div>
<p>There enable the following :</p>
<ul>
<li>Wide document background</li>
<li>Make Textareas resizable</li>
<li>Make Textareas flexible</li>
</ul>
<p>Also you can put there the max height in pixels. After that the Typoscript windows are resizable by dragging in the lower right corner of the textareas. It should look like :</p>
<div id="attachment_197" class="wp-caption aligncenter" style="width: 600px"><img class="size-full wp-image-197 " title="TYPO3-typoscript-textarea-size-large" src="http://www.training-typo3.com/wp-content/uploads/2010/05/TYPO3-typoscript-textarea-size-large.gif" alt="TYPO3-typoscript-textarea-size-large" width="590" height="736" /><p class="wp-caption-text">A larger and resizable TYPO3 Typoscript textarea window</p></div>
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2010/05/20/enlarging-the-typoscript-and-rte-windows-in-the-typo3-backend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto enable click enlarge images in the RTE of TYPO3</title>
		<link>http://www.training-typo3.com/2009/03/12/howto-enable-click-enlarge-images-in-the-rte/</link>
		<comments>http://www.training-typo3.com/2009/03/12/howto-enable-click-enlarge-images-in-the-rte/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 11:06:37 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 general configuration]]></category>
		<category><![CDATA[clickenlarge]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[RTE]]></category>
		<category><![CDATA[tt_news]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=151</guid>
		<description><![CDATA[Sometimes it&#8217;s handy to put images directly in the RTE instead of attaching them via the media tab in normal pagecontent or in a tt_news article. Together with a lightbox you can than browse through the images, which are spread in the text, like a gallery. 1.  Check &#8220;Enable images in the RTE&#8221; and &#8220;Enable [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s handy to put images directly in the RTE instead of attaching them via the media tab in normal pagecontent or in a tt_news article. Together with a lightbox you can than browse through the images, which are spread in the text, like a gallery.</p>
<p><span id="more-151"></span></p>
<h3>1.  Check &#8220;Enable images in the RTE&#8221; and &#8220;Enable click-enlarge on images&#8221; in htmlArea RTE</h3>
<p>Via the extension manager click on the extension &#8220;htmlArea RTE&#8221; and there check &#8220;Enable images in the RTE&#8221; and &#8220;Enable click-enlarge on images&#8221;. After that click on Update on the bottom.</p>
<h3>2. Include static template &#8220;Clickenlarge Rendering&#8221; (rtehtmlarea)</h3>
<p>In your main typoscript template include the static template &#8220;Clickenlarge Rendering&#8221; (rtehtmlarea).</p>
<div id="attachment_152" class="wp-caption aligncenter" style="width: 607px"><a href="http://www.training-typo3.com/wp-content/uploads/2009/03/typo3-clickenlarge-rte.gif" rel="lightbox[151]"><img class="size-full wp-image-152" title="typo3-clickenlarge-rte" src="http://www.training-typo3.com/wp-content/uploads/2009/03/typo3-clickenlarge-rte.gif" alt="Include static Clickenlarge" width="597" height="722" /></a><p class="wp-caption-text">Include static Clickenlarge</p></div>
<h3>3. Install and include &#8220;PMK Slimbox&#8221; and &#8220;PMK SlimBox for TT_news RTE-Text &#8220;  (optional)</h3>
<p>If you like to use a Lightbox for nice image enlargement you could install <a href="http://typo3.org/extensions/repository/view/pmkslimbox/current/">PMK Slimbox</a> and if you use tt_news you might want <a href="http://typo3.org/extensions/repository/view/slimboxttnewsbt/current/">PMK SlimBox for TT_news RTE-Text</a>, which allows  images inserted via the RTE also to have a lightbox. After installing via the extensionmanager include the static templates (see image above).</p>
<h3>4. Check image button, tsconfig, default max width of RTE images</h3>
<p>You should see now an image button in the RTE. If not, it is probably disabled in the tsconfig of the main page. For that edit the page properties of your root page and check under tab options. Make sure it is not listed under RTE.default.hidebuttons. If you would like to have a default width of images inserted in the RTE, you could enter there :</p>
<pre>RTE.default.buttons.image.options.magic.maxWidth = 700</pre>
<p>This gives the inserted image in the RTE maximum 700px width.</p>
<div id="attachment_158" class="wp-caption aligncenter" style="width: 829px"><a href="http://www.training-typo3.com/wp-content/uploads/2009/03/typo3-rte-image_button.gif" rel="lightbox[151]"><img class="size-full wp-image-158" title="typo3-rte-image_button" src="http://www.training-typo3.com/wp-content/uploads/2009/03/typo3-rte-image_button.gif" alt="RTE insert image button" width="819" height="598" /></a><p class="wp-caption-text">RTE insert image button</p></div>
<h3></h3>
<h3>5. Insert image in RTE and set on click enlarge</h3>
<p>After inserting the image, right click on it, choose &#8220;Image Properties&#8221; and check &#8220;Click-enlarge&#8221;</p>
<div class="wp-caption aligncenter" style="width: 829px"><a href="http://www.training-typo3.com/wp-content/uploads/2009/03/typo3-clickenlarge-rte-21.gif" rel="lightbox[151]"><img class="size-full" title="typo3-clickenlarge-rte-21" src="http://www.training-typo3.com/wp-content/uploads/2009/03/typo3-clickenlarge-rte-21.gif" alt="typo3-clickenlarge-rte-21" width="819" height="702" /></a><p class="wp-caption-text">Set click enlarge</p></div>
<h4>
<p style="text-align: left;">.</p>
</h4>
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2009/03/12/howto-enable-click-enlarge-images-in-the-rte/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Installation of TYPO3 for newbies. Part 2 : database, UTF-8 and the installtool</title>
		<link>http://www.training-typo3.com/2009/02/28/installation-of-typo3-for-newbies-part-2-installtool/</link>
		<comments>http://www.training-typo3.com/2009/02/28/installation-of-typo3-for-newbies-part-2-installtool/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 13:57:28 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 general configuration]]></category>
		<category><![CDATA[basic configuration]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[install tool]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=120</guid>
		<description><![CDATA[Continuing the tutorial how one may install TYPO3. This is especially aimed at starting webdesigners who want to work with the powerfull open source CMS TYPO3. Assumed is that installation has been done of TYPO3 like described in part 1 of the TYPO3 install tutorial. 5. The MySQL database and UTF-8 Maybe you would like [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing the tutorial how one may install TYPO3. This is especially aimed at starting webdesigners who want to work with the powerfull open source CMS TYPO3. Assumed is that installation has been done of TYPO3 like described in part 1 of the <a title="Installation of TYPO3" href="http://www.training-typo3.com/2008/12/09/installation-of-typo3-for-newbies-part-1-ftp-htaccess-and-chmod/">TYPO3 install tutorial</a>.</p>
<p><span id="more-120"></span></p>
<h3>5. The MySQL database and UTF-8</h3>
<p>Maybe you would like your database and TYPO3 to work with the <a title="UTF-8" href="http://en.wikipedia.org/wiki/Utf-8">UTF-8</a> characterset, which is advisable, escpecially with multi-language sites. Not all servers will automatically generate a UTF-8 database but rather create for example in <em>latin1_swedish_ci</em>. If you are not sure or if your host does not automatically let TYPO3 generate an UTF-8 database you could take the following steps :</p>
<h4>5.1 Create the UTF-8 database with phpMyAdmin</h4>
<p>Open <a href="http://www.phpmyadmin.net/home_page/index.php">phpMyAdmin</a> (often installed by your host on your server), create a new database with collation <em>utf8_general_ci</em></p>
<h4>5.2 Edit localconf.php</h4>
<p>Open typo3conf/localconf.php and add the following 2 lines :</p>
<pre>$TYPO3_CONF_VARS['BE']['forceCharset'] = 'utf-8';
$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8;';</pre>
<p>If you know the ImageMagick version, which is often version 6 on modern servers, this could also be a convenient moment to change the default version from 5 to 6 and accordingly also to change the dpi for a <a href="http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/9/1/" target="_blank">gifbuilder</a> Freetype application to 96. You could do this later too in the installtool, so these are not really necessary now. Under &#8220;Basic configuration in the installtool&#8221; you can than look up the installed version on the server and set this version under &#8220;All configuration&#8221;. (ImageMagick <span class="postbody">is used to dynamically create or manipulate images, that&#8217;s why it&#8217;s advised in the <a href="http://typo3.org/about/system-requirements/">TYPO3 server requirements</a> to have it installed.)<br />
</span></p>
<pre>$TYPO3_CONF_VARS['GFX']['im_version_5'] = 'im6';
$TYPO3_CONF_VARS['GFX']['TTFdpi'] = '96';</pre>
<p>Last thing you may want to set if you run your website on a shared hosting and do not want to hold to many connections &#8211; which can result in your site and other sites going offline (&#8220;The current  username, password or host was not accepted when the connection to the  database was attempted to be established! database error&#8221;.  )  :</p>
<pre>$TYPO3_CONF_VARS['SYS']['no_pconnect'] = '1';</pre>
<h3>6. The TYPO3 installtool</h3>
<h4>6.1 TYPO3 installtool step 1</h4>
<p>After having chmodded the files and folders it is time to launch the installtool. Direct your browser to your new site, e.g. www.training-typo3.com and the install tool should appear, without errors if the guidelines in part 1 are followed. Fill in the mySQL database username, password and host (= often localhost).</p>
<div id="attachment_121" class="wp-caption aligncenter" style="width: 600px"><a href="http://www.training-typo3.com/wp-content/uploads/2009/02/typo3-install-tool.gif" rel="lightbox[120]"><img class="size-full wp-image-121" style="border: 1px solid black;" title="typo3-install-tool" src="http://www.training-typo3.com/wp-content/uploads/2009/02/typo3-install-tool.gif" alt="TYPO3 install tool" width="590" height="658" /></a><p class="wp-caption-text">TYPO3 install tool, step 2</p></div>
<h4>6.2 TYPO3 installtool step 2</h4>
<p>Depending on your server / host you can either create a new database or choose an pre-created empty database, which for example has been made with phpMyAdmin. If you rather or need to create a database with phpMyAdmin or another tool, you might want the collation to be <em>utf8_general_ci</em> or <em>utf8_unicode_ci</em>. If you let TYPO3 create a database, verify later in for example phpMyAdmin that the database and the tables are UTF-8.</p>
<h4>6.3 TYPO3 installtool step 3, Go!</h4>
<p>Simply click on &#8220;Import database&#8221; and &#8230; you&#8217;re done!</p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2009/02/typo3-install-tool-go.gif" rel="lightbox[120]"><img class="aligncenter size-full wp-image-132" title="typo3-install-tool-go" src="http://www.training-typo3.com/wp-content/uploads/2009/02/typo3-install-tool-go.gif" alt="typo3-install-tool-go" width="604" height="949" /></a>Click on &#8220;Continue to configure TYPO3&#8243;, there enter a new password for the installtool. After updating, choose &#8220;Basic configuration&#8221; from the top menu.</p>
<h4>6.4 TYPO3 installtool basic configuration</h4>
<div id="attachment_133" class="wp-caption aligncenter" style="width: 614px"><a href="http://www.training-typo3.com/wp-content/uploads/2009/02/typo3-install-tool-basic-configuration.gif" rel="lightbox[120]"><img class="size-full wp-image-133" title="typo3-install-tool-basic-configuration" src="http://www.training-typo3.com/wp-content/uploads/2009/02/typo3-install-tool-basic-configuration.gif" alt="TYPO3 install tool basic configuration" width="604" height="949" /></a><p class="wp-caption-text">TYPO3 install tool basic configuration</p></div>
<p>Make sure that everything there is checked ok. If not, read for example part 1 of this tutorial and fix the requirements, chmods etc. Try send a test mail if you like (don&#8217;t worry about the warning &#8220;sendmail program not found or not executable&#8221;,  if it works it works.). If you for example need to enter a path there for the ImageMagick installation do it and scroll totally downwards to update localconf.php. This file is pretty important with some global configuration, and is located on your server in the folder typo3conf. If you once run into trouble by for example mixing the wrong extensions and you can&#8217;t get properly in to the backend you can in that file delete some extensions from being installed.</p>
<p>After &#8220;Basic Configuration&#8221; you could check &#8220;Image Processing&#8221; and run some cool tests there to check wether ImageMagick, GDlib and Freetype work ok. Perhaps you get a warning you need to set <span class="smalltext">[GFX][im_version_5] on im6 in &#8220;All Configuration&#8221;, depending on which version of ImageMagick you use.</span></p>
<p><span class="smalltext">After this the initial setup is done and it&#8217;s time to login on the backend!</span></p>
<h3>7. The backend</h3>
<p>Login the backend like www.yoursite.com/typo3 , after install the username is &#8220;admin&#8221; and the password is &#8220;password&#8221;. When in the backend you will get some notices in a yellow window. Follow the instructions to get rid of the warnings.</p>
<p>&#8212;&#8212;&#8212;&#8212;</p>
<p>Soon part 3 of this tutorial with videos including an explanation of how to parse content from the backend on the frontend, where to learn more about typoscript, making a HTML template and using TemplaVoila!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2009/02/28/installation-of-typo3-for-newbies-part-2-installtool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TYPO3 multi language</title>
		<link>http://www.training-typo3.com/2008/12/15/typo3-multi-language/</link>
		<comments>http://www.training-typo3.com/2008/12/15/typo3-multi-language/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 17:09:05 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 extension configuration]]></category>
		<category><![CDATA[TYPO3 general configuration]]></category>
		<category><![CDATA[multi language]]></category>
		<category><![CDATA[Realurl]]></category>
		<category><![CDATA[TemplaVoila]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=23</guid>
		<description><![CDATA[What are the exact steps to make your TYPO3 website multi language on a site with TemplaVoila. This little tutorial explains it all&#8230; what to put in typoscript, how to handle realurl and how you can get a language selector on each page. If you like it or miss something please comment on it 1. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-language-selector.gif" rel="lightbox[23]"><img class="alignleft size-full wp-image-64" title="typo3-language-selector" src="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-language-selector.gif" alt="typo3-language-selector" width="121" height="127" /></a>What are the exact steps to make your TYPO3 website multi language on a site with TemplaVoila. This little tutorial explains it all&#8230; what to put in typoscript, how to handle realurl and how you can get a language selector on each page. If you like it or miss something please comment on it <img src='http://www.training-typo3.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span id="more-23"></span></p>
<h3>1. Install Static info tables</h3>
<p>Download and install the <a href="http://typo3.org/extensions/repository/view/static_info_tables/current/" target="_blank">extension static info tables</a> in the extensionmanager. This adds some database info in TYPO3 with countries, languages, currencies etc. After installing, include static in your main typoscript template (see image under <em>8. Realurl and multilanguage</em>). If you do not install this extension, the localisation tab in TemplaVoila will not appear.</p>
<p><em>Installing this extension takes a lot of time so if your PHP.ini has limited the maximum execution time on 30 seconds, you might get an error while installing. If you get this error you can try to add in the <a href="http://www.training-typo3.com/2008/12/09/installation-of-typo3-for-newbies-part-1-ftp-htaccess-and-chmod/" target="_blank">TYPO3 .htaccess file</a> the line php_value max_execution_time 90 or higher. If this does not work contact your webhost.</em></p>
<h3>2. Create website languages</h3>
<p>Go via List and click on the image of the &#8220;globe&#8221; level, that is the very top of the page tree. <em>(NOTE: this has changed in newer TYPO3 versions. The highest level has now a TYPO3 logo.)</em> There create the wanted languages. Fill in language, iso code and flag. We use english as default in this example, <strong>no need to define that one</strong>. Pay attention to the id&#8217;s of the languages which you can see if you hover with the mouse over the symbol. Those id&#8217;s need to be used later in realurl.</p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-languages.gif" rel="lightbox[23]"><img class="aligncenter size-full wp-image-53" title="typo3-languages" src="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-languages.gif" alt="typo3-languages" width="590" height="314" /></a></p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-languages2.gif" rel="lightbox[23]"><img class="aligncenter size-full wp-image-51" title="typo3-languages2" src="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-languages2.gif" alt="typo3-languages2" width="377" height="302" /></a></p>
<h3>3. Check if langdisable is in TemplaVoila data source</h3>
<p>This code is normally in the datastructure of a templavoila template :</p>
<pre>    &lt;meta&gt;
        &lt;langDisable&gt;1&lt;/langDisable&gt;
    &lt;/meta&gt;</pre>
<p>You can verify that in the <a href="http://typo3bloke.net/post-details/creating_multilanguage_sites_with_templavoila/">DS record of the templavoila template</a>.</p>
<h3>4. Define the languages in typoscript.</h3>
<p>In the setup of the main typoscript template the following code has been put. In our example our default language is enlish and we included spanish, german, dutch, french and portuguese. The id&#8217;s have to be identic to the created weblanguages. The default language has uid 0.</p>
<pre>config.linkVars = L
config.uniqueLinkVars = 1
config.sys_language_overlay = content_fallback
config.language = en
config.locale_all = en_EN
config.htmlTag_langKey = en-EN
config.sys_language_uid = 0
[browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urn:schemas-microsoft-com:vml” xml:lang="en"

[globalVar = GP:L = 2]
config.language = es
config.locale_all = es_ES
config.htmlTag_langKey = es-ES
config.sys_language_uid = 2
[globalVar = GP:L = 2] &amp;&amp; [browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urn:schemas-microsoft-com:vml” xml:lang="es"

[globalVar = GP:L = 3]
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de-DE
config.sys_language_uid = 3
[globalVar = GP:L = 3] &amp;&amp; [browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urn:schemas-microsoft-com:vml” xml:lang="de"

[globalVar = GP:L = 4]
config.language = nl
config.locale_all = nl_NL
config.htmlTag_langKey = nl-NL
config.sys_language_uid = 4
[globalVar = GP:L = 4] &amp;&amp; [browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urn:schemas-microsoft-com:vml” xml:lang="nl"

[globalVar = GP:L = 5]
config.language = fr
config.sys_language_uid = 5
config.locale_all = fr_FR
config.htmlTag_langKey = fr-FR
[globalVar = GP:L = 5] &amp;&amp; [browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urn:schemas-microsoft-com:vml” xml:lang="fr"

[globalVar = GP:L = 6]
config.language = pt
config.locale_all = pt_PT
config.htmlTag_langKey = pt-PT
config.sys_language_uid = 6
[globalVar = GP:L = 6] &amp;&amp; [browser = msie]
config.htmlTag_setParams = xmlns="http://www.w3.org/1999/xhtml" xmlns:v=”urn:schemas-microsoft-com:vml” xml:lang="pt"
[global]</pre>
<p>For exact explaination what this code does read the article <a href="http://typo3bloke.net/post-details/creating_multilanguage_sites_with_templavoila/" target="_blank">Creating multilanguage sites with TemplaVoila</a> or the <a href="http://typo3.org/documentation/document-library/core-documentation/doc_l10nguide/current/" target="_blank">Frontend Localization Guide.</a> You can read here more about <a href="http://wiki.typo3.org/XHTML" target="_blank">XHTML and language in TYPO3</a>.</p>
<p>For now just copy it and adjust to your languages. Make sure you end with [global]. Without realurl installed your urls will now be something like www.yourwebsite.com/index.php?id=1&amp;L=2 , where L=2 means that you get the Spanish version of the page.</p>
<h3>5. Put the default language and flag in TSconfig</h3>
<p>On your root page edit the page properties. Under Options include in TSConfig :</p>
<pre>mod.SHARED.defaultLanguageLabel = English
mod.SHARED.defaultLanguageFlag = gb.gif</pre>
<p>This sets the default language on english and uses the english flag in the backend.</p>
<h3>6. Create new page translation and pagecontent</h3>
<p>Click via Page on the page where you wish to create a new translation. There choose the localization view tab and create a new page translation.</p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-localisation-tv.gif" rel="lightbox[23]"><img class="aligncenter size-full wp-image-57" title="typo3-localisation-tv" src="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-localisation-tv.gif" alt="typo3-localisation-tv" width="699" height="304" /></a></p>
<p>After that you can fill in the pagetitle for that language.</p>
<p>When you create new pagecontent you now should be able to choose the language for that page.</p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-pagecontent-languages.gif" rel="lightbox[23]"><img class="aligncenter size-full wp-image-60" title="typo3-pagecontent-languages" src="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-pagecontent-languages.gif" alt="typo3-pagecontent-languages" width="699" height="304" /></a></p>
<h3>7. Creating a language selector on the TYPO3 website</h3>
<p>For the language selector I installed in the extension manager the extension <a href="http://typo3.org/extensions/repository/view/sr_language_menu/current/" target="_blank">sr_language_menu</a>. No configuration is needed if your default language is english. If not change in constant editor the default language and country. For example for dutch :</p>
<pre>plugin.tx_srlanguagemenu_pi1.defaultLanguageISOCode = NL
plugin.tx_srlanguagemenu_pi1.defaultCountryISOCode = NL</pre>
<p>You can add this extension as as plugin on your pages via pagecontent or you could map it with TemplaVoila. I prefer to map it so it appears on each page. To do that create a sysfolder, call it elements or something. In the sysfolder create pagecontent and choose Language Selection. There you need to select the languages from the globe level and choose if you want a dropdown list or flags. Note that you do not need to add the default language here (english in this example).</p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-language-selection.gif" rel="lightbox[23]"><img class="aligncenter size-full wp-image-62" title="typo3-language-selection" src="http://www.training-typo3.com/wp-content/uploads/2008/12/typo3-language-selection.gif" alt="typo3-language-selection" width="681" height="416" /></a></p>
<p>In the TemplaVoila html template add for example</p>
<pre>&lt;div id="language-selector"&gt;&lt;!-- languages --&gt;&lt;/div&gt;</pre>
<p>Go via List to the TemplaVoila storage folder, click on the TO icon before your template and than templavoila, modify DS/TO. Add a new data element language. Choose as mapping type Element and as Editing Type &#8220;typoscript object path&#8221;, fill in after update lib.language.</p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/templavoila-map-language.gif" rel="lightbox[23]"><img class="aligncenter size-full wp-image-63" title="templavoila-map-language" src="http://www.training-typo3.com/wp-content/uploads/2008/12/templavoila-map-language.gif" alt="templavoila-map-language" width="601" height="484" /></a></p>
<p>Update, click on map, choose as Mapping Window &#8220;mode: html source&#8221; and click on the the new created div. Than click SET and &#8220;save as&#8221; to overwrite the TemplaVoila template. Since this is not a TemplaVoila tutorial I do not go further into this, however these are pretty much the steps needed, so should be sufficient.</p>
<p>Now, in your typoscript template add the following under setup:</p>
<pre>lib.language = RECORDS
lib.language.tables = tt_content
lib.language.source = 62</pre>
<p>The number needs to correspond with the id of the pagecontent element. You can see the id by hovering with the mouse over the icon before the Language menu item under the folder elements as stated above.</p>
<p>When you&#8217;re set and done clear all cache.</p>
<p>If you now check on the frontend of your site the language selector should be visible and working. Note that on a certain page only the languages will appear in the selector for which you made a page translation.</p>
<p>Only thing to do now is putting it on the right place in the design by adding something like this in your CSS :</p>
<pre>#language-selector {
      left: 500px;
      top:100px;
      position:absolute;
      z-index:10;
     }</pre>
<h3>8. Realurl and multilanguage</h3>
<p>If you want nice url&#8217;s you may want to install the extension <a href="http://typo3.org/extensions/repository/view/realurl/current/" target="_blank">Realurl</a>. After installing uncheck &#8220;Enable automatic configuration&#8221; in the extension manager at the realurl extension. In the main typoscript template the following code needs to be put under setup :</p>
<pre>    tx_realurl_enable = 1
    baseURL = http://www.yourwebsite.com/
    simulateStaticDocuments = 0
    prefixLocalAnchors = all</pre>
<p>Read here about the needed <a href="http://www.training-typo3.com/2008/12/09/installation-of-typo3-for-newbies-part-1-ftp-htaccess-and-chmod/" target="_blank">.htaccess file at the root of TYPO3 folder</a>. This is absolute necessary.</p>
<p>Since I am lazy I use the nice pre configuration of the extension <a href="http://typo3.org/extensions/repository/view/cbrealurl/current/" target="_blank">CB Realurl</a> (cbrealurl). It includes configuration for some popular extensions like tt_news. (Else you need to create manually a realurl configuration and include it in the file localconf.php.)<br />
Install cbrealurl in the extension manager and include static in your main typoscript template.</p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/realurl-include-static.gif" rel="lightbox[23]"><img class="aligncenter size-full wp-image-37" title="CB realurl-include-static" src="http://www.training-typo3.com/wp-content/uploads/2008/12/realurl-include-static.gif" alt="CB realurl-include-static" width="561" height="462" /></a></p>
<p>Now you need to alter the file realurl.php in the extension cbrealurl with your languages. Unfortunately this needs to be done in php instead of for example via the constant editor.</p>
<p>Click on the extension manager, click on &#8220;Cannonbose RealURL Configuration Helper&#8221; then choose edit files.</p>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/cbrealurl-extensionmanager.gif" rel="lightbox[23]"><img class="aligncenter size-full wp-image-44" title="cbrealurl-extensionmanager" src="http://www.training-typo3.com/wp-content/uploads/2008/12/cbrealurl-extensionmanager.gif" alt="cbrealurl-extensionmanager" width="600" height="446" /></a></p>
<p>You see there the languages defined when you scroll down a little. Default are some other languages defined than you see in the image above.  In this example our default language is english and we included spanish, german, dutch, french and portuguese. The id&#8217;s have to be identic to the created web languages &#8211; explained under point 2.</p>
<p>In the url you now will get <a href="http://www.yourdomain.com/pageblabla/">http://www.yourdomain.com/pageblabla/</a> for english and for the other languages it will become <a href="http://www.yourdomain.com/es/pageblabla/">http://www.yourdomain.com/es/pageblabla/</a> ,  <a href="http://www.yourdomain.com/de/pageblabla/">http://www.yourdomain.com/de/pageblabla/</a> etc.</p>
<p>If you do see the message &#8220;SAVING IS DISABLED&#8221; instead of the save button go to the install manager first, find in all configuration &#8220;[noEdit]&#8221; (use ctrl-F in Firefox to search),  uncheck it and than scroll down totally and click on &#8220;Write to localconf.php&#8221;.</p>
<p><em>I know it&#8217;s not a nice way to edit in the extensionmanager, however its quick and dirty. (You could also create a custom file where you overwrite the default configuration, since on line 664 of realurl.php it states $customFile   = &#8216;../../realurl-custom.php&#8217;; ).</em></p>
<h3><em>Notes<br />
</em></h3>
<ul>
<li><em>Note that on TYPO3 versions 4.2.2 and 4.2.3 there are problems at the moment of this writing with realurl and multilanguage. Description of the bug <a href="http://bugs.typo3.org/view.php?id=9841" target="_blank">&#8221; Wrong path for links to other language versions	&#8221; is found on the bugtracker</a>.  On 4.2.1 and lower there are no problems. </em><em>In the examples realurl 1.5.2 and cbrealurl 1.1.0 were used on TYPO3 4.2.1.<br />
Update 12/1/09 : it seems this problem is fixed in the core of TYPO3 4.2.4<br />
</em></li>
<li><em>This tutorial is partly based on the article <a href="http://typo3bloke.net/post-details/creating_multilanguage_sites_with_templavoila/">Creating multilanguage sites with TemplaVoila</a> by Dmitry Dulepov. </em><em></em></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2008/12/15/typo3-multi-language/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>T3Blog installation. Is this the blog solution for TYPO3?</title>
		<link>http://www.training-typo3.com/2008/12/10/t3blog-installation-is-this-the-blog-solution-for-typo3/</link>
		<comments>http://www.training-typo3.com/2008/12/10/t3blog-installation-is-this-the-blog-solution-for-typo3/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 15:45:13 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 extension configuration]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=7</guid>
		<description><![CDATA[To be able to write down fast and easy tips &#38; tricks regarding TYPO3 webdesign I installed the new blog extension T3Blog on this site. It did not take to long to get it working. Read here the steps I took and some comments on this still early release. 1. First of all I downloaded [...]]]></description>
			<content:encoded><![CDATA[<p class="bodytext"><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/t3blog.jpg" rel="lightbox[7]"><img class="alignleft size-thumbnail wp-image-25" style="border: 1px solid black;" title="t3blog" src="http://www.training-typo3.com/wp-content/uploads/2008/12/t3blog-150x150.jpg" alt="t3blog" width="150" height="150" /></a>To be able to write down fast and easy tips &amp; tricks regarding TYPO3 webdesign I installed the new blog extension <a class="external-link-new-window" title="Opens external link in new window" href="http://blog.snowflake.ch/de/" target="_blank">T3Blog</a> on this site. It did not take to long to get it working. Read here the steps I took and some comments on this still early release.</p>
<p><span id="more-7"></span></p>
<p class="bodytext">
<p class="bodytext">1. First of all I downloaded and installed these extensions. Mind the order!</p>
<ul>
<li>dam_1.0.14.t3x</li>
<li>typoscripttools_0.0.2.t3x (this extension is special for T3Blog)</li>
<li>sfpantispam_0.0.0.t3x</li>
<li>t3blog_0.5.0.t3x</li>
</ul>
<p class="bodytext">2. After installing I made a new page in my new and still empty site : Blog and created a new template there. In the template include the static templates as shown in the order as shown <a class="external-link-new-window" title="Opens external link in new window" href="http://typo3.org/documentation/document-library/extension-manuals/t3blog/0.5.0/view/1/2/#id4147925" target="_blank">here</a>.</p>
<p class="bodytext">3. I went to the constant editor (via Template of the Web menu, click on the new Blog page.) There fill in at least the baseurl and the id of the new blog page. Save and clear cache.</p>
<p>Then the blog worked! After that I added an extra CSS to style the blog a bit in an own way.</p>
<p class="bodytext">The default template delivered with it can be found in static/t3blog/template/setup.txt. So I copied a part of it to change it in the setup of the TS template I created in the blog page. For example I changed the right column to the left and disabled the right column. Also I disabled some widgets like the RSS which I didnt get to work yet.</p>
<pre><strong>#typoscript setup code</strong></pre>
<pre>plugin.tx_t3blog_pi1.layoutBlog.20 &gt;</pre>
<pre>plugin.tx_t3blog_pi1.layoutBlog.40 &gt;</pre>
<pre>plugin.tx_t3blog_pi1.layoutBlog {</pre>
<pre>    #right Content</pre>
<pre>    40 = COA</pre>
<pre>    40 {</pre>
<pre>        stdWrap {</pre>
<pre>            wrap = &lt;div id="col3"&gt;|&lt;/div&gt;</pre>
<pre>            required = 1</pre>
<pre>        }</pre>
<pre>            10 = TEXT</pre>
<pre>        10 {</pre>
<pre>            value = &lt;!-- --&gt;</pre>
<pre>        }</pre>
<pre>    }</pre>
<pre>    #left Content</pre>
<pre>    20 = COA</pre>
<pre>    20 {</pre>
<pre>        stdWrap {</pre>
<pre>            wrap = &lt;div id="col1"&gt;|&lt;/div&gt;</pre>
<pre>            required = 1</pre>
<pre>        }</pre>
<pre>        5 = TEXT</pre>
<pre>        5 {</pre>
<pre>            field = searchBox</pre>
<pre>        }</pre>
<pre>        10 = TEXT</pre>
<pre>        10 {</pre>
<pre>            field = feed</pre>
<pre>        }</pre>
<pre>        #20 = TEXT</pre>
<pre>        #20 {</pre>
<pre>        #    field = calendar</pre>
<pre>        #}</pre>
<pre>        30 = TEXT</pre>
<pre>        30 {</pre>
<pre>            field = latestPostNav</pre>
<pre>        }</pre>
<pre>        40 = TEXT</pre>
<pre>        40 {</pre>
<pre>            field = categories</pre>
<pre>        }</pre>
<pre>        50 = TEXT</pre>
<pre>        50 {</pre>
<pre>            field = blogrollList</pre>
<pre>        }</pre>
<pre>        60 = TEXT</pre>
<pre>        60 {</pre>
<pre>            field = latestCommentsNav</pre>
<pre>        }</pre>
<pre>        70 = TEXT</pre>
<pre>        70 {</pre>
<pre>            field = archive</pre>
<pre>        }</pre>
<pre>        #80 = TEXT</pre>
<pre>        #80 {</pre>
<pre>        #    field = rss</pre>
<pre>        #}</pre>
<pre>        #90 = TEXT</pre>
<pre>        #90 {</pre>
<pre>        #    field = socialBookmarks</pre>
<pre>        #}</pre>
<pre>    }</pre>
<pre>    #footer</pre>
<pre>}</pre>
<p class="csc-frame-frame1">
<p class="bodytext">The RSS is strange that it does not work, since I filled in the needed TS which are explained in the manual.</p>
<p class="bodytext">The html and CSS of the blog and the widgets are not valid and thus contain of some errors which I suppose can be fixed if you dive in the extensions code. In internet Explorer there is a small error about an unvalid character.</p>
<p class="bodytext">The RTE sometimes just disappeared when I tried to create a 2nd pagecontent block in a single post.</p>
<p class="bodytext">Unfortunately the other pages of the site will not work out of the box with the template of the blog so I had to create quickly a Templavoila template to have pages like contact on the trial site.  Since the template which comes with the blog uses it&#8217;s own CSS I created a blog.css which only gets loaded for the blogpage and this overwrites some CSS of the extension.</p>
<p class="bodytext">Later I tried to create a blog page myself by using a Templavoila page and just put some widgets from the blog extension by putting plugins on the page. This worked good. However in the list view of the posts the links in the post itself dissapeared..</p>
<p class="bodytext">Verdict :  I feel the extension is still not mature enough and full of little bugs which annoyed me so much I decided to go ahead with WordPress for now. However it is a nice start to allow TYPO3 to have a good out of the box blog system instead of installing and combining extensions like tt_news, comments, tagcloud, calendar etc. For this site I am to lazy and just use WordPress for blogging <img src='http://www.training-typo3.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />   But I am looking forward to a bugfix release of T3Blog!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2008/12/10/t3blog-installation-is-this-the-blog-solution-for-typo3/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Installation of TYPO3 for newbies. Part 1 : FTP, .htaccess and chmod</title>
		<link>http://www.training-typo3.com/2008/12/09/installation-of-typo3-for-newbies-part-1-ftp-htaccess-and-chmod/</link>
		<comments>http://www.training-typo3.com/2008/12/09/installation-of-typo3-for-newbies-part-1-ftp-htaccess-and-chmod/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 15:44:16 +0000</pubDate>
		<dc:creator>Jacco Van der Post</dc:creator>
				<category><![CDATA[TYPO3 general configuration]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://www.training-typo3.com/?p=5</guid>
		<description><![CDATA[Starting a series about how one may install TYPO3 for the first time. In this first article four steps are explained, including the .htaccess and the chmod of folders and files. 1. Check server requirements and download TYPO3 When you install TYPO3 the first time you need to download from TYPO3.org the &#8220;source with dummy [...]]]></description>
			<content:encoded><![CDATA[<p>Starting a series about how one may install TYPO3 for the first time. In this first article four steps are explained, including the .htaccess and the chmod of folders and files.</p>
<h3><span id="more-5"></span><strong>1. Check server requirements and download TYPO3</strong></h3>
<p class="indent">When you install TYPO3 the first time you need to download from <a class="external-link-new-window" title="Opens external link in new window" href="http://typo3.org/download/packages/">TYPO3.org </a>the &#8220;source with dummy site.zip&#8221;. Make sure your server meets the <a class="external-link-new-window" title="Opens external link in new window" href="http://typo3.org/about/system-requirements/">requirements of TYPO3</a>. In general you will want at least a Linux Apache server with PHP 5.2, mySQL and Imagemagick.</p>
<h3>2. Upload TYPO3 to your webserver</h3>
<p>Extract it and upload it to your webserver with a reliable FTP client like for example <a class="external-link-new-window" title="Opens external link in new window" href="http://filezilla-project.org/download.php">Filezilla</a>.</p>
<h3>3. Put the right .htaccess in place</h3>
<p>This is also a good time to immediately include the .htaccess. In the .htaccess you need to put in some rules for Realurl or Cooluri. Those are 2 extensions which allow to create nice urls. Instead of having <a href="http://www.typo3-course.com/index.php?id=3">http://www.typo3-course.com/index.php?id=3</a> we and for example Google prefer <a href="http://www.typo3-course.com/blog.html">http://www.typo3-course.com/blog.html</a></p>
<p>To be able to get this, make sure your server has the Apache module modrewrite. So do not use a host which runs a Windows webserver! Unless you&#8217;re very handy cuz peeps seem to get RealUrl running on Windows. Google.</p>
<p>Also in the .htaccess there can be put some rules for PHP which depending on the server allows to override some fixed settings in PHP.ini. TYPO3 needs at least 32 mb PHP memory. The post_max_size sometimes needs to be set if you getting in troubles while installing a larger extension. The upload_max_filesize you may want to adjust if you like to be able to upload larger files in the backend, for example video. You can learn here more <a class="external-link-new-window" title="Opens external link in new window" href="http://wiki.typo3.org/How_to_upload_big_files">about allowing uploading large files in TYPO3.</a></p>
<p>In general this is the .htaccess you want in the root (so next to index.php) of the TYPO3 installation :</p>
<pre>php_value memory_limit 128M

#Maximum size of POST data that PHP will accept. Not required.
php_value post_max_size 64M

#Maximum allowed size for uploaded files. Not required.
php_value upload_max_filesize 64M

RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php</pre>
<p>Since you are not allowed to rename a file to .htaccess in Windows or OSX, create a new file with your <a class="external-link-new-window" title="Opens external link in new window" href="http://www.pspad.com/">favourite text (Windows) editor</a> / <a title="Smultron" href="http://tuppis.com/smultron/" target="_blank">Apple</a> paste the code from above in it and save it as .htaccess. You can throw away the file _.htaccess which is included in the TYPO3 package.</p>
<h3>4. Chmod folders and file</h3>
<p>After copying via the FTP client of all the files and the .htaccess you now need to chmod some folders and 1 file with the FTP client. Just right click on the folders within for example Filezilla and choose CHMOD and set the following on 777. Sometimes 755 is also enough and sometimes you do not need to chmod at all. This depends on your webhost. If you get a message while running the install wizard that the folder is not writeable you need 777 instead of 755. The folders / file :</p>
<ul>
<li>typo3temp</li>
<li>typo3conf</li>
<li>typo3conf/localconf.php</li>
<li>typo3conf/ext</li>
<li>typo3conf/l10n</li>
<li>typo3/ext</li>
<li>uploads</li>
<li>uploads/pics</li>
<li>uploads/media</li>
<li>uploads/tf</li>
<li>fileadmin</li>
<li>fileadmin/_temp_</li>
<li>fileadmin/user_upload</li>
</ul>
<p><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/filezilla1.gif" rel="lightbox[5]"><img class="size-medium wp-image-32 alignnone" style="border: 1px solid black;" title="filezilla1" src="http://www.training-typo3.com/wp-content/uploads/2008/12/filezilla1-300x300.gif" alt="filezilla1" width="300" height="300" /></a> <em><a href="http://www.training-typo3.com/wp-content/uploads/2008/12/filezilla2.gif" rel="lightbox[5]"><img class="size-medium wp-image-33 alignnone" title="filezilla2" src="http://www.training-typo3.com/wp-content/uploads/2008/12/filezilla2-270x300.gif" alt="filezilla2" width="270" height="300" /></a></em></p>
<p><em>After that it is time to run www.yourdomain.com to start the install wizard. Soon part 2 of this simple installation guide.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.training-typo3.com/2008/12/09/installation-of-typo3-for-newbies-part-1-ftp-htaccess-and-chmod/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

