<?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>Fri, 13 Jan 2012 03:18:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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 include file. 12345&#60;?php if ($this-&#62;countModules('user6')) : ?&#62; &#160; &#160; &#60;div&#62; &#160; &#160; &#160; &#160; &#60;jdoc:include type=&#34;modules&#34; name=&#34;user6&#34; style=&#34;xhtml&#34; /&#62; &#160; &#160; &#60;/div&#62; &#60;?php endif; ?&#62; 2. Add module name to templateDetails.xml 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. templateDetails.xml is in XML format. Within the 1&#60;install&#62; namespace, add this: 123&#60;positions&#62; &#160; &#160; &#160; &#60;position&#62;user6&#60;/position&#62; &#60;/positions&#62; If you already have positions listed, just add....]]></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>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php if ($this-&gt;countModules('user6')) : ?&gt;<br />
&nbsp; &nbsp; &lt;div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;jdoc:include type=&quot;modules&quot; name=&quot;user6&quot; style=&quot;xhtml&quot; /&gt;<br />
&nbsp; &nbsp; &lt;/div&gt;<br />
&lt;?php endif; ?&gt;</div></td></tr></tbody></table></div>
</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</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;install&gt;</div></td></tr></tbody></table></div>
<p>namespace, add this:</p>
<pre class="prettyprint">
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;positions&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;position&gt;user6&lt;/position&gt;<br />
&lt;/positions&gt;</div></td></tr></tbody></table></div>
</pre>
<p>If you already have positions listed, just add the</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;position&gt;user6&lt;/position&gt;</div></td></tr></tbody></table></div>
<p>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>6</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 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! 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; www.hieblmedia.de (whos site is in German, one reason why I&#8217;m saving it here). I thought I would throw it online....]]></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>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; // Fix for dublicate home if home have childs //<br />
&nbsp; &nbsp; // by Reinhard Hiebl -- www.hieblmedia.de //////<br />
&nbsp; &nbsp; // get first published item<br />
&nbsp; &nbsp; &nbsp; &nbsp; $query = &quot;SELECT id&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;\n FROM #__menu&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;\n WHERE published = 1&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;\n AND parent = 0&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;\n AND menutype = 'mainmenu'&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;\n AND access &lt;= &quot; . (int) $my-&gt;gid<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;\n ORDER BY ordering&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; . &quot;\n LIMIT 1&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $database-&gt;setQuery( $query );<br />
&nbsp; &nbsp; &nbsp; &nbsp; $first_mitem = $database-&gt;loadResult( 'id' );<br />
&nbsp; &nbsp; ////////////////////////////////////////////////</div></td></tr></tbody></table></div>
<p>And at line 284 in includes/pathway.php immediately after &#8220;$item =&#038; $mitems[$mid];&#8221;:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp; // Fix for dublicate home if home have childs //<br />
&nbsp; &nbsp; &nbsp; &nbsp; // by Reinhard Hiebl -- www.hieblmedia.de //////<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( $item-&gt;id == $first_mitem &amp;&amp; !$item-&gt;parent ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; ////////////////////////////////////////////////</div></td></tr></tbody></table></div>
<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>5</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 1/19 queries in 0.006 seconds using disk: basic

Served from: systembash.com @ 2012-02-07 03:24:50 -->
