<?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: Randomizing Custom Content</title>
			<link>http://www.silverstripe.org/archive/show/168928?start=0#post169002</link>
			<description>&lt;p&gt;Thanks! Much appreciated.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Randomizing Custom Content &lt;a href=&quot;http://www.silverstripe.org/archive/show/168928?start=0#post169002&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/168928?start=0#post169002&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 13 Sep 2008 01:42:41 +1200</pubDate>
			<dc:creator>Enclave</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/168928?start=0#post169002</guid>
		</item>
		
		<item>
			<title>Re: Randomizing Custom Content</title>
			<link>http://www.silverstripe.org/archive/show/168928?start=0#post168979</link>
			<description>&lt;p&gt;In your home page controller:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function randShowcase() {&lt;br /&gt;   $random = rand(1, 4);&lt;br /&gt;   $field = 'Showcase'.$random;&lt;br /&gt;   return $this-&amp;gt;$field;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;so in your template you can call $randShowcase&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Randomizing Custom Content &lt;a href=&quot;http://www.silverstripe.org/archive/show/168928?start=0#post168979&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/168928?start=0#post168979&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 13 Sep 2008 00:15:54 +1200</pubDate>
			<dc:creator>Phalkunz</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/168928?start=0#post168979</guid>
		</item>
		
		<item>
			<title>Randomizing Custom Content</title>
			<link>http://www.silverstripe.org/archive/show/168928#post168928</link>
			<description>&lt;p&gt;Hi Guys&lt;/p&gt;&lt;p&gt;I had a look at some of the posts on random content but nothing really answers what I would like to do.&lt;/p&gt;&lt;p&gt;I created 4 new fields in the db and cms for my HomePage.php page model. Showcase1-4. I have added content to Showcase1-4 and call them as $Showcase1, $Showcase2 in my view. I would like to randomize the actual content being shown ie only one showcase between $Showcase1 and $Showcase4 should be shown at any one time.&lt;/p&gt;&lt;p&gt;Is this possible?&lt;/p&gt;&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Randomizing Custom Content &lt;a href=&quot;http://www.silverstripe.org/archive/show/168928#post168928&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/168928#post168928&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 12 Sep 2008 21:24:28 +1200</pubDate>
			<dc:creator>Enclave</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/168928#post168928</guid>
		</item>
		

	</channel>
</rss>