From 29611731c4e9a3e6675dbd33556eac47f3849399 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 30 Nov 2004 23:03:53 +0000 Subject: [PATCH] Updated File Macro documentation to show proper optional template usage, similar changes should be made to all other macros --- lib/WebGUI/i18n/English/WebGUI.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index d29b945d0..944e4dfb3 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -3045,7 +3045,9 @@ Loops come with special condition variables of their own. They are __FIRST__, __

^File();
-This macro builds a quick file link. It creates an icon for the file and outputs the files name. Then it links them both to the file for downloading. An optional second parameter allows a custom template to be used instead of the default. The following variables are available for use in the template: +^File(collateralFileName);
+^File(collateralFileName,templateName);
+This macro builds a quick link to a file in the Collateral Manager. It creates an icon for the file and outputs the files' name. Then it links them both to the file for downloading. The following variables are available for use in the template:

file.url
The URL to the file. @@ -3061,7 +3063,11 @@ The size of the file.

file.thumbnail
The file's thumbnail. +

+An optional second parameter, a template name, allows a custom template +from the Macro/File template namespace to be used instead of the default. +If a template with that name is not found, then the default is used.

^I();
@@ -3128,7 +3134,7 @@ This macro retrieves the URL for the thumbnail of any image in the collateral ma Example: ^Thumbnail("logo");

|, - lastUpdated => 1098855400 + lastUpdated => 1101855785, }, '736' => {