Some levels in the same block

Jorisvt - June 10, 2007 - 10:10
Project:Sliced Menu
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

First: great module. I was looking for it for a while now.

Now you get a new block for every level, but it would be nice if you could place two or more levels in the same block. For example: The first level at the top of your site and level 2 & 3 in a block in the left or right sidebar.

#1

alwex - June 10, 2007 - 11:29

Sound good to me, it can make menus more flexible.

Maybe in au future release.

Thanks for the idea.

#2

alwex - June 10, 2007 - 11:29

Sound good to me, it can make menus more flexible.

Maybe in a future release.

Thanks for the idea.

#3

cornflakes - June 11, 2007 - 14:08

Yes would be great if one can define the number of levels of the menu that should be showed in one block. Especially I would prefer it when there would be an option to say that from this level on all others should be shown.

So long. Great module. Keep up the good work.

#4

sun - July 3, 2007 - 19:17
Component:User interface» Code

+1 in general - the first use case I can imagine is to have level 1 (like primary menu rendered horizontally), level 2+3 (like regular tree navigation in a block) and level 4+ (regular tree navigation in another block).

Additionally:
I'm the maintainer of Drupal Administration Menu and already thought of re-using the code of Sliced Menu for Admin Menu. To achieve this and somehow extending this issue, Sliced Menu would have to be able to slice a whole menu tree beginning from a certain menu item (i.e. 'administer', resp. /admin). Is this feasible or should I rather forget this idea?

#5

alwex - July 4, 2007 - 08:15

Actually, this is not possible, but when I'll have some time, I will look forward this functionality.

#6

halla - August 8, 2007 - 00:32

I agree with my Pre-Posters: Great Module, exactly what I was looking for.

Putting multiple Levels in one Block is the only feature I really miss. Would be really nice if this becoms possible in upcoming releases, since it would be possible to put the main regions of a page (1st Level) in a tabbed, horizontal navigation bar and all of the other (2nd, 3rd, etc) Levels in one of the available sidebars, using just one box - this makes it much clearer which item has which parent/child item.

#7

PieterDC - April 21, 2008 - 15:45
Version:5.x-1.x-dev» 5.x-1.0
Status:active» needs work

I was waiting for this feature but couldn't wait any longer.
So I wrote a patch myself.
It let's you choose from which level on the menu doesn't need to be sliced any more.
Have fun!

You can see a demo (in Dutch) .. the horizontal menu's are sliced, the menu at the left sidebar is not...

AttachmentSize
slicedmenu_slice_until_certain_level.patch 3.8 KB

#8

alwex - April 30, 2008 - 08:36

Thank you for the patch.

If you agree, I'll integrate it to the module.

#9

sun - April 30, 2008 - 10:16
Status:needs work» needs review

Correct status.
I'll try to review and test this patch asap

#10

PieterDC - May 5, 2008 - 07:38

@alwex : I surely don't have a problem with this patch being integrated in the module itself.

@sun : Thanks in advance for reviewing the patch. You'll notice a difference in the theming function between the sliced menu parts and the unsliced ones.. I use theme_menu_tree() for the unsliced part of the menu.

#11

alwex - May 20, 2008 - 08:37

It's ok with your patch. I will make au quick review of the code and then commit to the CVS as soon as possible. It works greatly, thanks.

I am proud to anouce you all that the module is ready to work with Drupal 6, just a few corrections needed to be in accordance with the Drupal code style and it will be ready to commit !

#12

HansBKK - November 6, 2008 - 11:34

27 weeks later, is this module being maintained at all?

 
 

Drupal is a registered trademark of Dries Buytaert.