By krymp on
Is it possible to hide Vertical Tabs in a more elegant way other than CSS? I don't want to hide it from every page just on the home page. I can hide it using css, but is that the correct "Drupal" way?
Is it possible to hide Vertical Tabs in a more elegant way other than CSS? I don't want to hide it from every page just on the home page. I can hide it using css, but is that the correct "Drupal" way?
Comments
The Drupally way is to dig
The Drupally way is to dig into the module code and pull out the part(s) that renders the Vertical Tabs functionality, copy it into template.php or a custom module, and rewrite it so that it ignores the home page. If it's purely an aesthetic decision, you're much better off (from a cost-benefit standpoint) hiding it with CSS or removing it from the DOM with javascript.
Addendum: Unless, of course, someone hands you a ready-built solution. They're usually pretty good too.
Removing it by using CSS took
Removing it by using CSS took 30 seconds and does the job perfectly ; )
vertical tab items on the admin interface
The option to show/hide vertical tab items on the admin interface is easy with:
http://drupal.org/project/simplify
A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com