Hi, Iām working on creating an installable package file, nearly completed. I canāt find any documentation on how to create a link in the Admin section of Suite, System area that links to a custom module, exactly the way that the OAuth entry works - any pointers to code greatly appreciated
anyone? Surely this must be fairly simple to accomplish? I have seen information like the following:
āadministrationā =>
array
(
array
(
āfromā => ā/administration/mycustommodule_adminoption.phpā,
),
),
but NO information on what is contained in the referenced php file? What specifies the section that the code is added to, what code is in the file?
Any assistance/example code gratefully accepted
For anyone that scrolls through these forums endlessly and seldom finds an answer or gets a reply, I managed to find the following, place this code in your manifest.php
āadministrationā=> array(
array(āfromā=>ā/menus/administration.ext.phpā,
),
),
Create something like the following in your administration.ext.php file and place it in the menus folder of your module files/folder structure
$admin_option_defs=array();
$admin_option_defs[āYour Moduleā][āblah blahā]= array(āConfiguration Settingsā,āLBL_YOUR_SECTIONā,āLBL_YOUR_RELEASEā,ā./index.php?module=YourModule&action=indexā);
$admin_group_header[]= array(āLBL_MODULE_TITLEā,āā,false,$admin_option_defs, āLBL_MODULE_DESCā);
Donāt forget your language files for all the labels etc. It will create a clickable link in the Admin page. I have no idea if this is the ācorrectā manner to do this, however, it works and I havenāt found any other source materials associated with this function
Cheers and good luck