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:
<?php 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? |
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:
/** |
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! |
All times are GMT -8. The time now is 11:45 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.