Jump to content

Admin module page with horizontal tabs


Recommended Posts

Hi,

I'm building an admin module and I cannot seem to find a way to add horizontal tabs like in Shop Parameters > General as an example, there are tabs in the main content like General and Maintenance, screenshot attached.

Where can I find documentation on the template system and general UI?

I use PS 8.1.6

Thank you,

Claudiu

Untitled.png

Link to comment
Share on other sites

  • 4 weeks later...
On 6/6/2024 at 4:08 PM, Prestashop Addict said:

Use PrestaShopBundle\Entity\Repository\TabRepository::findOneIdByClassName($className) where className is where you want to place your Tab

Found that adding content to the template render 'headerTabContent' does the trick.

In example:

return $this->render(
            '@Modules/yourmodule/views/templates/admin/dashboard.html.twig',
            [
                'layoutTitle' => $this->module->displayName,
                'headerTabContent' => $this->getheaderTabContent($menu),
            ]
        );

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...