We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Module's custom publish tab name

Development and Programming

vinci's avatar
vinci
85 posts
15 years ago
vinci's avatar vinci

Where do you define the name of the publish tab for a module? I have the publish tab working well, although it has inherited the name of the module. I would like to define this. Thanks.

       
blueAlien's avatar
blueAlien
11 posts
15 years ago
blueAlien's avatar blueAlien

http://ellislab.com/expressionengine/user-guide/development/modules.html

function tabs()
{
    $tabs['tab_name'] = array(
        'field_name_one'=> array(
            'visible'    => 'true',
            'collapse'    => 'false',
            'htmlbuttons'    => 'true',
            'width'        => '100%'
            ),
        'field_name_two'=> array(
            'visible'    => 'true',
            'collapse'    => 'false',
            'htmlbuttons'    => 'true',
            'width'        => '100%'
            ),                            
        );    
                
    return $tabs;    
}

Change $tabs[‘tab_name’] to $tabs[‘YOUR TAB NAME’]

       
vinci's avatar
vinci
85 posts
15 years ago
vinci's avatar vinci

Thanks, but I have tried this, and it did not work.

function tabs()
    {
        $tabs['Widgets'] = array(
            'widgets'    => array(
                'visible'    => 'true',
                'collapse'    => 'false',
                'htmlbuttons'    => 'false',
                'width'        => '100%'
            )
        );    
        return $tabs;    
    }
       
blueAlien's avatar
blueAlien
11 posts
15 years ago
blueAlien's avatar blueAlien
$tabs['widgets'] = array(
            '_tab_label' => 'Widgets',
            'widgets' => array(
                'visible'    => 'true',
                'collapse'    => 'false',
                'htmlbuttons'    => 'true',
                'width'        => '100%'
            )                        
        );

Try this as well, I noticed that Revisions uses the extra ‘_tab_label’ array item. I tried it on a module I created and it worked.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.