Initialization Function showInFloatingBox()

protected final function showInFloatingBox(
$showInFloatingBox = true, $floatingBoxParams = false
)

Summary

Allows you to show your Plugin in a floating box rather than on the page.

Where You Can Use It

You can use this for any non-nested Plugin, Can be used in your plugin's init() method, from Zenario 7.0.0 onwards.

From Zenario 7.0.0 onwards you can use this for nested Plugins.

Description

The ability to open in a floating box allows you to create a Plugin which is small in size and does not take up much room on your design, but which can still have a larger mode or form if a Visitor interacts with it.

For example, the CMS ships with a Plugin which allows Visitors to email a link to the page that they are on. This appears as a link on the page, however when a Visitor clicks the link a larger form appears floating above the page, which lets them enter in an email address and a message.

Note that this logic relies on JavaScript to function. You may wish to include alternate logic to support Visitors without JavaScript, for example there could be a link to take them to a different page in the CMS.

Parameters

$showInFloatingBox

You can set this to false to cancel a previous call to showInFloatingBox().