Custom mode or sub tab on built in UCP module

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
fkreynolds
Registered User
Posts: 2
Joined: Wed Oct 28, 2020 12:25 pm

Custom mode or sub tab on built in UCP module

Post by fkreynolds »

Hi all,

I'm hoping to modify the built in Overview tab on the UCP from the perspective of a custom extension. What's the best way to modify the Overview "parent" tab to include a custom sub tab or "mode"? Should I extend the includes/ucp/ucp_main and includes/ucp/info/ucp_main_info classes? I tried following the documentation I could find for creating a custom module but based on that I think creating just a single mode to modify an existing module would be a different process?
rxu
Extensions Development Team
Posts: 3456
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: Custom mode or sub tab on built in UCP module

Post by rxu »

fkreynolds
Registered User
Posts: 2
Joined: Wed Oct 28, 2020 12:25 pm

Re: Custom mode or sub tab on built in UCP module

Post by fkreynolds »

Thanks. That's some of the documentation I already reviewed. Seems like it creates a completely separate module.
User avatar
KaileyT
Community Team Member
Community Team Member
Posts: 2899
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Custom mode or sub tab on built in UCP module

Post by KaileyT »

Haven't tested this, but I had to do something similar in the ACP. Here's a sample migration:

Code: Select all

public function update_data()
{
    return [
        ['module.add', [
            'ucp',
            'UCP_MAIN',
            [
                'module_basename'    => '\foo\bar\ucp\my_module',
                'modes'              => ['my_settings'],
            ],
        ]],
    ];
}
Kailey Truscott - Community Team
Post Reply

Return to “Extension Writers Discussion”