<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
one more note - the navigation i'm working on at the moment will not
change for the site (and i'm not worried about reusability at the
moment), so i'm perfectly fine with putting in a series of calls such
as this if it works (purposely not written in code):<br>
* give me menu from node 2 and children<br>
* give me menu from node 5 and children<br>
<br>
etc. totally unreusable but will work for this case and when I have
more time to get a deeper understanding of how all this is working i'd
learn to do it right. <br>
so whether i can get a nested array of the primary links and their
children as i was trying to get below or simply get a series of arrays
of the children of photo gallery, the children of floor plans etc
doesn't matter to me at the moment - i can work with either.<br>
<br>
<br>
<br>
sander-martijn wrote:
<blockquote cite="mid:46C5C09F.6070505@sander-martijn.com" type="cite">
<pre wrap="">yeah, tried that too but i'm still not understanding something. No
matter what I put in that (tried a variety of options in case i was
misunderstanding what the args do) I either get just the top level or I
get nothing:
menu_primary_links()
Array
(
[menu-1-1-2] => Array
(
[title] => Photo Gallery
[href] => node/2
[attributes] => Array
(
)
)
[menu-1-2-2] => Array
(
[title] => Floor Plans
[href] => node/5
[attributes] => Array
(
)
)
)
menu_primary_links(1)
Array
(
[menu-1-1-2] => Array
(
[title] => Photo Gallery
[href] => node/2
[attributes] => Array
(
)
)
[menu-1-2-2] => Array
(
[title] => Floor Plans
[href] => node/5
[attributes] => Array
(
)
)
)
menu_primary_links(2)
menu_primary_links(1,2)
Array
(
[menu-1-1-2] => Array
(
[title] => Photo Gallery
[href] => node/2
[attributes] => Array
(
)
)
[menu-1-2-2] => Array
(
[title] => Floor Plans
[href] => node/5
[attributes] => Array
(
)
)
)
menu_primary_links(2,1)
Array
(
)
Eric Mckenna wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Heh.. sorry about that. I didn't read you email close enough. One
thing that might help is that you can use menu_primary_links() ,
<a class="moz-txt-link-freetext" href="http://api.drupal.org/api/function/menu_primary_links/5">http://api.drupal.org/api/function/menu_primary_links/5</a>,
to get the children.
</pre>
</blockquote>
<pre wrap=""><!---->trimming thread, it's getting long
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<hr align="center" noshade="noshade" size="1" width="100%">
<p
style="text-align: center; font-family: verdana,arial,helvetica,sans-serif; color: rgb(51, 51, 51); font-size: 10px; text-transform: lowercase; font-style: normal; font-weight: normal;"><a
href="mailto:sander@sander-martijn.com"
style="text-decoration: none; color: rgb(0, 0, 255); font-family: verdana,arial,helvetica,sans-serif;">sander-martijn</a><br>
interface developer | architect<br>
<a href="mailto:sander@sander-martijn.com"
style="text-decoration: none; color: rgb(0, 0, 255); font-family: verdana,arial,helvetica,sans-serif;">sander@sander-martijn.com</a><br>
<a href="http://www.sander-martijn.com"
style="text-decoration: none; color: rgb(0, 0, 255); font-family: verdana,arial,helvetica,sans-serif;">www.sander-martijn.com</a>
</p>
<hr align="center" noshade="noshade" size="1" width="100%"></div>
</body>
</html>