Jump to content

Module back-end tabs


Recommended Posts

I'm using the helperForm() to create 4 forms which are displayed on one page, they all have their own submit button (which submits all forms at once)... So I'd like to split these forms into tabs rather than put them on one page...

 

I can't find any info, or any module that implements this so that I can look at any example...

Link to comment
Share on other sites

Nevermind, I found the solution by reading the helperForm.php file, it's actually pretty easy:

 

For some reason I can't paste anything, so pretty much what I needed to do is:

Add the tabs in the forum:

 

'tabs' => array(
    'TAB1' => 'General',
    'TAB2' => 'Next tab'
),

 

And than put the controls in their tabs

 

'input' => array(
   array(
      'type' => 'switch',
     'tab' => 'TAB1',
   ),
),
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...