Passed
- Join Date:
- Aug 2004
- Location:
- Belfast, Northern Ireland
- Posts:
- 2,480
- Plugin Contributions:
- 4
Admin Page Registration for 3rd Party Modules
Hi,
How exactly are third party modules supposed to add pages to the Admin, now that support for boxes/extra_boxes has been dropped?
Obviously a call to zen_register_admin_page() can be made but there is no documentation with this new version of Zen Cart about when the appropriate time would be to make that call... which seems like a pretty major omission for the docs! :)
At the minute I'm thinking of simply adding a file which gets loaded by one of the existing auto-loading directories.
But this file would simply call the above function to register a page that can then be accessed by the admin user through the admin menu.
This seems rather wasteful of system resources as this file will autoload every time an admin page is opened.
The solution to that is then to unlink() the auto-loading file once the module's page has been accessed through the menu for the first time, but none of this is a "desirable" way to work.
Any information for a confused third party developer would be greatly received.
Thanks!
All the best..
Conor