Quote:
|
Originally Posted by URtech
I followed all your instructions. I wasn't totally sure about how to complete the field_arrays.php file declarations based on the file you provided didn't appear to match with the zz_Work syntax. In any case, I can now see the "Import" in the menu on my custom module, but when I click it, I get a blank area under "Import Step 1: Select the source" where I'd normally see the options to choose the format to upload.
|
So let's step through this.
Menu Item
When you install the zz_Work sample module, the Module Loader creates a menu item file based on the entries in manifest file. Specifically the custom/Extension/modules/zz_Work/Ext/Menus/Work.php file gets created. When you run Quick Repair, this file generates your menu entry in your mdoule. So you need a comparable file for your custom module.
Since you have a menu item, it sounds like this is covered.
Import.php in your custom module directory
As you see in the sample module, we install a file called modules/zz_Work/Import.php. This file is necessary to redirect from the zz_Work module to the Import module and carry the zz_Work module reference along with it.
Since you are seeing the Import module when you click on the menu item, it sounds like you have the proper Import.php file in your custom module directory.
Import config.php
Have you modified the modules/Import/config.php file to register your module in the $import_bean_map[] array? It needs to point to the prefix for the file that will do the actuall import logic.
For example in the zz_Work sample module, you will see in the modules/Import/config.php file on line 54 that I added the following:
PHP Code:
,'zz_Work' => 'Importzz_Work'
The syntax here is very important. The array entry key "zz_Work" (left side) has to match the module name (not the bean name, but the module name). The array entry value "Importzz_Work" (right side) has to match the file prefix for the new file you will create that contains the actual import logic for your new module. In this case, Importzz_Work maps to the modules/Import/Importzz_Work.php file.
My guess is that you have either not properly registered the new modle in the $import_bean_map[] array or your have not created the modules/Import/Import<your_module>.php file.