Initialization Function showInEditMode()

protected final function showInEditMode(
$shownInEditMode = true
)

Summary

Call this function from a library plugin to make that plugin visible in Edit Mode.

Where You Can Use It

From within your init() method, from Zenario 7.0.2 onwards.

Description

By default, library plugins are not shown whilst in edit mode, and an administrator using the CMS cannot open their drop-down menu in edit mode.

By calling this function you can make them appear, and allow their drop-down menu to be opened.

Note that even if their drop-down menu can be opened, there is not usually any controls for a reusable plugin whilst in edit mode, unless you have added some using the fillAdminSlotControls() method.