<?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>systemBash &#187; Joomla</title>
	<atom:link href="http://systembash.com/tags/software/joomla/feed/" rel="self" type="application/rss+xml" />
	<link>http://systembash.com</link>
	<description>Technology and System Administration</description>
	<lastBuildDate>Mon, 16 Aug 2010 12:34:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Adding a Module Position in a Joomla 1.5 Template</title>
		<link>http://systembash.com/content/adding-a-module-position-in-a-joomla-15-template/</link>
		<comments>http://systembash.com/content/adding-a-module-position-in-a-joomla-15-template/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 05:19:05 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://systembash.com/?p=248</guid>
		<description><![CDATA[Adding a module position in a Joomla 1.5 template is not as easy as it was in the 1.0 templates. It is a two step process: 1. Add code to template PHP file. For example, this would go in the index.php file in the template folder &#8211; or if you are adding it in an [...]]]></description>
			<content:encoded><![CDATA[<p>Adding a module position in a Joomla 1.5 template is not as easy as it was in the 1.0 templates. It is a two step process:</p>
<p><strong>1. Add code to template PHP file.</strong></p>
<p>For example, this would go in the index.php file in the template folder &#8211; or if you are adding it in an include file.</p>
<pre class=prettyprint><code><?php if ($this->countModules('user6')) : ?>
<div>
        <jdoc:include type="modules" name="user6" style="xhtml" />
    </div>

<?php endif; ?></code></pre>
<p><strong>2. Add module name to templateDetails.xml</strong></p>
<p>You then need to tell Joomla which module positions are available in this template. If you don&#8217;t do this step, then Joomla will not present the module position when giving you the option of where to place a module.</p>
<p>templateDetails.xml is in XML format. Within the <code><install></code> namespace, add this:</p>
<pre class="prettyprint"><code>
<positions>
<position>user6</position>
</positions></code></pre>
<p>If you already have positions listed, just add the <code>
<position>user6</position></code> part along with the rest of them.</p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/adding-a-module-position-in-a-joomla-15-template/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Joomla! 1.0.12 Double Pathway Bug</title>
		<link>http://systembash.com/content/joomla-double-home-pathway-bug/</link>
		<comments>http://systembash.com/content/joomla-double-home-pathway-bug/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 12:57:41 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Code Samples]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[Reinhard Hiebl]]></category>
		<category><![CDATA[whos site]]></category>
		<category><![CDATA[www.hieblmedia.de]]></category>

		<guid isPermaLink="false">http://systembash.com/content/joomla-double-home-pathway-bug/</guid>
		<description><![CDATA[Joomla! 1.0.12 appears to have a pathway bug. If you use a component other than com_frontpage for the &#8220;Home page&#8221; of Joomla &#8211; meaning the first link in mainmenu and the page that appears when you load the root of the Joomla! site &#8211; then when you click on an article you get a &#8220;Double [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.joomla.org">Joomla!</a> 1.0.12 appears to have a pathway bug. If you use a component other than com_frontpage for the &#8220;Home page&#8221; of Joomla &#8211; meaning the first link in mainmenu and the page that appears when you load the root of the Joomla! site &#8211; then when you click on an article you get a &#8220;Double pathway&#8221;, for example the pathway will state &#8220;Home > Home > Title of article&#8221;. The Home, or whatever you named this link, part will be duplicated. It isn&#8217;t a big problem but it does look unprofessional on your site!</p>
<p>I looked for ages for a fix to this problem, and eventually found it but the site I can not find the site I originally downloaded this fix from. It is courtesy of Reinhard Hiebl &#8211; <a href="http://www.hieblmedia.de">www.hieblmedia.de</a> (whos site is in German, one reason why I&#8217;m saving it here). I thought I would throw it online here for your download. The fix is in two parts of code in /includes/pathway.php.</p>
<p>At line 54 in includes/pathway.php:</p>
<p><code>	// Fix for dublicate home if home have childs //<br />
	// by Reinhard Hiebl -- www.hieblmedia.de //////<br />
	// get first published item<br />
		$query = "SELECT id"<br />
		. "\n FROM #__menu"<br />
		. "\n WHERE published = 1"<br />
		. "\n AND parent = 0"<br />
		. "\n AND menutype = 'mainmenu'"<br />
		. "\n AND access <= " . (int) $my->gid<br />
		. "\n ORDER BY ordering"<br />
		. "\n LIMIT 1"<br />
		;<br />
		$database->setQuery( $query );<br />
		$first_mitem = $database->loadResult( 'id' );<br />
	////////////////////////////////////////////////</code></p>
<p>And at line 284 in includes/pathway.php immediately after &#8220;$item =&#038; $mitems[$mid];&#8221;:</p>
<p><code>		// Fix for dublicate home if home have childs //<br />
		// by Reinhard Hiebl -- www.hieblmedia.de //////<br />
			if ( $item->id == $first_mitem &#038;&#038; !$item->parent ) {<br />
				break;<br />
			}<br />
		////////////////////////////////////////////////</code></p>
<p>I also have the file zipped up so you can just replace includes/pathway.php with this file. Note that this is for version 1.0.12 only, so it might not work with previous or newer versions.<br />
<a href="http://www.systembash.com/source/pathway_1.0.12_fix.zip"><br />
pathway.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://systembash.com/content/joomla-double-home-pathway-bug/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (enhanced)
Database Caching 4/15 queries in 0.021 seconds using disk

Served from: systembash.com @ 2010-09-03 17:45:39 -->