From ca7a93452a9cd0df9106b3e0b08e6502f1a4dbd9 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 17 Jul 2009 21:19:41 +0000 Subject: [PATCH] Add missing template variable help for sub-shelf loop. --- lib/WebGUI/Help/Asset_Shelf.pm | 8 +++++++- lib/WebGUI/i18n/English/Asset_Shelf.pm | 12 ++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Help/Asset_Shelf.pm b/lib/WebGUI/Help/Asset_Shelf.pm index 3cb818b23..7232b6cfb 100644 --- a/lib/WebGUI/Help/Asset_Shelf.pm +++ b/lib/WebGUI/Help/Asset_Shelf.pm @@ -19,7 +19,13 @@ our $HELP = { fields => [ ], variables => [ - { name => "shelves" , required=>1}, + { name => "shelves" , required=>1, variables => [ + { name => "title", + description => 'shelf_title', }, + { name => "url", + description => 'shelf_url', }, + ], + }, { name => "products" , required=>1, variables => [ { name => "url", description => 'product_url', }, diff --git a/lib/WebGUI/i18n/English/Asset_Shelf.pm b/lib/WebGUI/i18n/English/Asset_Shelf.pm index 5538cdf8d..c2313fa64 100644 --- a/lib/WebGUI/i18n/English/Asset_Shelf.pm +++ b/lib/WebGUI/i18n/English/Asset_Shelf.pm @@ -51,6 +51,18 @@ our $I18N = { context => q|a template variable|, }, + 'shelf_title' => { + message => q|The title of this shelf|, + lastUpdated => 0, + context => q|a template variable|, + }, + + 'shelf_url' => { + message => q|The url of this shelf|, + lastUpdated => 0, + context => q|a template variable|, + }, + 'products' => { message => q|A loop containing the list of products that match the keywords specified in this shelf, or that are children of this shelf. Only products that the user can see will be in the loop. Each record in the loop contains all the properties of the matching sku, plus the following variables.|, lastUpdated => 1247603018,