How to display sub menu tree navigation in a block consistently

deadlyminds - June 24, 2008 - 19:26
Project:Submenu Tree
Version:5.x-1.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi, First of all, thanks a ton for this wonderful module. After struggling with Category, Book and a host of other modules, I've finally found one whihc works perfectly.

My problem is this - I want to display content that are children to a particular content as links in a block.

For example: I have a page called as 'Popular cars' and then I have children assigned to this node which are - Toyota cars, Honda Cars, Ford Cars, GM cars etc..

I enabled the submenu tree listing on the 'Popular cars' page and also created a block to display in the sidebar. Now the block containing the links are displayed only in the 'Popular cars' page but disppear when I go a child of this page (say Toyota cars)

How do I get to display this block on all the child pages of the 'Popular cars' page?

One solution, I assume would be to enable the 'sibling tree' and save it as a block? Is there any other way?

Appreciate your help!

#1

bengtan - June 25, 2008 - 01:28

Hi,

Your hunch is correct.

Enable siblingmenus for Toyota cars, Honda cars, Ford cars, GM cars etc.

When you view the Toyota car page, it will then show the links to Toyota, Honda, Ford, GM in a separate block (ie it's siblings). Of course, you must make sure you enable this block.

Although ... if Toyota itself has children ie. Corolla, Camry, and you also enable submenutrees for Toyota, then you will have two blocks (submenu and siblingmenu) which might be too much information for the website visitor.

That's the quickest and easiest solution I can suggest.

If you need even more customisation than that, I would suggest you'll need someone who can write some code to do that. It shouldn't be a lot of code, but you'll need a couple of paragraphs worth, I think.

Beng

#2

internetman - July 27, 2008 - 20:13

Hello,

Thanks for writing this awesome module. I have one question on extensibility. I have a very unique requirement, and I am new to Drupal and the PHPTemplate system.

What I would like to do is list to sub menus (as this module does) but also list the sub-sub menus.

It appears this module partially does that, but only in menu mode.

I would like to list them vertically on a landing page. This method is used to keep the number of clicks to get to pages down.

See attached file for example. Hard to illustrate in a text box :D

Is this possible? Is there another module that will do it effectively? Can this one be extended to do it?

Thanks!
Nick

AttachmentSize
example.gif 7.44 KB

#3

bengtan - July 28, 2008 - 01:41

Hi,

Actually, your explanation of your objectives wasn't hard to grasp.

Unfortunately, submenutree won't allow you to do this. It's probably possible to rewrite parts of submenutree to allow this, but it wouldn't be an efficient way of solving this.

You might want to have a look at Sliced Menu, which sounds almost like what you're after. I suspect you might need to modify it slightly though.

Beng

#4

internetman - July 28, 2008 - 22:23

Thanks. This is also a great module, but not quite what I need. I need it to show nav items forward. Is this possible?

Thanks so much for taking time out of your day to help me out. It is much appreciated.

Nick

#5

bengtan - July 29, 2008 - 01:08

Uh, I don't understand what you mean by "show nav items forward". Can you elaborate?

#6

internetman - July 29, 2008 - 03:36

Sure.

As an example, I would want to do a landing page for a bunch of sub menus, but some of those sub menus also have sub-sub items.

So on a landing page, I would like to show the sub menu items and under those vertically list the items of those subs.

Does that help?

Thanks again :)

#7

bengtan - July 29, 2008 - 04:01

Try the following:

Go to Administer -> Site Building -> Menus, find a suitable menu item, edit it, and try checking the checkbox "Expanded" with description "If selected and this menu item has children, the menu will always appear expanded".

Whenever your item is displayed as a menu, it will automatically expand child items.

#8

bengtan - August 19, 2008 - 03:53
Status:active» fixed

Assumed to be fixed since I haven't heard anything further.

#9

Anonymous (not verified) - September 2, 2008 - 04:01
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#10

internetman - September 13, 2008 - 00:20

I apologize. I did not come back to complete this. Thank you for your kind help.

 
 

Drupal is a registered trademark of Dries Buytaert.