DenRaf's Blog

  • Contact

Contact
View Raf Nijskens's profile on LinkedIn
OpenSource
Linux
Powered by Drupal, an open source content management system
Get Firefox
Fosdem
Visit Inuits Technical home

Locations of visitors to this page

Tags in TagCloud

5 6 ADP1 Android apache automaticmenu caching cardreader cats Centos closed source cron Debian dell Dell R200 deploy Dream driver drupal drupalcron eclair Fosdem funambol mysql node_page O2Micro old openfire OpenID OSD otrs password trigger password_trigger plutado Ports presentation recover response header rpm script svn sync syncml tagadelic taxonomy terminal logging theme ubuntu update upgrade user filter user_import virt-manager wordpress wordpress 2.3 wp2drupal xmlsitemap zabbix zimbra Zimbra LDAP
more tags
Home » Blogs » DenRaf's blog

Porting 5.x theme to 6.x

Submitted by DenRaf on Mon, 05/05/2008 - 14:47
  • [View]

When going to drupal 6 I needed also to upgrade our theme.
I had everything quiet fast, just the menu-tree was a big pain.

The code for the drupal 5 theme was:
print theme('menu_tree',variable_get('menu_primary_menu',0));

And now for drupal 6 it is:
print menu_tree($menu_name = 'primary-links');

  • DenRaf's blog
  • Add new comment
Tags:
  • drupal
  • drupal
  • menu_tree

3 reponses to "Porting 5.x theme to 6.x"

1. Finally

Submitted by Sean (not verified) on Fri, 08/15/2008 - 17:26.

Thanks DenRaf. I spent hours on Drupal searching for this and all of the snippets I was finding were for Drupal 5. Finally, I've got a drop down menu working with Drupal 6 Primary Links. :)

  • reply

2. menutree.module?

Submitted by Anonymous on Sat, 05/17/2008 - 02:56.

Just curious... why not just use: http://drupal.org/project/menutree ?

  • reply

3. Depencency

Submitted by DenRaf on Fri, 05/30/2008 - 23:37.

I just don't think that a theme should have a dependency.

  • reply

Guided search

Click a term to initiate a search.

Categories

  • drupal (26)
  • Linux (6)
  • SysAdmin (6)
  • Uncategorized (5)
  • Linux-tools (3)

Date authored

  • 2010 (5)
  • 2009 (10)
  • 2008 (27)
  • 2007 (11)

TagCloud

  • drupal (26)
  • Ports (7)
  • cron (6)
  • drupalcron (6)
  • 6 (3)
  • OSD (3)
  • zimbra (3)
  • cats (2)
  • Fosdem (2)
  • funambol (2)
  • more...

Recent blog posts

  • OSD2010: Day 2
  • OSD2010: Day 1
  • OSD2010: Pre notes
  • Howto: Android 2.1 on G1/ADP1/Dream
  • Updated look
  • Zimbra monitoring with zabbix
  • New module: Node Page Template
  • AutomaticMenu module for drupal 6
  • Drupal synchronisation
  • Imagefield_gallery module for drupal 6
more

Recent comments

  • I've installed it on my
    1 week 5 days ago
  • I am also having the same
    3 weeks 4 days ago
  • No Video
    4 weeks 1 day ago
  • Good, just finished the
    5 weeks 2 days ago
  • Screenshot Item Trigger
    5 weeks 4 days ago
  • You don't need 2 because
    10 weeks 3 days ago
  • Oracle plugin
    10 weeks 5 days ago
  • private serverlar
    10 weeks 5 days ago
  • Thanks much for providing
    11 weeks 12 hours ago
  • Templates give you a general
    11 weeks 2 days ago

Syndicate

Syndicate content
I love Smashing Magazine!
Fervens Drupal theme by Leow Kah Thong. Designed by Design Disease and brought to you by Smashing Magazine.