Alwex, how is the port going? We are very grateful to you for doing this, as it is such a valuable module!

CommentFileSizeAuthor
#7 slicedmenu-drupal-6.x.zip10.49 KBalwex

Comments

alwex’s picture

The migration is done to Drupal 6.x.

It will be soon on drupal.org

edward.peters’s picture

Thanks a lot!

scottatdrake’s picture

I would LOVE a D6 version of this! I don't see it posted anywhere. Can someone point me in the right direction?

johnalbin’s picture

Scott, there's no D6 code for Sliced menu in CVS on d.o, so its not available on drupal.org. http://drupal.org/project/cvs/149452

I hate to slightly hijack this thread, but I want to get you guys the functionality you want today. My apologies, Guidet! Menu block has just been ported Drupal 6 and its easy to re-create any single level menu blocks you previously had. Just "Add new menu block" on block admin page, pick your menu and then select "Level" and set the depth to "1".

Menu block won't upgrade your Sliced menu blocks from an existing D5 site, so you'll have to wait for Sliced menu 6.x for that ability.

murz’s picture

subscribe

CharlieCheese’s picture

Just checking to see if there is any news on the D6 version as yet? I have a site that would love this module.

alwex’s picture

StatusFileSize
new10.49 KB

hi everybody,

I am very sorry for beeing so late in posting a new version of the module.

here is the 6.x version of slicedMenu. I have actually trouble with the CVS, so I put it on attachement on this message.

Hop it help !

edward.peters’s picture

alexw: many thanks for all this hard work and for sharing with the community. It will be great if it can get onto the project page.

wotsoft’s picture

I downloaded you D6-port and try to use the theme-functions. Without any luck.

I found out you didn't apply the hook_theme. (http://api.drupal.org/api/function/hook_theme/6).
You should add the following code to let Drupal know you have some theme-functions available.

/**
 * Implementation of hook_theme().
 */
function slicedmenu_theme() {
  return array(
    'slicedmenu_item' => array(
      'arguments' => array('link' => NULL, 'trail' => NULL)),
    'slicedmenu_tree' => array(
      'arguments' => array('menu_name' => NULL, 'level' => NULL, 'all_sub_items' => NULL)),
  );
}

You should also change:
[147] $tree .= theme_slicedmenu_item($link, $trail);
into:
[147] $tree .= theme("slicedmenu_item", $link, $trail);

And:
[196] $output = theme_slicedmenu_tree($menu_name, $level, $all_sub_items);
into:
[196] $output = theme("slicedmenu_tree", $menu_name, $level, $all_sub_items);
Greetz,

WotSoft

Ibn al-Hazardous’s picture

Thanks guys! I have the code up and running, and with wotsoft's changes I've gotten the theming stuff to work quite nicely too. :)

Alwex, do you still have trouble with CVS? It would be very conveniet to have the update check working without having to browse the bug threads every now and then. <:)

summit’s picture

Subscribing, interested in working D6 .dev or 1.0 version also.
greetings, Martijn

geek-merlin’s picture

subscribing.

Ibn al-Hazardous’s picture

Is this dead, or what? I use sliced menu in more than one project, and I like it for its simplicity. I would hate to switch to another solution.

Apart from that, I have a problem with sliced menu on one D6 installation:
In the function theme_slicedmenu_tree there is a call to menu_get_active_breadcrumb. If the user is logged in, this works perfectly, but for guests it returns empty. Anyone seen anything like it?

Cheers!