It looks like you're new here. If you want to get involved, click one of these buttons!
I am working on a simple module for a dictionary, and in addition to the "Create" button that comes with the simple module, I want to add an 'list_actions' button to bring the user to a custom page where they can upload a file that will be parsed and inserted into the dictionary database. So far I have set up the module like this in MY_fuel_modules.php:
$config['modules']['dictionary'] = array( 'module_name' => 'SLP Dictionary', 'permissions' => 'dictionary', 'js'=>'DictionaryController.js', 'display_field' => 'headword', 'table_headers' => array( 'id' => 'Entry #', 'headword' => 'Headword', 'gloss_en' => 'English', 'gloss_nep' => 'Nepali', 'theme' => 'Theme' ), 'icon_class' => 'ico_logs', 'archivable' => TRUE, 'list_actions' => array( 'dictionary/upload' => 'Bulk Upload SFM' ), 'pages' => array( 'base_uri' => 'dictionary', 'list' => 'dictionary/all', 'post' => 'dictionary/entry', ), );
A button is generated at the top which says "Bulk Upload SFM." However, when I click it, it takes me to http://.../fuel/dictionary/upload and this page generates a 404. How can I add a route to this page and select the admin view for it?
Should I make the bulk uploader a separate simple module?