amariotti.com

  • about
  • blog
  • modules
  • portfolio
  • resumé
  • contact
Home › Blogs › amariotti's blog

Recent blog posts

  • Reverse NodeReference Block - Revisited
  • CS4 Keyboard Issues
  • Text Formatter Module
  • Cool Apache ReWrite Trick
  • New RSS Feed
  • Find My iPhone
  • Congratulations, Drupal!
  • Re-Launched on Drupal 6
  • Copying + Pasting from Word into Drupal
  • Page Not Found on Node Creation
more

Blog tags

cck drupal drupal 6 drupal issue liquidweb module modules that I love os x random review views xbox
more tags

Some fun with the Magic_Tabs Module

amariotti — Thu, 06/19/2008 - 11:42

Now that Father's Day and the important birthdays in my family past it's time to start blogging again. I've been able to do some pretty cool things over the last few days with the limited PHP experience that I have. That's the beauty of Drupal!

One issue that I kept running into with a site that I'm working on for my job is that we needed multiple menu blocks for different departments. It is getting to the point where we would need two long menu blocks for each department. It's been a frustrating issue that wasn't really a big deal until I actually saw them on the site.

I came across the magic_tabs module last week and a light bulb turned on. Why not use that module and combine the blocks into one with tabs seperating each menu? This module did ALL of the heavy lifting for me which made my job easy. I threw the function in my template.php file and started styling. Once I got the styling where I wanted it I editted my function to include the blocks I needed and then added if statements to make sure that the roles that needed to see them would.

The result is attached in a txt file.

AttachmentSize
magic_tabs.txt906 bytes
  • drupal
  • module
  • amariotti's blog
  • 5293 reads
  • about
  • blog
  • modules
  • portfolio
  • resumé
  • contact