×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: onAfterHotspotSave

onAfterHotspotSave 8 years 7 months ago #33901

  • Dima um
  • Dima um's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Hello Daniel,
I made a plugin on basis of your email plugin. In the function "onAfterHotspotSave" I call
$jform = JFactory::getApplication()->input->get('jform', array(), 'array');
Which is fine but in hotspot edit I get it only partial. Essentially I am not getting the hotspot id, which I need.
It does exist in the form here:
<input type="hidden" id="hotspot-id" name="hotspot-id" value="1534">

Here is the print_r of $jform:
Warning: Spoiler! [ Click to expand ]


So how can I get the hotspot id in "onAfterHotspotSave" function?

Thanks

onAfterHotspotSave 8 years 7 months ago #33944

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The id of the hostpot should be in the $data parameter that is passed to the function.
  • Page:
  • 1
Time to create page: 0.121 seconds