[Solved] Error title header in menu admin

Discussion forum for MOD Writers regarding MOD Development.
Locked
User avatar
Dakin Quelia
Registered User
Posts: 300
Joined: Thu Feb 14, 2008 10:07 pm
Location: Belgium
Name: Daniel Chalsèche
Contact:

[Solved] Error title header in menu admin

Post by Dakin Quelia »

Hello,

I work on Admin Control Panel to have my own tabs. I would like add a line in this code but that doesn't work. I use STK mod for this project. :smile2:

Original Code:

Code: Select all

return array(
    'title'                => 'ADD_USER',
    'vars'                => array(
        'legend1'                => 'ADD_USER',
        'ad_username'            => array('lang' => 'USERNAME', 'explain' => false, 'type' => 'text:40:255'),
        'ad_userpass'            => array('lang' => 'PASSWORD', 'explain' => false, 'type' => 'password:40:255'),
    )
);          
Code modified:

Code: Select all

return array(
    'title'                => 'ADD_USER',
    'menu_title'         => 'TEST',
    'vars'                => array(
        'legend1'                => 'ADD_USER',
        'ad_username'            => array('lang' => 'USERNAME', 'explain' => false, 'type' => 'text:40:255'),
        'ad_userpass'            => array('lang' => 'PASSWORD', 'explain' => false, 'type' => 'password:40:255'),
    )
);
          
It must display 'TEST' in the red box in the title header:

Image

I don't know to define or to use menu_title in plugin and I would like the menu header is repeated only once through:

Code: Select all

 'menu_title'         => 'TEST',      
If this one is identical in the php files. It doesn't work.

See you soon,
Locked

Return to “[3.0.x] MOD Writers Discussion”