<?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: Zend_Navigation Tricks: True tab navigation with sub menus &#8211; Part 1</title>
	<atom:link href="http://www.childofthemachine.com/blog/2009/08/zend_navigation-tricks-true-tab-navigation-with-sub-menus-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.childofthemachine.com/blog/2009/08/zend_navigation-tricks-true-tab-navigation-with-sub-menus-part-1/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Oct 2011 14:33:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Grant Perry</title>
		<link>http://www.childofthemachine.com/blog/2009/08/zend_navigation-tricks-true-tab-navigation-with-sub-menus-part-1/comment-page-1/#comment-201</link>
		<dc:creator>Grant Perry</dc:creator>
		<pubDate>Mon, 30 Aug 2010 06:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.childofthemachine.com/blog/?p=190#comment-201</guid>
		<description>John thanks for your suggestions - I&#039;ll take another look to see if I can simplify this solution.

At the time of writing I had thought I&#039;d explored all of the simple ZF built ins, but didn&#039;t have any luck. Most attempts produced results that weren&#039;t quite what I was after with HTML which is why I ended up using partials for their greater flexibility.

E.g. For the top level nav I was looking to render the items from 2 depths in a single level of a &lt; .ul.&gt; for the simplicity of my CSS, I believe using the setMaxDepth(0) here would render it as nested &lt; .ul.&gt;&#039;s?

