amariotti.com

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

Recent blog posts

  • 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
  • 1 Year
  • Happy Birthday WWW!
more

Recent comments

  • Turning off PHP suhosin
    36 weeks 1 day ago
  • The code for D5 is posted
    36 weeks 3 days ago
  • Repost the code please :)
    37 weeks 9 hours ago
  • Hi, very nice post. I have
    38 weeks 3 days ago
  • Great post! I'll subscribe
    38 weeks 5 days ago
  • Cool! It works perfectly..
    40 weeks 13 hours ago
  • I'm having the same problem.
    40 weeks 5 days ago
  • Hello again. It's working but
    40 weeks 6 days ago
  • I'm having the same issue, it
    40 weeks 6 days ago
  • Yes, when I open the page I
    40 weeks 6 days ago

Blog tags

drupal drupal 6 drupal issue liquidweb module modules that I love os x random rss Salesforce.com software theming
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
  • 3395 reads

Attached File is Missing

Anonymous — Mon, 09/29/2008 - 21:11

Hi, there's no file to download. :-(

  • reply

I just fixed the issue with

amariotti — Tue, 09/30/2008 - 23:21

I just fixed the issue with anonymous users not being able to see my attached files. My apologies...

  • reply

Thanks for the file

Zoran (not verified) — Mon, 03/30/2009 - 20:00

Thanks for the file download. online roulettepoker siteonline blackjackvideo pokerdownloading movies

  • reply

Thanks for the file download.

full tilt (not verified) — Tue, 05/12/2009 - 02:25

Thanks for the file download.

  • reply

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <b> <p> <br>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You may use <swf file="song.mp3"> to display Flash files inline

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
  • about
  • blog
  • portfolio
  • resumé
  • modules
  • contact