i am trying to modify the com_phocamaps to add the "Copy marker" action.
I have created the button modifying function addToolbar with this line JToolBarHelper::customX( 'phocamapsmarker.copy', 'copy.png', 'copy_f2.png', 'Copy Marker' );
in the com_phocamaps/views/phocamapsmarkers/view.html.php but i don´t know where i have to set the action to execute de COPY task.
When I click this new button, Joomla throws a 500 Error.
I want to implement a litle function to copy the marker and set Publish = 0 to change the map.
Thanks
you need to write that function in controller
go to administrator\components\com_phocamaps\controllers\phocamapsmarker.php
and write this function