ClaudiuMaftei Posted June 5 Share Posted June 5 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 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted June 6 Share Posted June 6 Use PrestaShopBundle\Entity\Repository\TabRepository::findOneIdByClassName($className) where className is where you want to place your Tab Link to comment Share on other sites More sharing options...
ClaudiuMaftei Posted July 5 Author Share Posted July 5 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now