diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 464dbd114..258eac8c9 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -56,6 +56,7 @@ - Added "Save and Commit" option for environments where the appearance of workflow is unwanted. - fix: WebGUI::International::get can't handle spaces + - fix: makePagePrintable macro uses style name instead of styleId 7.0.2 diff --git a/lib/WebGUI/i18n/English/Macro_r_printable.pm b/lib/WebGUI/i18n/English/Macro_r_printable.pm index 334dc27e1..e53be6287 100644 --- a/lib/WebGUI/i18n/English/Macro_r_printable.pm +++ b/lib/WebGUI/i18n/English/Macro_r_printable.pm @@ -26,17 +26,17 @@ our $I18N = { message => q|

^r(link text)
^r("",custom style name)
-^r("",custom style name,custom template 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!","WebGUI");. +

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 name of the template. The following variables are available in the template:

+

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:

NOTES:The .makePrintableLink style sheet class is tied to the default template for this macro.