Friday 12 February 2010 6:53:45 am
Bruce, Thanks for the first piece of advice of eliminating the ModuleList[] line. Worked great. However, I'm still having trouble with module2. I'll try to list the contents of module.php for both in this post, but they may get a little lengthy. Anyway, here is what my extension/mycompany/modules/module1/module.php file looks like:
<?php
$Module = array( 'name' => 'Module 1',
'variable_params' => true );
$ViewList = array();
//*********** All items that deal with viewing data ***********
$ViewList['dart_local_content_view'] = array(
'functions' => array( 'public' ),
'script' => 'dart_local_content_view.php',
'ui_context' => 'view',
'default_navigation_part' => 'ezcontentnavigationpart',
'params' => array( 'node_id' ), 'unordered_params' => array( 'dart_id' => 'dart_id' ) ); //*********** All items that deal with processing data ***********
$ViewList['process_dart_local_content'] = array(
'functions' => array( 'public' ),
'script' => 'process_dart_local_content.php', 'params' => array( 'node_id', 'corporate_id' ) );
$FunctionList['public'] = array();
$FunctionList['private'] = array();
$FunctionList['admin'] = array(); ?> The process file just processes the results of the view file and returns back to the view file, which works fine. Now for module2/module.php:
<?php
$Module = array( 'name' => 'Module 2',
'variable_params' => true );
$ViewList = array();
$ViewList['update_list_item_locations'] = array(
'function' => array( 'public' ),
'script' => 'update_list_item_locations.php',
'ui_context' => 'administration',
'default_navigation_part' => 'ezcontentnavigationpart',
'params' => array( 'node_id' ) );
$FunctionList['public'] = array();
$FunctionList['private'] = array();
$FunctionList['admin'] = array(); ?> The primary difference in how I access the modules is that module1 has a node that directly links over to the module. Thus there is a 'view' phase before the 'process' steps. As for module2, there is no 'view' phase so an overloaded template provides the 'process'. Hope this is somewhat clear, and thanks for the help so far, -erik
|