Christopher Ambler Posted March 15, 2010 at 05:17 PM Share Posted March 15, 2010 at 05:17 PM Okay, now that I've leveraged the geomaps for my users to pick their location, it's time to display it all. So I'm looking at the geomaps module and see that it calls into the plugin after setting some parameters. One of the parameters is where it gets its data from. So setting the ['data']['controller'] to 'module_geomaps' the action is also set to 'listings' which, I presume, means that the display is going to then look at the parameters for the module to figure out which listings to look for, and all of the actual work is going to get done in ModuleGeomapsController::listings() that lives in components/com_jreviews_addons/geomaps/controllers/modules/module_geomaps_controller.php yes? Okay, so if I want to get the data myself, would it be as easy as changing the ['data']['action'] to 'memberlocations' (for example) and creating a function called memberlocations() in ModuleGeomapsController? Then I could load up the latitude and longitude of my membership for display? Is it that easy? Or is there a better way? Would I be better off cloning ModuleGeomapsController and calling it something like ModuleGeomapsMembershipController? If so, how would I map the value I passed in ['data']['controller'] to the new class? Point me in the right direction :-) Link to comment
Alejandro Posted March 15, 2010 at 06:56 PM Share Posted March 15, 2010 at 06:56 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Christopher Ambler Posted March 15, 2010 at 07:35 PM Author Share Posted March 15, 2010 at 07:35 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted March 15, 2010 at 08:10 PM Share Posted March 15, 2010 at 08:10 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Christopher Ambler Posted March 15, 2010 at 08:12 PM Author Share Posted March 15, 2010 at 08:12 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted March 15, 2010 at 08:24 PM Share Posted March 15, 2010 at 08:24 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Christopher Ambler Posted March 15, 2010 at 08:26 PM Author Share Posted March 15, 2010 at 08:26 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Christopher Ambler Posted March 15, 2010 at 10:17 PM Author Share Posted March 15, 2010 at 10:17 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts