one page - all selected menus

drupalok - June 24, 2008 - 15:54
Project:MenuTree
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:ebrand
Status:closed
Description

hi there - nice module!
but it would be even better, if one could choose the menus to be displayed on one page together (like a complete sitemap)
i did not find any module to combine menus to one either...
greetings
sebastian

#1

Crell - July 22, 2008 - 04:30
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:active» postponed (maintainer needs more info)

New features will only go into the 6.x version.

I am not entirely clear what the use case here is. I'm not against it, I suppose, but I'm curious why it would be needed.

#2

msn - December 19, 2008 - 22:30

sitemap/all works great in dev version, thanks.

#3

Crell - December 19, 2008 - 22:57

Yeah, I had a client ask for that at some point. It needs to be ported forward to the D6 version, then both need a stable release to include it. Anyone want to do the D6 port of that feature? :-)

#4

JoepH - May 12, 2009 - 15:01

+1 for this functionality!
Then it will make it a great sitemap.

@msn
What do you mean with 'sitemap/all' ?

#5

msn - May 13, 2009 - 18:46

JoepH:

Oehh...., What I remember.
The sitemap/all issue is outdated. In an older version you could not create a complete sitemap, only the dev version (at that time) owned this feature. It this moment the dev version is an official release.

With compliments to the module developer(s).

Martin

#6

ebrand - May 18, 2009 - 22:30

Here's a patch for D6

AttachmentSize
menuall.patch 6.88 KB

#7

ebrand - May 19, 2009 - 14:57
Status:postponed (maintainer needs more info)» needs review

I have an update to the previous patch

AttachmentSize
menuall.patch 6.41 KB

#8

Crell - May 19, 2009 - 23:55
Status:needs review» needs work

- It looks like the patch has tabs in it instead of two-spaces for indentation. All Drupal code should use two-space indentation.

- The indentation is off in menutree_display_all().

- The default weight for menus in the "all" page is set to none, so no menus will show until the admin page has been submitted. However, the defaults on the admin page are to show, in increasing order. That creates a disconnect if you're just looking at the admin page but haven't submitted it. We should probably normalize those to none in both cases for consistency.

- The if-else in menutree_display() should have the else on its own line:

<?php
if ($blah) {

}
else {

}
?>

- I'm unclear why you're switching the constants from a bitwise check to an equality check.

#9

ebrand - May 20, 2009 - 15:51
Assigned to:Anonymous» ebrand
Status:needs work» needs review

Here is the updated patch

AttachmentSize
menuall.patch 6.21 KB

#10

Crell - May 27, 2009 - 19:01
Status:needs review» fixed

Committed #9. Awesome!

#11

System Message - June 10, 2009 - 19:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.