Mar
31

Months ago, I wrote this way-too-complicated Views set of blocks so that the child menu items would appear beneath the text of the parent page.  It was ridiculous.. I had like 15 blocks and I hadn’t even finished entering in new pages yet.

Today I decided that I would make another puch at getting this website migration done.  Ended up frustrated at the idea of having to write a new block view each time I created a new page.  Apparently they weren’t even showing up in order. Oy!

So, I googled “drupal child page block” and found the Menu Block module.  Absolutely amazing!  It does exactly what I wanted.. cleanly!

So… have you ever used the Primary and Secondary links feature on your theme and wondered “how the hell do I display any menu items deeper than that?”

Well, that’s what this module does. It provides configurable blocks of menu trees starting with any level of any menu. And more!

So if you’re only using your theme’s Primary links feature, you can add and configure a “Primary links (levels 2+)” block. That block would appear once you were on one of the Primary links’ pages and would show the menu tree for the 2nd level (and deeper) of your Primary links menu and would expand as you traversed down the tree. You can also limit the depth of the menu’s tree (e.g. “Primary links (levels 2-3)”) and/or expand all the child sub-menus (e.g. “Primary links (expanded levels 2+)”).

Pretty simple, eh?

(I’m actually shocked this module didn’t exist before.)

Category: tech
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>