<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for fuzz10</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#usercomments-f64f6614" type="application/json"/><link>http://disqus.com/people/fuzz10/</link><description></description><language>en</language><lastBuildDate>Mon, 01 Dec 2008 09:36:25 -0000</lastBuildDate><item><title>Re: upgrading | Documentation Wiki</title><link>http://doc.silverstripe.com/doku.php?id=upgrading#comment-4080754</link><description>When upgrading to 2.3 : &lt;br&gt;&lt;br&gt;- The class Email_Template() has been removed ,  use Email() instead... If you do not change this , your site will break when firing off e-mails.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fuzz10</dc:creator><pubDate>Mon, 01 Dec 2008 09:36:25 -0000</pubDate></item><item><title>Re: multilingualcontent [SilverStripe Documentation]</title><link>http://doc.silverstripe.com/doku.php?id=multilingualcontent#comment-1018453</link><description>This comment is In reply to &lt;a href="http://www.silverstripe.com/showcase-forum/flat/59870?showPost=124524#post109918" rel="nofollow"&gt;http://www.silverstripe.com/showcase-forum/flat...&lt;/a&gt; &lt;br&gt;&lt;br&gt;While the multi-language features of Silverstripe are still pretty much Work In Progress I used the following work-around to create a multiple language site which contained custom fields.  There is probably a cleaner way , and this only works with simple sites and not too many languages...but hey... it works.&lt;br&gt;&lt;br&gt;1&amp;gt; Duplicate the fields you want translated for every language (for example , in my case , for the $Title I created DE_Title and NE_Title)&lt;br&gt;&lt;br&gt;2&amp;gt; Add these fields to the Silverstripe backend with AddFieldToTab so users can edit them.&lt;br&gt;&lt;br&gt;4&amp;gt; Add language-switching links to your template , in my case , I add a $GET parameter  named lang to the URL .  e.g. &lt;a href="http://www.mysite.com?lang=EN" rel="nofollow"&gt;www.mysite.com?lang=EN&lt;/a&gt;&lt;br&gt;&lt;br&gt;3&amp;gt; In the INIT of your base page class controller (usually Page_Controller) , check for the language $GET param and if it exists , set the current language in the session..  &lt;br&gt;&lt;br&gt;E.g. : &lt;br&gt;		if(!empty($_REQUEST['lang'])) {&lt;br&gt;				Session::set('lang', $_REQUEST['lang']);&lt;br&gt;		}&lt;br&gt;	&lt;br&gt;Now you know what the current language should be.	&lt;br&gt;&lt;br&gt;4&amp;gt; In your base Page Class, create custom getters for the content-fields so they return the right value for the current language  Check for the existence of the Lang variable in the session to figure out the current language.  My default language is Dutch.... &lt;br&gt;&lt;br&gt;(e.g. 	&lt;br&gt;	function Title() { &lt;br&gt;		if(Session::get('lang') == "EN"){		&lt;br&gt;			return $this-&amp;gt;EN_Title;&lt;br&gt;			&lt;br&gt;		} elseif(Session::get('lang') == "DE") {&lt;br&gt;			return $this-&amp;gt;DE_Title;&lt;br&gt;			&lt;br&gt;		} else {&lt;br&gt;			return $this-&amp;gt;Title;&lt;br&gt;			&lt;br&gt;		}&lt;br&gt;	}&lt;br&gt;&lt;br&gt;5&amp;gt; Create a function to obtain the current language (we use these in templates)&lt;br&gt;		&lt;br&gt;	function current_language() {&lt;br&gt;		return Session::get('lang');&lt;br&gt;	}&lt;br&gt;&lt;br&gt;6&amp;gt; To make the URL's somewhat Multi-lingual as well ,  I add the current language and the translated page title to the URL .... So in my case ,  the default URL  &lt;a href="http://www.mysite.com/over_ons" rel="nofollow"&gt;www.mysite.com/over_ons&lt;/a&gt; would become &lt;a href="http://www.mysite.com/over_ons/DE/uber_uns" rel="nofollow"&gt;www.mysite.com/over_ons/DE/uber_uns&lt;/a&gt; for the german version.&lt;br&gt;&lt;br&gt;To do this, just combine the needed variables in your templates , e.g.. &lt;br&gt;&lt;br&gt;href="$Link{$current_language}/{$URLTitle}"  Where $URLTitle is the translated and URL-safe page-title....&lt;br&gt;&lt;br&gt;If you do this, make sure to catch the method call SS does when it finds an action parameter in the URL ...  (the "DE" in &lt;a href="http://www.mysite.com/over_ons/DE/uber_uns" rel="nofollow"&gt;www.mysite.com/over_ons/DE/uber_uns&lt;/a&gt;)...   &lt;br&gt;&lt;br&gt;So in my page_controller class i Created these dummy methods to reroute the request back to the original page: &lt;br&gt;&lt;br&gt;	// Dummy methods to catch the language-vars in URL&lt;br&gt;	function DE() {&lt;br&gt;		return $this-&amp;gt;renderWith($this-&amp;gt;getViewer());&lt;br&gt;	}&lt;br&gt;	&lt;br&gt;	function EN() {&lt;br&gt;		return $this-&amp;gt;renderWith($this-&amp;gt;getViewer());&lt;br&gt;	}&lt;br&gt;	&lt;br&gt;	function NL() {&lt;br&gt;		return $this-&amp;gt;renderWith($this-&amp;gt;getViewer());&lt;br&gt;	}&lt;br&gt;	&lt;br&gt;&lt;br&gt;I whipped up this text in a hurry,  so let me know if I forgot something or screwed something up.... ;)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fuzz10</dc:creator><pubDate>Mon, 28 Jul 2008 10:19:41 -0000</pubDate></item><item><title>Re: newslettersytemhelp | Documentation Wiki</title><link>http://doc.silverstripe.com/doku.php?id=newslettersytemhelp#comment-645111</link><description>Also,  if you would like to add custom fields to the mailinglist-members. Check out  the membertablefield.&lt;br&gt;&lt;a href="http://doc.silverstripe.com/doku.php?id=membertablefield&amp;s=membertablefield%2520addmembershipfields%2520array" rel="nofollow"&gt;http://doc.silverstripe.com/doku.php?id=membert...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fuzz10</dc:creator><pubDate>Thu, 12 Jun 2008 14:14:36 -0000</pubDate></item><item><title>Re: css [SilverStripe Documentation]</title><link>http://doc.silverstripe.com/doku.php?id=css#comment-644747</link><description>Nicolaas created a great page to test your typography Style Sheet. &lt;br&gt;&lt;br&gt;Check out : &lt;br&gt;&lt;a href="http://doc.silverstripe.com/doku.php?id=recipes:typography_overview" rel="nofollow"&gt;http://doc.silverstripe.com/doku.php?id=recipes...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fuzz10</dc:creator><pubDate>Thu, 12 Jun 2008 13:22:53 -0000</pubDate></item><item><title>Re: newslettersytemhelp | Documentation Wiki</title><link>http://doc.silverstripe.com/doku.php?id=newslettersytemhelp#comment-644288</link><description>This tip might prevent frustration :&lt;br&gt;Excel 2007 seems to be depending on the regional settings when saving a CSV file.  In my case , it always produced a semi-colon delimited file (even if I selected "save as comma separated values").  Anyway, I had to do a manual search replace on the data to replace all ; with , before Silverstripe would import it.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fuzz10</dc:creator><pubDate>Thu, 12 Jun 2008 11:42:44 -0000</pubDate></item><item><title>Re: statistics | Documentation Wiki</title><link>http://doc.silverstripe.com/doku.php?id=statistics#comment-455882</link><description>To switch off statistics-gathering do the following :  &lt;br&gt;&lt;br&gt;find :&lt;br&gt;Statistics::collect(); &lt;br&gt;&lt;br&gt;in sapphire/core/control/ContentController.php (depending on your version , somehwere around line 76)  , and comment it out.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fuzz10</dc:creator><pubDate>Tue, 13 May 2008 14:30:00 -0000</pubDate></item><item><title>Re: modules:gallery | Documentation Wiki</title><link>http://doc.silverstripe.com/doku.php?id=modules:gallery#comment-455860</link><description>Also, if you are having troubles getting the gallery to run , try switching off the SS_Navigator bar.  It seems it is conflicting with the gallery java-scripts.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fuzz10</dc:creator><pubDate>Tue, 13 May 2008 14:23:58 -0000</pubDate></item></channel></rss>