<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>newschuyl - FarCry</title>
			<link>http://www.mischefamily.com/nathan/index.cfm</link>
			<description>a blog by nathan mische</description>
			<language>en-us</language>
			<pubDate>Mon, 06 Sep 2010 20:03:09-0400</pubDate>
			<lastBuildDate>Sun, 24 Sep 2006 12:08:00-0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>nmische@gmail.com</managingEditor>
			<webMaster>nmische@gmail.com</webMaster>
			
			<item>
				<title>Another note on the FarCry 3.0.2 RC</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2006/9/24/Another-note-on-the-FarCry-302-RC</link>
				<description>
				
				Another quick note on installing the FarCry 3.0.2 RC package. Many of the rule component tags in farcry_core\packages\rules have hint attributes which span multiple lines. For example ruleNews.cfc looks like this:

&lt;code&gt;

&lt;cfcomponent displayname=&quot;News Rule&quot; extends=&quot;rules&quot; 
	hint=&quot;News rule publishes news content items in date order, with 
		most recently published first.  News content is only visible 
		if it is a) approved content; b) time is past the publish date; 
		c) time is before the expriy date, and; d) it matches the nominated 
		categories.&quot;&gt;

&lt;/code&gt;

While ColdFusion doesn&apos;t have a problem with this, it does cause problems with the JavaScript generated in \farcry_core\admin\includes\editcontiner_js.cfm. One fix is to just remove the line breaks from the hint attribute in the rules. This is what I did because at the time I discovered this error I didn&apos;t feel like tracking down where the JavaScript was being generated. Another, and probably the better, approach is to strip the line breaks out when building the JavaScript.

&lt;code&gt;
&lt;!--- editcontainer_js.cfm line 130 ---&gt;

oRules[&apos;#qRules.rulename#&apos;].hint = &apos;#REReplace(application.rules[qRules.rulename].hint,&quot;\r\n&quot;,&quot; &quot;,&quot;ALL&quot;)#&apos;;

&lt;/code&gt;

Note that I haven&apos;t test the above code but I think it should work.

&lt;h4&gt;Update&lt;/h4&gt;

So after I posted this I went over to the FarCry bug database to log this issue. Apparently this is something I should have done first because it has already been reported and fixed:

&lt;a href=&quot;http://bugs.farcrycms.org:8080/browse/FC-607&quot;&gt;Configure Rules does not allow available rule types to be moved to active rule types&lt;/a&gt;

The fix uses a the JSStringFormat function, a function I really haven&apos;t used all that often. (OK, maybe never.) I&apos;ll have to look into exactly what this function does as it sounds like it could come in pretty handy, especailly given all the AJAX stuff I&apos;ve  been doing lately. 
				</description>
				
				<category>FarCry</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sun, 24 Sep 2006 12:08:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2006/9/24/Another-note-on-the-FarCry-302-RC</guid>
				
			</item>
			
			<item>
				<title>FarCry Blog Objects</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2006/9/20/FarCry-Blog-Objects</link>
				<description>
				
				&lt;p&gt;For the past month or so I&apos;ve been running a small intranet site on FarCry. I&apos;ve been using this site for project notes, basically just posting my ideas and discoveries as standard FarCry news items for my co-workers to review. I plan to expand the site to contain documentation and other content related to the project I&apos;m working on, but for now it&apos;s fairly basic.&lt;/p&gt;

&lt;p&gt;So the news items are working well to add transparency to my development process, but I really want to get some feedback from my co-workers on some of my ideas. To do this I wanted to allow comments to be added to news items. Sound like a blog? Well it did to me, so I decided to create some basic blog content objects for FarCry.&lt;/p&gt; 

&lt;p&gt;Note that I built these objects using the 3.0.2 RC of FarCry with the mollio skin. I haven&apos;t done much testing so use at your own risk! That said, to install the blog:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Download the &lt;a href=&quot;http://www.mischefamily.com/nathan/enclosures/farcry_mollio_blog.zip&quot;&gt;farcry_mollio_blog.zip&lt;/a&gt; and unzip it to your project directory. 
&lt;li&gt; Reload your FarCry application by browsing to your FarCry site and adding updateapp=1 to the url parameters&lt;/li&gt; 
&lt;li&gt; Login to the FarCry administrator and deploy the four new objects: nmBlogEntry, nmBlogComment, ruleBlogEntries, and ruleBlogComments.&lt;/li&gt;
&lt;li&gt; Add a page to your FarCry site for the blog.&lt;/li&gt;
&lt;li&gt; Add your first blog entry under Content -&amp;gt; Blog.&lt;/li&gt;
&lt;li&gt; Add the nmBlogEntries rule to the bottom container on the blog page.&lt;/li&gt;
&lt;li&gt; View the blog entry and add the nmBlogComments rule to the blogBottom container.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is still a lot of work I want to do with these objects. For example there is no way to manage comments. In fact there is absolutely no way to know comments have been added without looking at the blog entry. I&apos;d also like to add a calendar view and a category listing. It all depends on how much time I have and how much interest people show in these objects.&lt;/p&gt;

&lt;p&gt;If you do decide to give these components a try please let me know how it goes.&lt;/p&gt; 
				</description>
				
				<category>FarCry</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 20 Sep 2006 22:10:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2006/9/20/FarCry-Blog-Objects</guid>
				
			</item>
			
			<item>
				<title>Installing FarCry 3.0.2 Release Candidate</title>
				<link>http://www.mischefamily.com/nathan/index.cfm/2006/9/16/Installing-FarCry-302-Release-Candidate</link>
				<description>
				
				I had a few problems getting the FarCry 3.0.2 Release Candidate installed today so I thought I&apos;d share what I did to get it up and running. I was trying to install from the farcry-milestone_3-0-2RC_r286.zip, available from the &lt;a href=&quot;http://www.farcrycms.org/go/downloads&quot; target=&quot;_blank&quot;&gt;FarCry downloads page&lt;/a&gt;. I was following the &lt;a href=&quot;http://www.farcrycms.org/download.cfm?DownloadFile=C01D17AC-EA69-0EC7-F729E01643D2B36C&quot; target=&quot;_blank&quot;&gt;installation guide&lt;/a&gt;, but I kept getting errors while running the installer. I decided to ignore the errors and see if I could view the site or login to the FarCry administrator. I couldn&apos;t. After a little digging I was able to determine that the installation files included in the zip expect to use the older pliant webskin, while the download includes the more recent mollio webskin. To get the installation to run I had to make changes to a couple of templates.

&lt;h4&gt;farcry_core/admin/install/index.cfm&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Line 105: change farcry_pliant to farcry_mollio&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;farcry_core/admin/install/_createDefaultNodes.cfm&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Line 15: change displayPageLanding to displayPageTypeA&lt;/li&gt;
&lt;li&gt;Line 39: change displayPageLanding to displayPageTypeA&lt;/li&gt;
&lt;/ul&gt;

After making these changes I was able to run the installer and updates to get a working FarCry site. Note that I still got errors running the installer and updates, but everything seems to be installed correctly. 
				</description>
				
				<category>FarCry</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sat, 16 Sep 2006 17:03:00-0400</pubDate>
				<guid>http://www.mischefamily.com/nathan/index.cfm/2006/9/16/Installing-FarCry-302-Release-Candidate</guid>
				
			</item>
			</channel></rss>