Originally Posted by
honatto
Yeah, I thought so, too. The problem is I kind of struggle with "Admin Page Registration" tool. I have my .php script with name "generator.php" in a folder inside /admin/ and a CSS file in the same folder as well. Where do I have to place the .php file now?
I've created a corresponding language page name definition, for example "BOX_HEADING_THIRDPARTY" in both English and secondary language. I put the script "generator.php" in my admin folder. And filled the form as follows:
Page Key - ThirdPartyModule
Page Name - BOX_HEADING_THIRDPARTY
Page Filename - generator.php / generator (neither works)
Page Parameters - empty
Menu - picked the desired menu and marked display
And I get "The filename definition entered does not exist. Please check that it has been spelt correctly."
I am doing something wrong. Mainly because all articles and topics regarding "Admin Page Registration" are related to plugins and not third-party pages / scripts.
Assuming that the form is that displayed by the Admins::Admin Page Registration tool, you'll need to create a /includes/extra_datafiles/thirdpartymodule.php that contains two defines:
PHP Code:
define('BOX_HEADING_THIRDPARTY', 'The text to display on the menu');
define('FILENAME_THIRDPARTY', 'generator');
Then you'll enter FILENAME_THIRDPARTY for the Page Filename and choose the Menu on which the tool's sub-menu-item is to be displayed.
Bookmarks