plainblack.com
Username Password
search
Bookmark and Share
Subscribe

Admin Toggle Macro

^AdminToggle();
^AdminToggle([enable admin], [disable admin], [template name]);
Places a link on the page which is only visible to content managers and administrators. The link toggles on/off admin mode. You can optionally specify other messages to display like this: ^AdminToggle("Edit On","Edit Off"); This macro optionally takes a third parameter that allows you to specify an alternate template name in the Macro/AdminToggle namespace.

This Macro may be nested inside other Macros if the text does not contain commas or quotes.

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: admin macro

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