Recent blog posts
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.
| Attachment | Size |
|---|---|
| magic_tabs.txt | 906 bytes |
- amariotti's blog
- 5293 reads
