<?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>benrasmusen.com &#187; Joomla!</title>
	<atom:link href="http://benrasmusen.com/category/joomla/feed/" rel="self" type="application/rss+xml" />
	<link>http://benrasmusen.com</link>
	<description>a web professional committed to creating value</description>
	<lastBuildDate>Thu, 14 Jan 2010 14:00:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>$mosConfig_live_site &#8211; the &#8216;www&#8217; could be the difference</title>
		<link>http://benrasmusen.com/work/mosconfig_live_site-the-www-could-be-the-difference/</link>
		<comments>http://benrasmusen.com/work/mosconfig_live_site-the-www-could-be-the-difference/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 17:14:13 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
				<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[Virtuemart]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/2007/04/24/mosconfig_live_site-the-www-could-be-the-difference/</guid>
		<description><![CDATA[Recently Bluehost.com decided to apply a security update to the PHP version on our box. This would appear to be an uneventful occurrence and normally I wouldn&#8217;t have even taken notice (especially since I was on a one week vacation due to my son being born), but this update was a problem. Turns out something [...]]]></description>
			<content:encoded><![CDATA[<p>Recently <a href="http://www.bluehost.com/">Bluehost.com</a> decided to apply a security update to the PHP version on our box.  This would appear to be an uneventful occurrence and normally I wouldn&#8217;t have even taken notice (especially since I was on a one week vacation due to my <a href="http://benrasmusen.com/2007/04/03/noah-bradley-rasmusen/">son being born</a>), but this update was a problem.  Turns out something on our site conflict badly with it and rendered our site unreachable with a hefty 500 server error.</p>
<p><span id="more-61"></span><br />
I would later find out it was a couple plugins we had installed that caused the problem, but by that time I had already started the long process of rebuilding and was too far in to turn back.</p>
<p>Anyway back to $mosConfig_live_site.  In the process of trying to get our site back to where it had been before the update I started to have trouble with the clean URL&#8217;s.  We are running the latest versions of Joomla!, Viertuemart and OpenSEF.  Once the SEF URL&#8217;s were activate everything seemed to work ok until you hit the &#8216;checkout&#8217; button on our store.  Then somewhere in the SSL redirect things went wrong and it would end up dumping the cart contents and leaving the user stranded on a secure version of the home page.  I puzzled over this for days, posted to a couple forums and lost some sleep.</p>
<p>Then it hit me.  I noticed that the any relative links would redirect the user to the non-www version of the site.  So for example:  if you went to www.domain.com and then clicked on a link it would take you to domain.com/link-url/ rather than www.domain.com/link-url/.  So I knew I had the root URL wrong somewhere, but the variable that determines that value ($mosConfig_live_site) I believe is set in the installation process and is not visible anywhere in the administrative side of Joomla.  It&#8217;s located in the configuration.php file located in the installation root.</p>
<p>Sure enough I had set $mosConfig_live_site to http://domain.com rather than http://www.domain.com.  I added the &#8216;www&#8217; and the checkout process worked like a charm with the clean URL&#8217;s enabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/work/mosconfig_live_site-the-www-could-be-the-difference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic Joomla! Content Pages</title>
		<link>http://benrasmusen.com/work/dynamic-joomla-content-pages/</link>
		<comments>http://benrasmusen.com/work/dynamic-joomla-content-pages/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 21:30:28 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
				<category><![CDATA[Joomla!]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Virtuemart]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/2007/03/27/dynamic-joomla-content-pages/</guid>
		<description><![CDATA[Joomla! is a good CMS as far as CMS&#8217;s go, but as with any piece of software, it has it&#8217;s limitations. Of course it can&#8217;t be all things to all people, but it does a fairly good job. Recently I was looking to create some content pages using Joomla!&#8217;s article setup. The idea was to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.joomla.org/">Joomla!</a> is a good CMS as far as CMS&#8217;s go, but as with any piece of software, it has it&#8217;s limitations.  Of course it can&#8217;t be all things to all people, but it does a fairly good job.</p>
<p>Recently I was looking to create some content pages using Joomla!&#8217;s article setup.  The idea was to create &#8216;articles&#8217; about certain products to be used for landing pages.  These pages would have product specific information which was already contained in the <a href="http://virtuemart.net/">Virtuemart</a> database.  I thought it relatively silly and un-<a href="http://en.wikipedia.org/wiki/DRY">DRY</a> to have to recreate the content in this new page when it already existed in another part of the site.  Not to mention the hassle of having to make sure the two remained consistent (such as prices or product names).</p>
<p>Normally I would just write some PHP/MySQL to handle this but of course that isn&#8217;t allowed natively within a Joomla! article and for good reason.  Fortunately I found two Joomla! <a href="http://extensions.joomla.org/">Extensions</a> that do the trick nicely.</p>
<p><strong><a href="http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,779/Itemid,35/">RunPHP</a></strong></p>
<p>This allows you to write PHP right in the article by wrapping it in {runphp}{/runphp} tags.  This is super handy and works great.  I&#8217;m able to pull data from my Virtuemart database and drop it right into the article, as well as have more conditional control over different aspects of the article content.</p>
<p><a href="http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1376/Itemid,35/"><strong>MosSnippet</strong></a></p>
<p>This Mambot is neat because it allows you to use multiple languages and markups with standard syntax (as opposed to RunPHP which obviously only works with PHP).Â Â  The only drawback is that you have to pre-write these snippets in the administrative side of this Mambot before you can use them in your article.Â  So you write your code and save it as a snippet in the Mambot (you have 15 slots available by default) and then you can call it in your article by using {snippet name} replacing &#8216;name&#8217; with the actual name of your snippet.Â  This works well if you have a snippet of code you use repeatedly (such as dynamic tracking code perhaps?) and is nice because you can use multiple programming languages.</p>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/work/dynamic-joomla-content-pages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
