<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Advanced Techniques: The Joomla Parent Menu ItemID</title>
	<atom:link href="http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/feed/" rel="self" type="application/rss+xml" />
	<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/</link>
	<description></description>
	<lastBuildDate>Mon, 16 Jan 2012 08:34:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Dolmat</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-903</link>
		<dc:creator>Dolmat</dc:creator>
		<pubDate>Mon, 16 Jan 2012 08:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-903</guid>
		<description>Does this article can solve my Joomla problem here?
http://stackoverflow.com/questions/8877167/change-page-heading-in-joomla-based-on-menu-id</description>
		<content:encoded><![CDATA[<p>Does this article can solve my Joomla problem here?<br />
<a href="http://stackoverflow.com/questions/8877167/change-page-heading-in-joomla-based-on-menu-id" rel="nofollow">http://stackoverflow.com/questions/8877167/change-page-heading-in-joomla-based-on-menu-id</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ahmad balavipour</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-877</link>
		<dc:creator>ahmad balavipour</dc:creator>
		<pubDate>Wed, 26 Oct 2011 12:24:47 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-877</guid>
		<description>thanks alot, very good tutorial</description>
		<content:encoded><![CDATA[<p>thanks alot, very good tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Luton</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-26</link>
		<dc:creator>Dan Luton</dc:creator>
		<pubDate>Wed, 11 May 2011 20:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-26</guid>
		<description>Glad it helped! Thanks for posting guys.</description>
		<content:encoded><![CDATA[<p>Glad it helped! Thanks for posting guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philippe</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-25</link>
		<dc:creator>Philippe</dc:creator>
		<pubDate>Wed, 11 May 2011 20:24:27 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-25</guid>
		<description>Thanks !
Really helpfull trick as I was wondering how to find the parent menu itemid.
Solution 2 works fine and easy to use.
Exactly what I was searching for :)</description>
		<content:encoded><![CDATA[<p>Thanks !<br />
Really helpfull trick as I was wondering how to find the parent menu itemid.<br />
Solution 2 works fine and easy to use.<br />
Exactly what I was searching for <img src='http://toolboxdigital.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-24</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 22 Mar 2011 22:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-24</guid>
		<description>EXACTLY what I needed. Many thanks!</description>
		<content:encoded><![CDATA[<p>EXACTLY what I needed. Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Luton</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-23</link>
		<dc:creator>Dan Luton</dc:creator>
		<pubDate>Mon, 04 Oct 2010 08:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-23</guid>
		<description>Hi Bira,

I have replaced individual special characters before with PHP, so would imagine the same could apply here.

I think you&#039;d have to define each one individually though, which could be lengthy...I&#039;m not sure of a better way to do it.

Something like:

ereg_replace(&quot;á&quot;, &quot;a&quot;, $parentmenu)
ereg_replace(&quot;ó&quot;, &quot;o&quot;, $parentmenu)

...should be sufficient.

Thanks for pointing it out, it&#039;s easy to forget other languages and exceptions such as special characters!</description>
		<content:encoded><![CDATA[<p>Hi Bira,</p>
<p>I have replaced individual special characters before with PHP, so would imagine the same could apply here.</p>
<p>I think you&#8217;d have to define each one individually though, which could be lengthy&#8230;I&#8217;m not sure of a better way to do it.</p>
<p>Something like:</p>
<p>ereg_replace(&#8220;á&#8221;, &#8220;a&#8221;, $parentmenu)<br />
ereg_replace(&#8220;ó&#8221;, &#8220;o&#8221;, $parentmenu)</p>
<p>&#8230;should be sufficient.</p>
<p>Thanks for pointing it out, it&#8217;s easy to forget other languages and exceptions such as special characters!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bira</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-22</link>
		<dc:creator>Bira</dc:creator>
		<pubDate>Sat, 02 Oct 2010 15:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-22</guid>
		<description>Before the line #15 I have inserted a function I found here http://www.php.net/manual/en/function.strtr.php#90925 to normalize the accented characteres, instead of deleting them. It is nice for those, like me, whose language have accented characteres like á and ó etc. Is there any other way to get the titles already without accents, like an &quot;alias&quot;? And of course thanks!</description>
		<content:encoded><![CDATA[<p>Before the line #15 I have inserted a function I found here <a href="http://www.php.net/manual/en/function.strtr.php#90925" rel="nofollow">http://www.php.net/manual/en/function.strtr.php#90925</a> to normalize the accented characteres, instead of deleting them. It is nice for those, like me, whose language have accented characteres like á and ó etc. Is there any other way to get the titles already without accents, like an &#8220;alias&#8221;? And of course thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TaeV</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-21</link>
		<dc:creator>TaeV</dc:creator>
		<pubDate>Fri, 27 Aug 2010 16:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-21</guid>
		<description>Thank so much.</description>
		<content:encoded><![CDATA[<p>Thank so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-20</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 13 Apr 2010 14:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-20</guid>
		<description>That was exactly what I have been trying to do all morning.  Thanks!</description>
		<content:encoded><![CDATA[<p>That was exactly what I have been trying to do all morning.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Luton</title>
		<link>http://toolboxdigital.com/2010/03/advanced-techniques-the-joomla-parent-menu-itemid/#comment-19</link>
		<dc:creator>Dan Luton</dc:creator>
		<pubDate>Tue, 13 Apr 2010 08:45:39 +0000</pubDate>
		<guid isPermaLink="false">http://toolboxdigital.com/?p=411#comment-19</guid>
		<description>Hi Josh,

Depends what you mean.

If you want to get the current Menu Itemid, you can use:

$item_id = JRequest::getVar(&#039;Itemid&#039;);

Alternatively, you can use the above technique to obtain the parent menu Itemid for a different level:

$parentmenu = JSite::getMenu()-&gt;getActive()-&gt;tree[1];

...which should work.  All depends really what it is you&#039;re trying to achieve - this article really focuses on the absolute top-level ID.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Hi Josh,</p>
<p>Depends what you mean.</p>
<p>If you want to get the current Menu Itemid, you can use:</p>
<p>$item_id = JRequest::getVar(&#8216;Itemid&#8217;);</p>
<p>Alternatively, you can use the above technique to obtain the parent menu Itemid for a different level:</p>
<p>$parentmenu = JSite::getMenu()->getActive()->tree[1];</p>
<p>&#8230;which should work.  All depends really what it is you&#8217;re trying to achieve &#8211; this article really focuses on the absolute top-level ID.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

