By default, Drupal hides a tab if there is the only one tab. In some cases, especially with "client design" it is quite useful to have even the single tab visible. The patch allow you to add it on page by page bases. It may be included in the

-------
Bernard Szlachta
http://www.nobleprog.co.uk/drupal/training
http://www.nobleprog.us/drupal-training-courses

CommentFileSizeAuthor
menu.inc_.patch1.35 KBbnobleman

Comments

stevenpatz’s picture

Version: 5.7 » 7.x-dev

features should go into the dev version.

Rowanw’s picture

This seems very pointless to me, there should never be a lone tab on any page, ever.

Please offer a better reason than "client design".

chx’s picture

Status: Needs review » Closed (won't fix)

agreed. this does not sound like a good idea.

barnettech’s picture

Status: Closed (won't fix) » Active

I have a design requested of me where I need one tab. It preserves the look and feel of our other pages which also use tabs. So for now we'll use jquery to hide the 'phantom' tab necessary to achieve this in Drupal. I've re-opened this issue, to second the need for this functionality.

barnettech’s picture

For those landing on this page in search of a solution due to clients that insist on one tab, like my employer, this jquery will get rid of the second "phantom tab" you need to create for this effect:

if (Drupal.jsEnabled) {
    $(document)
            .ready(function() {
               $('ul.tabs li:eq(1)').hide();
            });
              
};
stevenpatz’s picture

Status: Active » Closed (won't fix)
stevenpatz’s picture

Issue summary: View changes

added signature