<?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>squirrel_factory &#187; coldfusion</title>
	<atom:link href="http://www.flamingsquirrel.co.uk/blog/category/coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flamingsquirrel.co.uk/blog</link>
	<description>Creative development</description>
	<lastBuildDate>Wed, 15 Apr 2009 09:06:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using cfswith to specify different circuits</title>
		<link>http://www.flamingsquirrel.co.uk/blog/using-cfswith-to-specify-different-circuits/</link>
		<comments>http://www.flamingsquirrel.co.uk/blog/using-cfswith-to-specify-different-circuits/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 10:02:24 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://www.flamingsquirrel.co.uk/blog/using-cfswith-to-specify-different-circuits/</guid>
		<description><![CDATA[I use the following code to use specific imagery or code on different sections of the website.
&#60;cfswitch expression=&#8221;#UCase(myFusebox.OriginalCircuit)#&#8221;&#62;
&#60;cfcase value=&#8221;CIRCUIT NAME 1&#8243;&#62;
&#60;/cfcase&#62;
&#60;cfcase value=&#8221;CIRCUIT NAME 2&#8243;&#62;
&#60;/cfcase&#62;
&#60;cfdefaultcase&#62;If neither circuit 1 or 2&#60;/cfdefaultcase&#62;
&#60;/cfswitch&#62;
If you need to target more than one circuit then separate them with a comma.
&#60;cfcase value=&#8221;CIRCUIT NAME 1, CIRCUIT NAME 2, CIRCUIT NAME 3&#8243;&#62;
Another method that works [...]]]></description>
			<content:encoded><![CDATA[<p>I use the following code to use specific imagery or code on different sections of the website.</p>
<p>&lt;cfswitch expression=&#8221;#UCase(myFusebox.OriginalCircuit)#&#8221;&gt;<br />
&lt;cfcase value=&#8221;CIRCUIT NAME 1&#8243;&gt;<br />
&lt;/cfcase&gt;<br />
&lt;cfcase value=&#8221;CIRCUIT NAME 2&#8243;&gt;<br />
&lt;/cfcase&gt;<br />
&lt;cfdefaultcase&gt;If neither circuit 1 or 2&lt;/cfdefaultcase&gt;<br />
&lt;/cfswitch&gt;</p>
<p>If you need to target more than one circuit then separate them with a comma.</p>
<p>&lt;cfcase value=&#8221;CIRCUIT NAME 1, CIRCUIT NAME 2, CIRCUIT NAME 3&#8243;&gt;</p>
<p>Another method that works really well is:</p>
<p>&lt;cfif ListFindNoCase(&#8220;home&#8221;, myFusebox.originalcircuit) neq 0&gt;<br />
Display this text on the home page circuit<br />
&lt;cfelse&gt;<br />
otherwise display this on every other page<br />
&lt;/cfif&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flamingsquirrel.co.uk/blog/using-cfswith-to-specify-different-circuits/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rotate elements on your page using cfswitch</title>
		<link>http://www.flamingsquirrel.co.uk/blog/cfswitch/</link>
		<comments>http://www.flamingsquirrel.co.uk/blog/cfswitch/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 12:15:26 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://www.flamingsquirrel.co.uk/blog/cfswitch/</guid>
		<description><![CDATA[I have been using cfswitch to rotate banner images and quotes.
&#60;cfswitch expression="#RandRange(1, 4)#"&#62;
 &#60;cfcase value="1"&#62;Option A&#60;/cfcase&#62;
 &#60;cfcase value="2"&#62;Option B&#60;/cfcase&#62;
 &#60;cfcase value="3"&#62;Option C&#60;/cfcase&#62;
 &#60;cfdefaultcase&#62;Option D&#60;/cfdefaultcase&#62;
&#60;/cfswitch&#62;
]]></description>
			<content:encoded><![CDATA[<p>I have been using cfswitch to rotate banner images and quotes.</p>
<pre>&lt;cfswitch expression="#RandRange(1, 4)#"&gt;
 &lt;cfcase value="1"&gt;Option A&lt;/cfcase&gt;
 &lt;cfcase value="2"&gt;Option B&lt;/cfcase&gt;
 &lt;cfcase value="3"&gt;Option C&lt;/cfcase&gt;
 &lt;cfdefaultcase&gt;Option D&lt;/cfdefaultcase&gt;
&lt;/cfswitch&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.flamingsquirrel.co.uk/blog/cfswitch/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>cfloop Example</title>
		<link>http://www.flamingsquirrel.co.uk/blog/cfloop-example/</link>
		<comments>http://www.flamingsquirrel.co.uk/blog/cfloop-example/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 10:14:49 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://www.flamingsquirrel.co.uk/blog/cfloop-example/</guid>
		<description><![CDATA[Use cfloop to change a class on every odd row.
&#60;cfloop from=&#8221;1&#8243; to=&#8221;something&#8221; index=&#8221;idx&#8221;&#62;
&#60;li &#60;cfif idx mod 2&#62;class=&#8221;odd&#8221;&#60;/cfif&#62;&#62;
]]></description>
			<content:encoded><![CDATA[<p>Use cfloop to change a class on every odd row.</p>
<p><em>&lt;cfloop from=&#8221;1&#8243; to=&#8221;something&#8221; index=&#8221;idx&#8221;&gt;<br />
&lt;li &lt;cfif idx mod 2&gt;class=&#8221;odd&#8221;&lt;/cfif&gt;&gt;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flamingsquirrel.co.uk/blog/cfloop-example/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
