<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: CurrencyField Format</title>
			<link>http://www.silverstripe.org/archive/show/87440?start=0#post100430</link>
			<description>&lt;p&gt;localization of dates/currencies etc is not implemented yet for silverstripe,&lt;br /&gt;but its pretty easy to subclass e.g. CurrencyField to return different formats for Nice() etc&lt;/p&gt;&lt;p&gt;for validation, we're currently migrating to the jquery validate plugin, which should provide more solid (and already localized) clientside support.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CurrencyField Format &lt;a href=&quot;http://www.silverstripe.org/archive/show/87440?start=0#post100430&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/87440?start=0#post100430&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 17 Jun 2008 23:41:14 +1200</pubDate>
			<dc:creator>Ingo</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/87440?start=0#post100430</guid>
		</item>
		
		<item>
			<title>Re: CurrencyField Format</title>
			<link>http://www.silverstripe.org/archive/show/87440?start=0#post91986</link>
			<description>&lt;p&gt;hmm makes it interesting to have 2 different symbols on the same page. Passing it as an argument with a default might be the best / easiest way!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CurrencyField Format &lt;a href=&quot;http://www.silverstripe.org/archive/show/87440?start=0#post91986&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/87440?start=0#post91986&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 13 Jun 2008 16:33:13 +1200</pubDate>
			<dc:creator>willr</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/87440?start=0#post91986</guid>
		</item>
		
		<item>
			<title>Re: CurrencyField Format</title>
			<link>http://www.silverstripe.org/archive/show/87440?start=0#post91818</link>
			<description>&lt;p&gt;Thanks Willr,&lt;/p&gt;&lt;p&gt;I'll look into that but I'm outta time on this project now.&lt;/p&gt;&lt;p&gt;I will look at the patch submission process, as ideally, I think this currency symbol is best tied to each field.&lt;/p&gt;&lt;p&gt;Do you see a problem with passing the symbol as an argument? I'm a bit fresh in terms of what can be passed. I know that you can't pass variables as arguments.&lt;/p&gt;&lt;p&gt;e.g.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function Nice($symbol = '$') {&lt;br /&gt;      return $symbol . number_format($this-&amp;gt;value, 2);&lt;br /&gt;   }&lt;/p&gt;&lt;p&gt;   function Whole($symbol = '$') {&lt;br /&gt;      return $symbol . number_format($this-&amp;gt;value, 0);&lt;br /&gt;   }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CurrencyField Format &lt;a href=&quot;http://www.silverstripe.org/archive/show/87440?start=0#post91818&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/87440?start=0#post91818&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 13 Jun 2008 14:10:49 +1200</pubDate>
			<dc:creator>Double-A-Ron</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/87440?start=0#post91818</guid>
		</item>
		
		<item>
			<title>Re: CurrencyField Format</title>
			<link>http://www.silverstripe.org/archive/show/87440?start=0#post91778</link>
			<description>&lt;p&gt;Line 16 - 23 of Currency.php&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function Nice() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return '$' . number_format($this-&amp;gt;value, 2);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function Whole() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return '$' . number_format($this-&amp;gt;value, 0);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;Try changing the $. I would assume this is where it is coming from!. You might like to abstract this out and submit is as a patch. It shouldnt be hardcoded in the core I would have thought&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CurrencyField Format &lt;a href=&quot;http://www.silverstripe.org/archive/show/87440?start=0#post91778&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/87440?start=0#post91778&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 13 Jun 2008 13:35:42 +1200</pubDate>
			<dc:creator>willr</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/87440?start=0#post91778</guid>
		</item>
		
		<item>
			<title>Re: CurrencyField Format</title>
			<link>http://www.silverstripe.org/archive/show/87440?start=0#post91496</link>
			<description>&lt;p&gt;Well, It either isn't possible or we're simply not going to get an answer (probably both). I've found nada in my digging.&lt;/p&gt;&lt;p&gt;I will be using a decimal field and hardcoding the currency format into it. (And definately not trusting silverstripe to take care of calculations - I will be POST-ing to standalone PHP pages for that.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CurrencyField Format &lt;a href=&quot;http://www.silverstripe.org/archive/show/87440?start=0#post91496&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/87440?start=0#post91496&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 13 Jun 2008 10:55:54 +1200</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/87440?start=0#post91496</guid>
		</item>
		
		<item>
			<title>Re: CurrencyField Format</title>
			<link>http://www.silverstripe.org/archive/show/87440?start=0#post89322</link>
			<description>&lt;p&gt;subscribe...&lt;/p&gt;&lt;p&gt;i wasn't even able to get the $ sign away globally... fe with â‚¬&lt;br /&gt;to get it on a 'format-field'-level would make things more right too..&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CurrencyField Format &lt;a href=&quot;http://www.silverstripe.org/archive/show/87440?start=0#post89322&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/87440?start=0#post89322&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jun 2008 20:23:06 +1200</pubDate>
			<dc:creator>zyko</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/87440?start=0#post89322</guid>
		</item>
		
		<item>
			<title>CurrencyField Format</title>
			<link>http://www.silverstripe.org/archive/show/87440#post87440</link>
			<description>&lt;p&gt;Hi there,&lt;br /&gt;I'm doing a custom sales solution and we are selling products that are available in 4 Currencies, US, UK, AUS and NZ&lt;br /&gt;I have added four CurrencyFields to the cms, however I notice that after saving, the default behavior is to put '$' symbols in the field.&lt;br /&gt;Am I able to change the currency format on a per-field basis?&lt;br /&gt;Also, what's the deal with validation? I am able to enter 'ddddfd' into any of these fields without an error being thrown.&lt;br /&gt;Cheers&lt;br /&gt;Aaron&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: CurrencyField Format &lt;a href=&quot;http://www.silverstripe.org/archive/show/87440#post87440&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/87440#post87440&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 08 Jun 2008 21:56:48 +1200</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/87440#post87440</guid>
		</item>
		

	</channel>
</rss>