Hi,

I'm using Drupal for almost a year now, and new in real Drupal developmnt, but in PHP pro ;-)
I needed a menutree-like module, but I've found that none of them can generate parts of the tree, so I hacked this one.

Why is it good?

For me: I usually make 2-3 depth menus UL LI style, so a parent menuitem does not contain any content. Anyway: I have to attach that menuitem to a content, so the easiest way to make it a subtree-generation. In this case no update needed even if the subtree content/titles changed.

About the usage

If You have used the patch, enabled the module and logged in, You should have a navigation menu.
Try this link: menutree/navigation (prefix with You site's url) Here You should see the menutree for the whole Navigation menu
Now try this one: menutree/navigation/2 this is only a part of it: the 3rd item (programmers start from 0 ;-) of the previous menu. (BTW: this is the most populated in my drupal-system: administration)
Now if You want to have tht Navigation menu's Administraion/Content subtree only: menutree/navigation/2/0
Please note that hidden items are excluded from this numbering. (I was not sure if this is good or not, but I choose this way)

Test-menu

You can find a testmenu here: http://www.euromenedzser.hu/menutree/menu-testmenu
(I'll keep that alive until the next big site-upgrading that's date is unknown now - we just set up this)
From the numbering You can see that there is a hidden item: Item 2-2-3
(Anyway the numbering may be confusing because it starts from 1, but the parameter for the module starts from 0...)

I attached the patch I've done for the lastest develpoment state of this module (2008-08-20, 6.x-1.x-dev)
This is my first patch so please reply if it is working, or not...

Feedbacks are welcome!

CommentFileSizeAuthor
menutree.pages_.patch3.31 KBteecee

Comments

Crell’s picture

Status: Needs review » Closed (won't fix)

Honestly, I almost thing you're better off using menu_block here, and then coaxing the block into the content area of the page. (There's about 4 ways to do that, none of which require this module.)

Crell’s picture