Username Password
Bookmark and Share

Make Page Printable Macro

^r(link text);
^r("",custom style name);
^r("",custom style id,custom template URL);
Creates a link to alter the style from a page to make it printable.

The macro takes up to three arguments. The first argument allows you to replace the default internationalized link text like this ^r("Print Me!");. If this argument is the string "linkonly", then only the URL to make the page printable will be returned and nothing more. If you wish to use the internationalized label but need to use multiple arguments to change the printable style or template, then use the empty string.

Normally, the default style to make the page printable is the "Make Page Printable" style. The second argument specifies that a different style than the default be used to make the page printable: ^r("Print!","MyStyleTemplate0000007");. The style has to be specified by the ID, not the name or url of the style.

The third argument allows a different template be used to generate the HTML code for presenting the link and text, by specifying the URL of the template. The following variables are available in the template:


  • The .makePrintableLink style sheet class is tied to the default template for this macro.
  • This Macro may only be nested inside other Macros if the "linkonly" option is used.



printable.url The URL to make the page printable. printable.text The translated label for the printable link, or the text that you supply to the macro.

Keywords: macro

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