| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding Tabs to Admin Pages | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Adding Tabs to Admin Pages
So, I followed this guide (https://devs.x-cart.com/design_changes/adding_tabs.html) in order to learn how to add a tab to an Admin Page. It worked in adding the custom tab to the Products page, however; when I tried to implement the same procedure to add a tab to the Front Page settings page, it simply added the body of my tab's template between the page title and the row of tabs.
Code:
Are the tabs on this page handled differently than those on the Products page? How can I properly place my template as a tab on the Front Page settings page?
__________________
X-Cart version 5.4.1.46 PHP version 7.4.33 MySQL version 15.1 Apache version 2.4.56 cURL version 7.74.0 |
|||||||||
#2
|
|||||||
|
|||||||
Re: Adding Tabs to Admin Pages
As a matter of fact the tabs are handled differently. You can look at the code of the controller class for front page, and you will see that there is no method called getPages()
Instead the class View/Tabs/FrontPage.php has a method called defineTabs() Code:
Code:
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Adding Tabs to Admin Pages
Thank you, Ed.
I have managed to add the tab, and even have my module's configuration settings show up here. Somehow, though, the form table for adding records to the module's models is not showing up. That, however is the subject matter for another thread. Thanks again for pointing me in the right direction. Cheers!
__________________
X-Cart version 5.4.1.46 PHP version 7.4.33 MySQL version 15.1 Apache version 2.4.56 cURL version 7.74.0 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|