<?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>delusionworld blog &#187; TYPO3</title>
	<atom:link href="http://www.delusionworld.com/category/typo3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.delusionworld.com</link>
	<description>my MooTools, TYPO3 and FLOW3 experiences</description>
	<lastBuildDate>Fri, 24 Jun 2011 21:22:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Getting Started with TYPO3v5 Phoenix (on Windows)</title>
		<link>http://www.delusionworld.com/typo3/getting-started-with-typo3v5-phoenix-on-windows/</link>
		<comments>http://www.delusionworld.com/typo3/getting-started-with-typo3v5-phoenix-on-windows/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 10:56:42 +0000</pubDate>
		<dc:creator>daKmoR</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[TYPO3]]></category>
		<category><![CDATA[WebDevelopment]]></category>
		<category><![CDATA[getting started]]></category>
		<category><![CDATA[phoenix]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[typo3v5]]></category>

		<guid isPermaLink="false">http://www.delusionworld.com/?p=166</guid>
		<description><![CDATA[2.1 Requirements PHP 5.3.3 or newer (but not PHP 6) Modules: mbstring, pdo_sqlite Configuration: magic_quotes_gpc = off Apache Apache modules: mod_rewrite Apache configuration: AllowOverride FileInfo # If you don&#8217;t have running setup for this I would recommend xampp =&#62; http://www.apachefriends.org/en/xampp-windows.html # I&#8217;m for example just had to update to the latest version which comes with [...]]]></description>
			<content:encoded><![CDATA[<p><strong>2.1 Requirements</strong></p>
<ul>
<li>PHP 5.3.3 or newer (but not PHP 6)
<ul>
<li>Modules: mbstring, pdo_sqlite</li>
<li>Configuration: magic_quotes_gpc = off</li>
</ul>
</li>
<li>Apache
<ul>
<li>Apache modules: mod_rewrite</li>
<li>Apache configuration: AllowOverride FileInfo</li>
</ul>
</li>
</ul>
<p># If you don&#8217;t have running setup for this I would recommend xampp =&gt; <a href="http://www.apachefriends.org/en/xampp-windows.html">http://www.apachefriends.org/en/xampp-windows.html</a></p>
<p># I&#8217;m for example just had to update to the latest version which comes with PHP 5.3.5</p>
<p><strong>2.2 Getting TYPO3 Phoenix Files</strong></p>
<p><strong>2.2.1 Git</strong></p>
<p># you need an installed git for this &#8211; I would recommend cygwin (<a href="http://www.cygwin.com/">http://www.cygwin.com/</a>)</p>
<p># an alternative is msysgit (<a href="http://code.google.com/p/msysgit/">http://code.google.com/p/msysgit/</a>)</p>
<p>Go to your htdocs directory (in my case D:/www) and execute the following commands:</p>
<p><code>git clone --recursive git://git.typo3.org/TYPO3v5/Distributions/Base.git TYPO3v5<br />
cd TYPO3v5<br />
git submodule foreach 'git checkout master; git pull'</code></p>
<p><strong>2.2.2 Bash Files (Windows only)</strong></p>
<p>Furthermore you need the two bat files for Windows &#8211; you get them here<br />
<a href="http://forge.typo3.org/issues/show/4426"> http://forge.typo3.org/issues/show/4426</a><br />
or as direct link as<br />
<a href="http://forge.typo3.org/attachments/17838/flow3.bat"> http://forge.typo3.org/attachments/17838/flow3.bat</a><br />
<a href="http://forge.typo3.org/attachments/17839/flow3_dev.bat"> http://forge.typo3.org/attachments/17839/flow3_dev.bat</a></p>
<p>you need to place these two bat files into the TYPO3v5 folder and modify the &#8220;php&#8221; line&#8230; in my case it was<br />
<code>- SET PHP=php.exe<br />
+ SET PHP=D:/Applications/xampp/php/php.exe -c D:/Applications/xampp/php/php.ini</code></p>
<p><strong>2.2.3 Symlinks (Windows only)</strong></p>
<p style="text-align: center;"><a href="http://www.delusionworld.com/wp-content/uploads/2011/06/SymbolicLinks.jpg"><img class="size-medium wp-image-169 aligncenter" title="SymbolicLinks" src="http://www.delusionworld.com/wp-content/uploads/2011/06/SymbolicLinks-300x236.jpg" alt="" width="300" height="236" /></a></p>
<p># in order to use Symlinks with Windows you need the Link Shell Extension (<a href="http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html">http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html</a>)</p>
<p>You need to replace the two textfile flow3 and flow3_dev with real symlinks</p>
<p>flow3     =&gt; Packages/Framework/FLOW3/Scripts/flow3<br />
flow3_dev =&gt; Packages/Framework/FLOW3/Scripts/flow3_dev</p>
<p># I just deleted the two files and created the symbolic links like in the screenshot</p>
<p><strong>2.3. Installation of TYPO3 Phoenix</strong></p>
<p>Finally as you got all the needed files in the right places you can actually install TYPO3 Phoenix.</p>
<p># If at any point you changed some settings but it won&#8217;t take them try clearing the cache with the following command inside the TYPO3v5 folder<br />
<code>flow3_dev flow3:cache:flush</code></p>
<p># for me it looks like this<br />
# D:\www\TYPO3v5&gt;flow3_dev flow3:cache:flush<br />
# Flushed all caches.</p>
<p>1) rename Configuration/Settings.yaml.example to Settings.yaml<br />
# you can adjust your mysql settings here, but we just leave it to the default as we have those settings</p>
<p>2) uncomment the following two lines and adopt the path for the php Binary inside Settings.yaml<br />
<code>#  core:<br />
#    phpBinaryPathAndFilename: 'D:/Applications/xampp/php/php.exe'</code></p>
<p>3) create Database &#8220;phoenix&#8221; for user root<br />
# I used phpmyadmin for this; Doctrine will automatically create the tables for you</p>
<p>4) Exceute the following command inside the TYPO3v5 folder to import the demo page<br />
<code>flow3_dev typo3:site:import &lt; Packages/Sites/PhoenixDemoTypo3Org/Resources/Private/Content/Sites.xml</code></p>
<p>5) Exceute the following command inside the TYPO3v5 folder to create an admin user with the password &#8220;password&#8221;<br />
<code>echo admin#password | flow3_dev typo3:setup:createAdministrator</code></p>
<p># you can just skip this, as on the demo page you can simple create a demo use with one click</p>
<p>6) hit your Browser with http://localhost/TYPO3v5/Web/</p>
<p>As a Note: It is highly recommended to change the document root of the webserver to the Web subfolder of the distribution!<br />
(we just skipped this step as it would need to modify the hosts file create a vhost etc&#8230; for a &#8220;real&#8221; page you should definitely do this)</p>
<p>Another Note: TYPO3v5 currently seems to have some problems with the backend if you install it in a subdirectory AND open it from the root page&#8230; so just open the BE from a subpage then it works just fine <img src='http://www.delusionworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>2.3.1 keep in synch with git changes</strong></p>
<p>Exceute the following commands inside the TYPO3v5 folder<br />
<code>git pull<br />
git submodule foreach 'git checkout master; git pull'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.delusionworld.com/typo3/getting-started-with-typo3v5-phoenix-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fluid translate with link</title>
		<link>http://www.delusionworld.com/typo3/fluid/fluid-translate-with-link/</link>
		<comments>http://www.delusionworld.com/typo3/fluid/fluid-translate-with-link/#comments</comments>
		<pubDate>Fri, 06 May 2011 15:19:37 +0000</pubDate>
		<dc:creator>daKmoR</dc:creator>
				<category><![CDATA[Fluid]]></category>

		<guid isPermaLink="false">http://www.delusionworld.com/?p=158</guid>
		<description><![CDATA[If you want to translate some text with Fluid it&#8217;s easy. Just use the translate view Helper. Sometimes it even better to have some &#8220;markers&#8221; inside the translation so you won&#8217;t loose the context. The following example shows how you can insert a translated link inside a translation (quite sick &#8211; I know&#8230;) &#60;f:translate key=&#34;text&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to translate some text with Fluid it&#8217;s easy. Just use the translate view Helper. Sometimes it even better to have some &#8220;markers&#8221; inside the translation so you won&#8217;t loose the context.<br />
The following example shows how you can insert a translated link inside a translation (quite sick &#8211; I know&#8230;)</p>
<pre class="brush: xml; title: ;">
&lt;f:translate key=&quot;text&quot; htmlEscape=&quot;false&quot; arguments=&quot;{0: '{f:translate(key: \'here\') -&gt; f:link.action(action: \'show\')}'}&quot; /&gt;
//locallang.xml
&lt;label index=&quot;here&quot;&gt;this link&lt;/label&gt;
&lt;label index=&quot;text&quot;&gt;You can use %1$s to register.&lt;/label&gt;
//output will be: You can use &lt;a href=&quot;...&quot;&gt;this link&lt;/a&gt; to register.
</pre>
<p>The following code would also work but it&#8217;s much harder for the translators to understand what each label means.</p>
<pre class="brush: xml; title: ;">
&lt;f:translate key=&quot;text_pre&quot; /&gt;
&lt;f:link.action action=&quot;show&quot; /&gt;&lt;f:translate key=&quot;here&quot; /&gt;&lt;/f:link&gt;
&lt;f:translate key=&quot;text_post&quot; /&gt;
//locallang.xml
&lt;label index=&quot;here&quot;&gt;this link&lt;/label&gt;
&lt;label index=&quot;text_pre&quot;&gt;You can use &lt;/label&gt;
&lt;label index=&quot;text_post&quot;&gt; to register.&lt;/label&gt;
//output will be: You can use &lt;a href=&quot;...&quot;&gt;this link&lt;/a&gt; to register.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.delusionworld.com/typo3/fluid/fluid-translate-with-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>use MooTools in TYPO3 with MPR</title>
		<link>http://www.delusionworld.com/mootools/use-mootools-in-typo3-with-mpr/</link>
		<comments>http://www.delusionworld.com/mootools/use-mootools-in-typo3-with-mpr/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 22:23:54 +0000</pubDate>
		<dc:creator>daKmoR</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[TYPO3]]></category>

		<guid isPermaLink="false">http://www.delusionworld.com/?p=128</guid>
		<description><![CDATA[Finally I can present you the combination of my two favorite Open Source Worlds. Meaning MooTools and TYPO3. MPM comes with a nice TYPO3 Mod where you can look through all the currently installed MooTools Packages with Demos, Doku, Search&#8230; all you need to get it working quite fast So let&#8217;s talk about the reason&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Finally I can present you the combination of my two favorite Open Source Worlds. Meaning <strong>MooTools </strong>and <strong>TYPO3</strong>.</p>
<p>MPM comes with a nice TYPO3 Mod where you can look through all the currently installed MooTools Packages with Demos, Doku, Search&#8230; all you need to get it working quite fast <img src='http://www.delusionworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://www.delusionworld.com/wp-content/uploads/2009/07/MPRinTYPO3.png"><img src="http://www.delusionworld.com/wp-content/uploads/2009/07/MPRinTYPO3-300x189.png" alt="MPRinTYPO3" title="MPRinTYPO3" width="300" height="189" class="alignleft size-medium wp-image-138" style="border: 4px solid #eee;" /></a></p>
<p>So let&#8217;s talk about the <strong>reason</strong>&#8230; I mean I&#8217;m a pretty lazy guy. I don&#8217;t like to do stuff manually if there is any possibility to do it with some sort of automatism. And working on a big TYPO3 site with <strong>multiple MooTools Plugins</strong> can be quite a <strong>pain in the ass</strong>. Every Plugins has it&#8217;s <strong>own MooTools version</strong> and tries to include it. They (usually) don&#8217;t share a common library or don&#8217;t want to require other extensions. I can understand that but it makes my life sometimes harder&#8230; and that&#8217;s something I don&#8217;t like.</p>
<p>So here we come <strong>MPR </strong>as an <strong>TYPO3 extension</strong>. Using MooTools whenever you want to &#8211; no need to think about dependencies or graphics and that stuff.</p>
<div style="background: #eee; font-size: 10px; padding: 5px;">First I wanna say I don&#8217;t want to offend the authors of rgsmoothscroll &#8211; back then it was the best/only way to include MooTools stuff, but now with good use of MPR it could be much easier.</div>
<p>Let&#8217;s see a simple <strong>example</strong>. Maybe you know the extension <strong>rgsmoothscroll </strong>it gives you the smooth scrolling experience for anchor links within one page. It uses the Plugin SmoothScroll (now <strong>Fx.SmoothScroll</strong>) from MooTools More. You can seen an example of it at the <a href="http://mpm.mooforum.net/Mpm.php?mode=demo&#038;file=../mpr/More/Fx/Demos/Fx.SmoothScroll.html">MPR demo page</a> or in your TYPO3 BE Mod (see Screenshot above). Now let&#8217;s take a small look at some of the files in this extension<br />
<em>ext_localconf.php</em> [1 KB] &#8211; register plugin<br />
<em>ext_tables.php</em> [1 KB] &#8211; register statics<br />
<em>res/mootools-1.11.js</em> [21 KB] &#8211; compressed MooTools 1.11<br />
<em>static/constants.txt</em> [1 KB] &#8211; statics for transition, mode, duration, fps<br />
<em>static/setup.txt</em> [1 KB] &#8211; set options from constants and insert plugin on page.91<br />
<em>pi1/class.tx_rgsmoothscroll_pi1.php</em> [4 KB]</p>
<pre class="brush: jscript; title: ;">
// [...] could use EXT:t3mootools to build a costum core
// include necessary js
$header .=  '&lt;script type=&quot;text/javascript&quot; src=&quot;'.$this-&gt;getPath($this-&gt;conf['pathToMootools']).'&quot;&gt;&lt;/script&gt;';

$header .= '&lt;script type=&quot;text/javascript&quot;&gt;
	var Page = {
		initialize: function() {
			new SmoothScroll({
				transition: Fx.Transitions.'.$transition.',
				fps: '.intval($conf['fps']).',
				duration: '.intval($conf['duration']).'
			});
		}
	}
	window.addEvent(&quot;domready&quot;, Page.initialize);&lt;/script&gt;';

// include the js in the header
$GLOBALS['TSFE']-&gt;additionalHeaderData['rgsmoothscroll'] = $header;
</pre>
<p>So let&#8217;s explain this a little. First we need to <strong>get all the need JS</strong> this is a <strong>MooTools 1.11</strong> so if I want to use the <strong>MooTools 1.2</strong> features then I have a little problem as I would need to build my own MooTools version and I would need to check out what&#8217;s needed&#8230; it&#8217;s not real a problem but it&#8217;s rather <strong>cumbersome</strong>. I believe the <strong>extension </strong>itself <strong>should not need to care</strong> about the core or MooTools plugin. It should just say I need Smoothscroll and then use it. If the code get&#8217;s included on page render or loaded dynamically shouldn&#8217;t be it conserns. OK let&#8217;s go on &#8211; then we have the <strong>script block</strong> where it starts the <strong>SmoothScroll with all options</strong>. Again it work but it&#8217;s probably not the best way. I mean why give all options &#8211; they are <strong>already well set in the class</strong> itself and if there is another option added in the class you have to mirror it in your extension. Or let&#8217;s say an default value get&#8217;s changed because the funtion of the class is a little modified you would have to update the extension default also&#8230; <strong>doubling data isn&#8217;t good</strong> because you will always have to update at two places&#8230; So I believe options should only be set if you want it expliciply. By default it should use the class defaults and not it own default.</p>
<p>So now let&#8217;s give the &#8220;same&#8221; functionality but with the use of MPR.<br />
ext_localconf.php [1 KB]</p>
<pre class="brush: php; title: ;">
t3lib_extMgm::addTypoScript($_EXTKEY,'setup','
page.headerData.989 = TEXT
page.headerData.989.value (
	&lt;script type=&quot;text/javascript&quot;&gt;
		$require(\'Core/Utilities/DomReady.js\');
		$require(\'More/Fx/Fx.SmoothScroll.js\');

		window.addEvent(\'domready\', function() {
			new Fx.SmoothScroll();
		});
	&lt;/script&gt;
)
',43);
</pre>
<p>now what&#8217;s that just one file? yeah it&#8217;s all you need and in fact <strong>I wouldn&#8217;t create an extension for that</strong> but just for the sake of explaination. All we do is to add a script block somewhere on the page. In this block we say that we want to <strong>use </strong>the <strong>DomReady </strong>stuff and the <strong>SmoothScroll </strong>stuff. The we just start SmoothScroll with the default options. No need to care about any other js stuff. No need to include any core or any other css <strong>all </strong>the <strong>info</strong> is <strong>inside </strong>the &#8220;<strong>MooTools Packages</strong>&#8221; itself.<br />
One problem we have with this solution is that if you want to change some options for SmoothScroll you will have to rewrite the whole block&#8230; so I guess we need a <strong>different solution </strong>to the &#8220;<strong>map MooTools option into TS</strong>&#8221; problem&#8230; but more on this <strong>will follow</strong>&#8230;.</p>
<p>So now we see that with MPR it&#8217;s pretty simple to use plugins without even using any extension. Just write the script block prepare some html (if needed) and you are done. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.delusionworld.com/mootools/use-mootools-in-typo3-with-mpr/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

