Organizer Method handleOrganizerPanelAJAX()

public function handleOrganizerPanelAJAX(
$path, $ids, $ids2, $refinerName, $refinerId
) { //...your PHP code...// }

Summary

You can handle AJAX requests in Organizer by writing this method.

Context

This Method will be called to handle any AJAX requests for any buttons you create in Organizer.

Where You Can Use It

From Zenario 7.0.0 onwards.

Parameters

$path

The tag path to the panel that is currently being accessed.

$ids

The id of the current item selected, or if multiple items are selected, a comma-separated list of ids.

Note that this value will always be empty for actions on collection buttons.

$ids2

If you are using the <combine_items> tag you will be given a second comma-separated list of items for the Admin's second selection.

$refinerName

The name of the refiner that is being applied to the Panel, if there is one.

$refinerId

The value of the refiner that is being applied to the Panel, if there is one.

Note that if you wish to access the values of refiners used on previous panels then they will be available in the $_GET request.

Return Value

If as a result of your actions you create a new item, then you should return the id of that item.

If you create multiple items then you should return an array of ids.

Otherwise no return value is needed.