As for your suggestion for the sub navigation I&#039;ll test it out and see if it has the desired result!</description>
		<content:encoded><![CDATA[<p>John thanks for your suggestions &#8211; I&#8217;ll take another look to see if I can simplify this solution.</p>
<p>At the time of writing I had thought I&#8217;d explored all of the simple ZF built ins, but didn&#8217;t have any luck. Most attempts produced results that weren&#8217;t quite what I was after with HTML which is why I ended up using partials for their greater flexibility.</p>
<p>E.g. For the top level nav I was looking to render the items from 2 depths in a single level of a < .ul.> for the simplicity of my CSS, I believe using the setMaxDepth(0) here would render it as nested < .ul.>&#8216;s?</p>
<p>As for your suggestion for the sub navigation I&#8217;ll test it out and see if it has the desired result!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.childofthemachine.com/blog/2009/08/zend_navigation-tricks-true-tab-navigation-with-sub-menus-part-1/comment-page-1/#comment-198</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 12 Aug 2010 18:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.childofthemachine.com/blog/?p=190#comment-198</guid>
		<description>This can all be much more easily done without partials and PHP code.

In your top level nav for your tabs just add:

echo $this-&gt;navigation()-&gt;menu()-&gt;setMaxDepth(0);

Then in the sub-navigation just add:

echo $this-&gt;navigation()-&gt;menu()-&gt;setMinDepth(1)-&gt;setMaxDepth(1)-&gt;setOnlyActiveBranch(1)-&gt;setRenderParents(false);

Voila.  Done :)  All you&#039;ll need to do is define how the unordered list styles and list items should be displayed.  Then set a class for active on a list item and you&#039;ll be all set.  

No need for php code in partials to do something that Zend Framework already has built in! :)</description>
		<content:encoded><![CDATA[<p>This can all be much more easily done without partials and PHP code.</p>
<p>In your top level nav for your tabs just add:</p>
<p>echo $this-&gt;navigation()-&gt;menu()-&gt;setMaxDepth(0);</p>
<p>Then in the sub-navigation just add:</p>
<p>echo $this-&gt;navigation()-&gt;menu()-&gt;setMinDepth(1)-&gt;setMaxDepth(1)-&gt;setOnlyActiveBranch(1)-&gt;setRenderParents(false);</p>
<p>Voila.  Done :)  All you&#8217;ll need to do is define how the unordered list styles and list items should be displayed.  Then set a class for active on a list item and you&#8217;ll be all set.  </p>
<p>No need for php code in partials to do something that Zend Framework already has built in! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grant Perry</title>
		<link>http://www.childofthemachine.com/blog/2009/08/zend_navigation-tricks-true-tab-navigation-with-sub-menus-part-1/comment-page-1/#comment-193</link>
		<dc:creator>Grant Perry</dc:creator>
		<pubDate>Wed, 30 Jun 2010 05:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.childofthemachine.com/blog/?p=190#comment-193</guid>
		<description>Hi Jan. There is a getPrivilege() method on $page from Zend_Navigation_Page. I understand Zend_Navigation and Zend_Acl work well together so I suspect this will help you figure out what you&#039;re trying to do... Presuming getPrivilege() does what I&#039;d have though, you&#039;d use an if statement deciding whether or not to echo the list item tags. I hope this helps sorry I haven&#039;t had to do this yet with the tabs myself.</description>
		<content:encoded><![CDATA[<p>Hi Jan. There is a getPrivilege() method on $page from Zend_Navigation_Page. I understand Zend_Navigation and Zend_Acl work well together so I suspect this will help you figure out what you&#8217;re trying to do&#8230; Presuming getPrivilege() does what I&#8217;d have though, you&#8217;d use an if statement deciding whether or not to echo the list item tags. I hope this helps sorry I haven&#8217;t had to do this yet with the tabs myself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Malte</title>
		<link>http://www.childofthemachine.com/blog/2009/08/zend_navigation-tricks-true-tab-navigation-with-sub-menus-part-1/comment-page-1/#comment-192</link>
		<dc:creator>Jan Malte</dc:creator>
		<pubDate>Fri, 25 Jun 2010 12:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.childofthemachine.com/blog/?p=190#comment-192</guid>
		<description>could you just tell us how to extend your nav1.phtml to use ACL for just displaying the tabs which the user has the permission to access?</description>
		<content:encoded><![CDATA[<p>could you just tell us how to extend your nav1.phtml to use ACL for just displaying the tabs which the user has the permission to access?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The first impression isn&#8217;t always correct &#171; How to use it</title>
		<link>http://www.childofthemachine.com/blog/2009/08/zend_navigation-tricks-true-tab-navigation-with-sub-menus-part-1/comment-page-1/#comment-109</link>
		<dc:creator>The first impression isn&#8217;t always correct &#171; How to use it</dc:creator>
		<pubDate>Sun, 20 Sep 2009 22:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.childofthemachine.com/blog/?p=190#comment-109</guid>
		<description>[...] the first impression isn&#8217;t always correct. In my previous post, I quite sceptically mentioned Zend_Navigation Tricks: True tab navigation with sub menus tutorial. In this post I finally publish my tests with Zend_Navigation to find out was I right or [...]</description>
		<content:encoded><![CDATA[<p>[...] the first impression isn&#8217;t always correct. In my previous post, I quite sceptically mentioned Zend_Navigation Tricks: True tab navigation with sub menus tutorial. In this post I finally publish my tests with Zend_Navigation to find out was I right or [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend_Navigation &#8211; the first touch &#171; How to use it</title>
		<link>http://www.childofthemachine.com/blog/2009/08/zend_navigation-tricks-true-tab-navigation-with-sub-menus-part-1/comment-page-1/#comment-105</link>
		<dc:creator>Zend_Navigation &#8211; the first touch &#171; How to use it</dc:creator>
		<pubDate>Fri, 04 Sep 2009 22:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.childofthemachine.com/blog/?p=190#comment-105</guid>
		<description>[...] had found some strange tutorials like Zend_Navigation Tricks: True tab navigation with sub menus – Part 1 &#124; Child of the Machine , but do not understand why that complexity is needed as default output of component makes exactly [...]</description>
		<content:encoded><![CDATA[<p>[...] had found some strange tutorials like Zend_Navigation Tricks: True tab navigation with sub menus – Part 1 | Child of the Machine , but do not understand why that complexity is needed as default output of component makes exactly [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

