<?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>Nerdpress.org &#187; Silverstripe</title>
	<atom:link href="http://nerdpress.org/tag/silverstripe/feed/" rel="self" type="application/rss+xml" />
	<link>http://nerdpress.org</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Mon, 30 Jan 2012 14:28:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>extend SilverStripe memberprofile module</title>
		<link>http://nerdpress.org/2012/01/16/extend-silverstripe-memberprofile-module/</link>
		<comments>http://nerdpress.org/2012/01/16/extend-silverstripe-memberprofile-module/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 09:50:42 +0000</pubDate>
		<dc:creator>Ivo Bathke</dc:creator>
				<category><![CDATA[Silverstripe]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=2021</guid>
		<description><![CDATA[Alright, SilverStripe again, still our CMS of choice. Today i&#8217;d like to promote a very helpful module that provides Register and Profile Pages for Members for the Frontend. The memberprofiles module. It comes with a lot of features and customize options for nearly everthing you might need for Frontend Member Handling. Further it is fully [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Alright, <a href="http://www.silverstripe.org/">SilverStripe</a> again, still our CMS of choice.<br />
Today i&#8217;d like to promote a very helpful module that provides Register and Profile Pages for Members for the Frontend.<br />
The <a href="https://github.com/ajshort/silverstripe-memberprofiles">memberprofiles module</a>.<br />
It comes with a lot of features and customize options for nearly everthing you might need for Frontend Member Handling.<br />
Further it is fully extendible to customize it even more.</p>
<p>For a starter tutorial i recommend a very <a href="http://deadlytechnology.com/silverstripe/membership-module/">good post</a> by deadlytechnology.<br />
I would like to describe how you extend it.</p>
<p>First lets install it (with the <em>orderable module</em> dependency):</p>
<p><span id="more-2021"></span></p>
<pre class="brush: bash; title: ; notranslate">
cd my_silverstripe_project
git clone https://github.com/ajshort/silverstripe-orderable.git
mv silverstripe-orderable/ orderable
git clone http://github.com/ajshort/silverstripe-memberprofiles.git
mv silverstripe-memberprofiles/ memberprofiles
</pre>
<p>Run <em>/dev/build?flush=all</em></p>
<p>At this point i like to skip the further setup, for this, go read the post recommended above.</p>
<p>So now lets extend f.e. the Register Page for the Member to provide a custom template for a custom member, say: Customer, and some additional logic.</p>
<p>Just make a new file <em>mysite/code/CustomerRegisterPage.php</em>:</p>
<pre class="brush: php; title: ; notranslate">
class CustomerRegisterPage extends MemberProfilePage {
 ...
}

class CustomerRegisterPage_Controller extends MemberProfilePage_Controller {
 ...
}
</pre>
<p>and a template: <em>themes/mytheme/CustomerRegisterPage.ss</em><br />
In this template you can now add your markup and include the MemberProfileForm via $RegisterForm.<br />
Or make your own Form by overwriting the RegisterForm in the Controller or make a complete new Form.</p>
<p>To register the template with the extended Page we have to overwrite the index method in the controller.</p>
<pre class="brush: php; title: ; notranslate">
public function index() {
        if (isset($_GET['BackURL'])) {
            Session::set('MemberProfile.REDIRECT', $_GET['BackURL']);
        }
        return $this-&gt;renderWith(array('CustomerRegisterPage', 'Page'));
}
</pre>
<p>Now we overwrite the register method to add some additional logic, f.e. to add a custom DataObject from a many_many relation from the customer Member.</p>
<pre class="brush: php; title: ; notranslate">
public function register($data, Form $form) {
        if ($member = $this-&gt;addMember($form)) {
            if (isset($data['OptionsID'])) {
                foreach ($data['OptionsID'] as $key =&gt; $value) {
                    $member-&gt;Options()-&gt;setByIDList($data['OptionsID']);
                }
            }
            return $this-&gt;redirect($this-&gt;Link('afterregistration'));
        } else {
            return $this-&gt;redirectBack();
        }
}
</pre>
<p>Thats it!<br />
Now create a new CustomerRegisterPage in the backend and do as you learned from deadlytechnology.</p>
<p><a href="http://nerdpress.org/wp-content/uploads/2012/01/silverstripe_memberprofiles.png" rel="lightbox[post-2021]" title=""><img class="alignnone size-medium wp-image-2023" src="http://nerdpress.org/wp-content/uploads/2012/01/silverstripe_memberprofiles-300x104.png" alt="Silverstripe Memberprofiles-300x104 in " width="300" height="104" /></a></p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2012/01/16/extend-silverstripe-memberprofile-module/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2012/01/16/extend-silverstripe-memberprofile-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install silverstripe with some modules from GIT</title>
		<link>http://nerdpress.org/2011/09/11/install-silverstripe-with-some-modules-from-git/</link>
		<comments>http://nerdpress.org/2011/09/11/install-silverstripe-with-some-modules-from-git/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 12:53:22 +0000</pubDate>
		<dc:creator>Max Girkens</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Silverstripe]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[installer]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=1634</guid>
		<description><![CDATA[This is a small shell script to set up silverstripe CMS along with some modules i often use (as seen in ivo&#8217;s post) The script has two parameters: - the folder to clone the whole thing into - the branch/tag to checkout afterwards As Silverstripe itself is split up in 3 repositories (the installer/base folder, [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>This is a small shell script to set up <a href="http://www.silverstripe.org/">silverstripe CMS</a><br />
along with some modules i often use (as seen in <a href="http://nerdpress.org/2011/06/06/silverstripe-image-gallery-installation/">ivo&#8217;s post</a>)</p>
<p>The script has two parameters:<br />
- the folder to clone the whole thing into<br />
- the branch/tag to checkout afterwards</p>
<pre class="brush: bash; title: ; notranslate">
# install silverstripe + common modules from github
# usage sh install_silverstripe.sh &lt;folder_name&gt; &lt;tag/branch&gt;
# examples:
# sh install_silverstripe.sh some_folder tags/2.4.5
# sh install_silverstripe.sh some_folder master
</pre>
<p><span id="more-1634"></span></p>
<p>As Silverstripe itself is split up in 3 repositories<br />
(the installer/base folder, the cms and the sapphire framework itself)<br />
we fetch the base folder first:</p>
<pre class="brush: bash; title: ; notranslate">
#set up project base folder
git clone git@github.com:silverstripe/silverstripe-installer.git $1
cd $1
git checkout $2
</pre>
<p>Get the cms</p>
<pre class="brush: bash; title: ; notranslate">
#setup cms
git clone git@github.com:silverstripe/silverstripe-cms.git cms
cd cms
git checkout $2
cd ..
</pre>
<p>Get sapphire &#8230;</p>
<pre class="brush: bash; title: ; notranslate">
#setup framework
git clone git@github.com:silverstripe/sapphire.git sapphire
cd sapphire
git checkout $2
cd ..
</pre>
<p>Setup some permissions for the web installer.</p>
<pre class="brush: bash; title: ; notranslate">
#set permissions for install
chmod 0777 assets assets/*
chmod 0666 .htaccess mysite/_config.php assets/*/*
</pre>
<p>Fetch the blackcandy theme from a fourth repository.<br />
Backup the tutorial theme in case we need it.</p>
<pre class="brush: bash; title: ; notranslate">
#install blackcandy theme
mv themes/tutorial ./
rm -rf themes
git clone https://github.com/silverstripe-themes/silverstripe-blackcandy.git themes
cd themes
git checkout $2
cd ..
mv tutorial themes
</pre>
<p>Install some modules</p>
<pre class="brush: bash; title: ; notranslate">
# install common modules
git clone https://github.com/unclecheese/Uploadify.git uploadify
git clone https://github.com/unclecheese/DataObjectManager.git dataobject_manager
git clone https://github.com/silverstripe/silverstripe-userforms.git userforms
</pre>
<p><strong>iIput the script <a href="https://gist.github.com/1209496">on github</a></strong><br />
&#8230;in case you might wanna use it or add something i&#8217;ve missed.</p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2011/09/11/install-silverstripe-with-some-modules-from-git/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2011/09/11/install-silverstripe-with-some-modules-from-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SilverStripe Image Gallery installation</title>
		<link>http://nerdpress.org/2011/06/06/silverstripe-image-gallery-installation/</link>
		<comments>http://nerdpress.org/2011/06/06/silverstripe-image-gallery-installation/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 10:33:01 +0000</pubDate>
		<dc:creator>Ivo Bathke</dc:creator>
				<category><![CDATA[Silverstripe]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=1511</guid>
		<description><![CDATA[Theres a lot of old, deprecated and now wrong installation guides for the SilverStripe Image Gallery Module on the web that will lead you to where you dont want to. Dont trust them! Unclecheese made some changes to the module dependencies and also moved to git, some time ago. He now uses the new Uploadify [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Theres a lot of old, deprecated and now wrong installation guides for the SilverStripe Image Gallery Module on the web that will lead you to where you dont want to. Dont trust them!</p>
<p><a href="http://www.leftandmain.com/">Unclecheese</a> made some changes to the module dependencies and also moved to git, some time ago. He now uses the new <a href="https://github.com/unclecheese/Uploadify">Uploadify</a> module instead of the <a href="http://silverstripe.org/swfuploadfield-module/">SwfFileUpload</a> module.</p>
<p>So a working installation of the image-gallery for git-people is to:</p>
<p><span id="more-1511"></span></p>
<p>install silverstripe 2.4.* (latest)</p>
<p>get the modules via git:</p>
<pre class="brush: bash; title: ; notranslate">
cd mysproject
git clone https://github.com/unclecheese/ImageGallery.git image_gallery
git clone https://github.com/unclecheese/Uploadify.git uploadify
git clone https://github.com/unclecheese/DataObjectManager.git dataobject_manager
</pre>
<p>login as admin<br />
run:</p>
<p>http://project.local/dev/build?flush=1</p>
<p>Done!</p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2011/06/06/silverstripe-image-gallery-installation/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2011/06/06/silverstripe-image-gallery-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SilverStripe 3 UI Vorschau</title>
		<link>http://nerdpress.org/2011/03/08/silverstripe-3-ui-vorschau/</link>
		<comments>http://nerdpress.org/2011/03/08/silverstripe-3-ui-vorschau/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 09:58:24 +0000</pubDate>
		<dc:creator>Ivo Bathke</dc:creator>
				<category><![CDATA[Silverstripe]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=1408</guid>
		<description><![CDATA[Wie im SilverStripe Blog gelesen kann man die Entwicklung der neuen SilverStripe 3 UI auf github verfolgen. Außerdem gibts hier ein Interview mit dem Hauptdesigner. &#8230; und wenn man möchte kann man in der Google Group seine Vorschläge loswerden. Ganz interessante Einblicke, wie ich finde.]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Wie im SilverStripe <a href="http://silverstripe.org/picturing-what-3-0-will-look-like/">Blog</a> gelesen kann man die Entwicklung der neuen SilverStripe 3 UI auf <a href="https://github.com/silverstripe/silverstripe-design">github</a> verfolgen.</p>
<p>Außerdem gibts <a href="http://www.ssbits.com/blog/2011/an-interview-with-felipe-skroski-designing-silverstripe-3-ui-development-and-the-future-of-content-management/">hier</a> ein Interview mit dem Hauptdesigner.</p>
<p>&#8230; und wenn man möchte kann man in der <a href="http://groups.google.com/group/silverstripe-dev/">Google Group</a> seine Vorschläge loswerden.</p>
<p>Ganz interessante Einblicke, wie ich finde.</p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2011/03/08/silverstripe-3-ui-vorschau/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2011/03/08/silverstripe-3-ui-vorschau/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>i18n-fieldtypes module für Silverstripe</title>
		<link>http://nerdpress.org/2011/02/28/i18n-fieldtypes-module-fur-silverstripe/</link>
		<comments>http://nerdpress.org/2011/02/28/i18n-fieldtypes-module-fur-silverstripe/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 14:15:19 +0000</pubDate>
		<dc:creator>Ivo Bathke</dc:creator>
				<category><![CDATA[Silverstripe]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[sapphire]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=1380</guid>
		<description><![CDATA[Heute möchte ich mal ein Silverstripe Modul von mir vorstellen: silverstripe-i18n-fieldtypes Es ist eigentlich eher ein Work-around für fehlenden oder ungenügenden I18n Support in sapphire. Eigentlich sind wir hier alle Fans von Silverstripe, da es für Coder einfach anzupassen ist, aber speziell beim Umgang mit Datums und Currency Typen in Silverstripe merkt man, dass da [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Heute möchte ich mal ein Silverstripe Modul von mir vorstellen: <a href="http://code.google.com/p/silverstripe-i18n-fieldtypes/">silverstripe-i18n-fieldtypes</a><br />
Es ist eigentlich eher ein Work-around für fehlenden oder ungenügenden I18n Support in sapphire.<br />
Eigentlich sind wir hier alle Fans von Silverstripe, da es für Coder einfach anzupassen ist, aber<br />
speziell beim Umgang mit Datums und Currency Typen in Silverstripe merkt man, dass da noch was fehlt.<br />
Es kann gut sein, dass die nächste Version von sapphire das Modul obsolet machen -ich hoffe es sogar-<br />
aber bis dahin, soll dieses Modul helfen.</p>
<p>Für Datum Werte mit deutscher Formatierung muss man zB überall in den templates folgendes machen</p>
<pre class="brush: php; title: ; notranslate">
$Datetime.FormatI18N(%e. %B %G).
</pre>
<p>Es reicht nicht einfach sowas in der config anzugeben:</p>
<pre class="brush: php; title: ; notranslate">
i18n::set_locale('de_DE');
</pre>
<p>Und das ist schon ganz schön nervig.<br />
Aber hier hilft dann das Modul.</p>
<p>Sapphire kennt verschiedene Wege zur Formatierung, die in Zukunft wahrscheinlich noch vereinheitlicht werden.<br />
Im Groben sind das:</p>
<p><span id="more-1380"></span></p>
<ul>
<li>- PHP setlocale for LC_TIME</li>
<li>- Zend Date</li>
<li>- sapphire Money Class based on Zend Currency</li>
<li>- sapphire deprecated Currency class for compatibility</li>
</ul>
<p><br/><br />
Da muss man dann schauen was für einen passt, das Modul unterstützt auf jeden Fall alle diese.</p>
<p>Installiert wird es, wie alle Silverstripe Module, einfach in die Root-ebene des Projects kopieren und fertig.</p>
<p>In der <em>mysite/_config.php</em> muss man dann einfach die jeweilige Datums oder Currency Klasse<br />
mit der Subklasse des Moduls ersetzen und schon hat man den vollen Zugriff auf zB die <a href="http://framework.zend.com/manual/en/zend.date.html">ZEND Datums Klasse</a></p>
<pre class="brush: php; title: ; notranslate">
i18n::set_default_locale('de_DE');
Object::useCustomClass('SS_Datetime','ZendDate',true);
</pre>
<p>Will man kein Zend benutzen, kann der PHP Weg über die locale gegangen werden.<br />
Die Formatierungen finden sich im lang file des Moduls, können aber auch explizit angegeben werden.</p>
<p>Alle Möglichkeiten sind in der <em>_config.php</em> erklärt:</p>
<pre class="brush: php; title: ; notranslate">
//Date Formating -the PHP way-
//Object::useCustomClass('SS_Datetime','I18nDatetime', true);
//values then come from the lang file
//if you want to use custom formating then set also:
//I18nDatetime::setFormatNice('%e. %B %G');

//Date Formating -the Zend way-
//Object::useCustomClass('SS_Datetime','ZendDate', true);
//values then come from the lang file
//if you want to use custom formating then set also:
//ZendDate::setFormatNice('j. F Y, G:i');

//Money Formating -the SS Currency Way-
//Object::useCustomClass('Currency','I18nCurrency', true)
//values then come from the lang file
//if you want to use custom formating then set also:
//I18nCurrency::setDecimalDelimiter(',');
//I18nCurrency::setThousandDelimiter('.'); 

//Money Formating -the Money / Zend way -
//Object::useCustomClass('Money','CustomMoney', true);
//@see http://framework.zend.com/manual/en/zend.currency.options.html
//CustomMoney::setOptions(array('display' =&gt; Zend_Currency::USE_SHORTNAME,
//                                                        'position' =&gt; Zend_Currency::RIGHT));
</pre>
<p>Auf meiner TODO stehen dann noch weitere Sprachfiles, sowie ein paar UnitTests.<br />
Probierts mal aus und über feedback freut man sich natürlich.</p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2011/02/28/i18n-fieldtypes-module-fur-silverstripe/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2011/02/28/i18n-fieldtypes-module-fur-silverstripe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverstripe 2.4 release!</title>
		<link>http://nerdpress.org/2010/05/05/silverstripe-2-4-release/</link>
		<comments>http://nerdpress.org/2010/05/05/silverstripe-2-4-release/#comments</comments>
		<pubDate>Wed, 05 May 2010 16:11:31 +0000</pubDate>
		<dc:creator>Max Girkens</dc:creator>
				<category><![CDATA[Silverstripe]]></category>
		<category><![CDATA[cms]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=978</guid>
		<description><![CDATA[Juhu: http://silverstripe.org/silverstripe-2-4-release-a-significant-step-forward/]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Juhu:<br />
<a href="http://silverstripe.org/silverstripe-2-4-release-a-significant-step-forward/">http://silverstripe.org/silverstripe-2-4-release-a-significant-step-forward/</a></p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2010/05/05/silverstripe-2-4-release/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2010/05/05/silverstripe-2-4-release/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>generierte Reflexions-Effekte mit Silverstripe bzw jQuery</title>
		<link>http://nerdpress.org/2010/04/29/generierte-reflexions-effekte-silverstripe-jquery/</link>
		<comments>http://nerdpress.org/2010/04/29/generierte-reflexions-effekte-silverstripe-jquery/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 10:01:11 +0000</pubDate>
		<dc:creator>Max Girkens</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Silverstripe]]></category>
		<category><![CDATA[Frontend]]></category>
		<category><![CDATA[Gfx]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[mirror-fx]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=946</guid>
		<description><![CDATA[Musste neulich so einen &#8220;Web 2.0 Mirror FX&#8221; haben und bin über 2 interessante Lösungen gestolpert: Silverstripe &#038; GD: http://www.ssbits.com/web-2-0-mirrored-images/ jQuery &#038; Canvas: http://www.digitalia.be/software/reflectionjs-for-jquery#demo weitergehende Erklärungen dazu spare ich mir jetzt mal, sind ja beide gut dokumentiert :)]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Musste neulich so einen &#8220;<a href="http://www.androidtapp.com/wp-content/uploads/2009/11/Camera-Zoom-FX-Mirror-Effects.jpg">Web 2.0 Mirror FX</a>&#8221; haben und bin über 2 interessante Lösungen gestolpert:</p>
<p>Silverstripe &#038; GD:<br />
<a href="http://www.ssbits.com/web-2-0-mirrored-images/">http://www.ssbits.com/web-2-0-mirrored-images/</a></p>
<p>jQuery &#038; Canvas:<br />
<a href="http://www.digitalia.be/software/reflectionjs-for-jquery#demo">http://www.digitalia.be/software/reflectionjs-for-jquery#demo</a></p>
<p>weitergehende Erklärungen dazu spare ich mir jetzt mal, sind ja beide gut dokumentiert :)</p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2010/04/29/generierte-reflexions-effekte-silverstripe-jquery/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2010/04/29/generierte-reflexions-effekte-silverstripe-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Silverstripe lokalisierte Dates</title>
		<link>http://nerdpress.org/2010/04/21/silverstripe-lokalisierte-dates/</link>
		<comments>http://nerdpress.org/2010/04/21/silverstripe-lokalisierte-dates/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 08:17:11 +0000</pubDate>
		<dc:creator>Ivo Bathke</dc:creator>
				<category><![CDATA[Silverstripe]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=935</guid>
		<description><![CDATA[&#8230; und wieder Silverstripe. Lokalisierte Dates macht Silverstripe nicht out-of-the-box, man muss da ein bißchen was umbauen: In der _config.php Die Silverstripe (2.3.6) Lokalisierung alleine reicht da nicht. Ich nehme an das wird in 2.4 sich ändern. Um im Frontend dann sowas zu bekommen : 12 März 2010 benutzt man statt lieber]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>&#8230; und wieder Silverstripe.</p>
<p>Lokalisierte Dates macht Silverstripe nicht out-of-the-box, man muss da ein bißchen was umbauen:</p>
<p>In der _config.php</p>
<pre class="brush: php; title: ; notranslate">
i18n::set_locale('de_DE');
setlocale (LC_ALL, 'de_DE@euro', 'de_DE.UTF-8', 'de_DE', 'de', 'ge');
</pre>
<p>Die Silverstripe (2.3.6) Lokalisierung alleine reicht da nicht.<br />
Ich nehme an das wird in 2.4 sich ändern.</p>
<p>Um im Frontend dann sowas zu bekommen : <em>12 März 2010</em><br />
<span id="more-935"></span></p>
<p>benutzt man statt</p>
<pre class="brush: php; title: ; notranslate">
$Created.Long
</pre>
<p>lieber</p>
<pre class="brush: php; title: ; notranslate">
$Created.FormatI18N(%d %B %G)
</pre>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2010/04/21/silverstripe-lokalisierte-dates/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2010/04/21/silverstripe-lokalisierte-dates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Silverstripe &#8220;auto&#8221; flush cache</title>
		<link>http://nerdpress.org/2010/04/15/silverstripe-auto-flush-cache/</link>
		<comments>http://nerdpress.org/2010/04/15/silverstripe-auto-flush-cache/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 08:20:57 +0000</pubDate>
		<dc:creator>Max Girkens</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Silverstripe]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=918</guid>
		<description><![CDATA[thereifixedit: Wenn man bei einem Silverstripe Projekt häufige Änderungen an verschachtelten Templates hat, kommt man, soweit ich weiss, nicht umhin an den Seitenaufruf anzuhängen um die Änderungen sichtbar zu machen. Weil ich gerade sehr häufig in der Situation bin, also jede Minute, hatte ich gehofft man könnte den Cache irgendwo abschalten. In der Richtung habe [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p><a href="http://thereifixedit.com">thereifixedit</a>:<br />
Wenn man bei einem <a href="http://silverstripe.org/">Silverstripe</a> Projekt häufige Änderungen an verschachtelten Templates hat,<br />
kommt man, soweit ich weiss, nicht umhin </p>
<pre class="brush: php; title: ; notranslate">
?flush=1
oder
?flush=all
</pre>
<p>an den Seitenaufruf anzuhängen um die Änderungen sichtbar zu machen.<span id="more-918"></span></p>
<p>Weil ich gerade sehr häufig in der Situation bin, also jede Minute, hatte ich gehofft man könnte den Cache irgendwo abschalten.<br />
In der Richtung habe ich aber nichts gefunden. </p>
<p>Es lohnt aber ggf. <strong>lokal</strong> den Parameter einfach immer zu setzen.<br />
Allzu langsam wird das ganze dadurch auch nicht.</p>
<p>also in der _config.php </p>
<pre class="brush: php; title: ; notranslate">
if ( strpos( $_SERVER[&quot;REQUEST_URI&quot;], 'admin' ) === false ) {
  $_GET[&quot;flush&quot;] = 1;
}
</pre>
<p>:D</p>
<p>ziemliche Krücke, aber hilft erstmal weiter.</p>
<p>Gibt es einen eleganteren Weg, den ich auf die Schnelle nicht gefunden habe?<br />
Oder liegt das nur an meinem Template Design dass ich das dauernd brauche? :)</p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2010/04/15/silverstripe-auto-flush-cache/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2010/04/15/silverstripe-auto-flush-cache/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Silverstripe und GeoIp</title>
		<link>http://nerdpress.org/2010/03/21/silverstripe-und-geoip/</link>
		<comments>http://nerdpress.org/2010/03/21/silverstripe-und-geoip/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 13:02:27 +0000</pubDate>
		<dc:creator>Ivo Bathke</dc:creator>
				<category><![CDATA[Silverstripe]]></category>
		<category><![CDATA[GeoIp]]></category>

		<guid isPermaLink="false">http://nerdpress.org/?p=853</guid>
		<description><![CDATA[Silverstripe bzw. das drunterliegende Framework Sapphire hat ja eine GeoIp Komponente, die in dem CMS und auch in einigen Modulen benutzt wird, zB um Länder in Formularen direkt einzustellen. Was allerdings nirgendwo steht ist, dass dafür das Programm geoiplookup benötigt wird. Sapphire ruft das Programm dann über exec auf. Ist das nicht installiert, stehen im [...]]]></description>
			<content:encoded><![CDATA[
<!-- google_ad_section_start -->
<p>Silverstripe bzw. das drunterliegende Framework Sapphire hat ja eine GeoIp Komponente, die in dem CMS und auch in einigen Modulen benutzt wird, zB um Länder in Formularen direkt einzustellen.</p>
<p>Was allerdings nirgendwo steht ist, dass dafür das Programm <strong>geoiplookup</strong> benötigt wird.<br />
<span id="more-853"></span><br />
Sapphire ruft das Programm dann über <em>exec</em> auf.</p>
<p>Ist das nicht installiert, stehen im Apache error.log solche Meldungen:</p>
<pre class="brush: bash; title: ; notranslate">
sh: geoiplookup: not found
</pre>
<p>&#8230; und zwar nur da. Im Code wird kein Fehler angezeigt.</p>
<p>Also schnell installieren</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install libgeoip1 geoip-bin
</pre>
<p>und alles klappt.</p>
<p>Wie das dann allerdings auf Windows aussieht kann ich nicht sagen ;)</p>
<div class="plus-one-wrap"><g:plusone href="http://nerdpress.org/2010/03/21/silverstripe-und-geoip/"></g:plusone></div>
<!-- google_ad_section_end -->
]]></content:encoded>
			<wfw:commentRss>http://nerdpress.org/2010/03/21/silverstripe-und-geoip/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

