fixing doc bug in r_printable macro docs

This commit is contained in:
Colin Kuskie 2006-07-26 01:37:57 +00:00
parent 927d097375
commit b3f042de84
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -26,17 +26,17 @@ our $I18N = {
message => q|
<p><b>&#94;r(<i>link text</i>)</b><br />
<b>&#94;r("",<i>custom style name</i>)</b><br />
<b>&#94;r("",<i>custom style name</i>,<i>custom template name</i>)</b><br />
<b>&#94;r("",<i>custom style id</i>,<i>custom template URL</i>)</b><br />
Creates a link to alter the style from a page to make it printable.
</p>
<p>The macro takes up to three arguments. The first argument allows you to replace the default internationalized link text like this <b>&#94;r("Print Me!");</b>. 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.
</p>
<p>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: <b>&#94;r("Print!","WebGUI");</b>.
<p>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: <b>&#94;r("Print!","MyStyleTemplate0000007");</b>. The style has to be specified by the ID, not the name or url of the style.
</p>
<p>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:</p>
<p>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:</p>
<p><b>NOTES:</b>The <i>.makePrintableLink</i> style sheet class is tied to the default template for this macro.
</p>