<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>chirale &#187; menu</title>
	<atom:link href="http://chirale.wordpress.com/tag/menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://chirale.wordpress.com</link>
	<description>watashi no yume...</description>
	<lastBuildDate>Mon, 07 Dec 2009 08:58:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='chirale.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/913d290334c442dca8a7360d648ac1bd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>chirale &#187; menu</title>
		<link>http://chirale.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chirale.wordpress.com/osd.xml" title="chirale" />
		<item>
		<title>Tertiary links / 2: tree workaround</title>
		<link>http://chirale.wordpress.com/2008/09/26/tertiary-links-2-tree-workaround/</link>
		<comments>http://chirale.wordpress.com/2008/09/26/tertiary-links-2-tree-workaround/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 15:10:19 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal 5]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[tertiary links]]></category>
		<category><![CDATA[tree]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=188</guid>
		<description><![CDATA[On Tertiary links on Drupal I described a simple approach to display the &#8220;tertiary&#8221; menu (childrens of secondary menus) on Drupal 5.x. This is an useful but sometimes limiting approach, since the secondary menu disappears when tertiary menu is displayed.
This is an alternative workaround made using a customized menu_tree function:
template.php:
 
function custom_menu_tree_secondary($pid = 1) {
  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=188&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>On <a title="Permanent Link to &quot;Tertiary links on Drupal&quot;" rel="bookmark" href="../2008/07/10/tertiary-links-on-drupal/">Tertiary links on Drupal</a> I described a simple approach to display the &#8220;tertiary&#8221; menu (childrens of secondary menus) on <strong>Drupal 5.x</strong>. This is an useful but sometimes limiting approach, since the secondary menu disappears when tertiary menu is displayed.</p>
<p>This is an alternative workaround made using a customized <a title="menu_tree" href="http://api.drupal.org/api/function/menu_tree/5">menu_tree</a> function:</p>
<p><strong>template.php</strong>:<br />
<code> </code></p>
<pre>function custom_menu_tree_secondary($pid = 1) {
  $menu = menu_get_menu();
  $output = '';

  if (isset($menu['visible'][$pid]) &amp;&amp; $menu['visible'][$pid]['children']) {
    foreach ($menu['visible'][$pid]['children'] as $mid) {
      $type = isset($menu['visible'][$mid]['type'])
? $menu['visible'][$mid]['type'] : NULL;
      $children = isset($menu['visible'][$mid]['children'])
? $menu['visible'][$mid]['children'] : NULL;
      # display only the children menu of the current menu
      if(menu_in_active_trail($mid)) {
      	$output .= theme('menu_tree', $mid);
      }
    }
  }
  return $output;
}</pre>
<p><strong>page.tpl.php</strong> (in place of standard $secondary block):<br />
<code> </code></p>
<pre>&lt;div id="secondary"&gt;
&lt;?php if ($secondary_links): ?&gt;
&lt;?php echo tools_menu_tree_secondary(variable_get('menu_primary_menu', 0));?&gt;
&lt;?php endif; ?&gt;
&lt;/div&gt;</pre>
<p>Tested on:</p>
<ul>
<li>Drupal 5.x</li>
<li>Zen subtheme</li>
</ul>
<pre></pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=188&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2008/09/26/tertiary-links-2-tree-workaround/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Tertiary links on Drupal</title>
		<link>http://chirale.wordpress.com/2008/07/10/tertiary-links-on-drupal/</link>
		<comments>http://chirale.wordpress.com/2008/07/10/tertiary-links-on-drupal/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 09:11:51 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[page.tpl.php]]></category>
		<category><![CDATA[secondary links]]></category>
		<category><![CDATA[tertiary links]]></category>
		<category><![CDATA[zen theme]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=111</guid>
		<description><![CDATA[Update: check Tertiary links / 2: tree workaround before this. That&#8217;s a wiser solution in many cases.

Tested on:

Drupal 5.x
Zen subtheme

If you use primary and secondary links in distinct blocks/area of a page, you can add the ability to browse the third navigation level. Just hack your page.tpl.php.

&#60;div id="secondary"&#62; &#60;?php
#display tertiary links menu on 2nd level
$tertiary_links=menu_primary_links(3, variable_get('menu_primary_menu', [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=111&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Update</strong>: check <strong><a title="tree workaround&quot;" rel="bookmark" href="../2008/09/26/tertiary-links-2-tree-workaround/">Tertiary links / 2: tree workaround</a></strong> before this. That&#8217;s a wiser solution in many cases.<a title="tree workaround&quot;" rel="bookmark" href="../2008/09/26/tertiary-links-2-tree-workaround/"><br />
</a></p>
<p>Tested on:</p>
<ul>
<li>Drupal 5.x</li>
<li>Zen subtheme</li>
</ul>
<p>If you use primary and secondary links in distinct blocks/area of a page, you can add the ability to browse the third navigation level. Just hack your <strong>page.tpl.php</strong>.</p>
<p><code><br />
&lt;div id="secondary"&gt;</code><code> &lt;?php<br />
#display tertiary links menu on 2nd level<br />
$tertiary_links=menu_primary_links(3, variable_get('menu_primary_menu', 0) );<br />
#display secondary links menu on 1st level<br />
if($my_secondary_links):?&gt;<br />
&lt;?php<br />
print theme('links', $my_secondary_links, array('class' =&gt; 'links tertiary-links'));<br />
?&gt;<br />
elseif ($secondary_links): ?&gt;<br />
&lt;?php<br />
print theme('links', $secondary_links);<br />
?&gt;<br />
&lt;/div&gt; &lt;!-- /#secondary --&gt;<br />
&lt;?php endif; ?&gt;</code></p>
<p>See also:</p>
<ul>
<li><a href="http://www.freesoftwaremagazine.com/books/drupal_tricks/tertiary_menu" target="_blank">Tertiary menu in Drupal</a> A very useful howto (I saw this trick here)</li>
<li><a href="http://drupal.org/node/269286" target="_blank">Secondary link and third level</a> Topic on drupal.org</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chirale.wordpress.com/111/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chirale.wordpress.com/111/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=111&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2008/07/10/tertiary-links-on-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
	</channel>
</rss>