Username Password
Bookmark and Share

Editable Toggle Macro

^EditableToggle; or ^EditableToggle();
Exactly the same as AdminToggle, except that the toggle is only displayed if the user has the rights to edit the current Asset. This macro takes up to three parameters. The first is a label for "Turn Admin On", the second is a label for "Turn Admin Off", and the third is the name of a template in the Macro/EditableToggle namespace to replace the default template.

This Macro may not be nested inside other Macros.

The following variables are available in the template:


toggle.url The URL to activate or deactivate Admin mode. toggle.text The Internationalized label for turning on or off Admin (depending on the state of the macro), or the text that you supply to the macro.

Keywords: macro

Search | Most Popular | Recent Changes | Wiki Home
© 2022 Plain Black Corporation | All Rights Reserved