From 3bed1f62c4161b28062371dbac927f16935e86bc Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 29 Dec 2006 18:35:32 +0000 Subject: [PATCH] template variable cleanups for Article and Folder assets --- lib/WebGUI/Help/Asset_Article.pm | 4 +++ lib/WebGUI/Help/Asset_Folder.pm | 42 +++++++++++++++++++++++-- lib/WebGUI/i18n/English/Asset_Folder.pm | 36 ++++++++++++++++++--- 3 files changed, 76 insertions(+), 6 deletions(-) diff --git a/lib/WebGUI/Help/Asset_Article.pm b/lib/WebGUI/Help/Asset_Article.pm index 8770733c8..e0f754aab 100644 --- a/lib/WebGUI/Help/Asset_Article.pm +++ b/lib/WebGUI/Help/Asset_Article.pm @@ -161,6 +161,10 @@ our $HELP = { title => 'article asset template variables title', body => 'article asset template variables body', isa => [ + { + namespace => "Asset_Wobject", + tag => "wobject template variables" + }, ], fields => [ ], diff --git a/lib/WebGUI/Help/Asset_Folder.pm b/lib/WebGUI/Help/Asset_Folder.pm index 2921c7d20..4aaed2673 100644 --- a/lib/WebGUI/Help/Asset_Folder.pm +++ b/lib/WebGUI/Help/Asset_Folder.pm @@ -23,6 +23,11 @@ our $HELP = { description => 'folder template description', namespace => 'Asset_Folder', }, + { + title => 'sort alphabetically', + description => 'sort alphabetically help', + namespace => 'Asset_Folder', + }, ], related => [ { @@ -37,8 +42,8 @@ our $HELP = { body => 'folder template body', isa => [ { - namespace => "Asset_Wobject", - tag => "wobject template variables" + namespace => "Asset_Folder", + tag => "folder template asset variables" }, ], fields => [ ], @@ -118,6 +123,39 @@ our $HELP = { ] }, + 'folder template asset variables' => { + title => 'asset template variables title', + body => 'asset template variables body', + isa => [ + { + namespace => "Asset_Wobject", + tag => "wobject template variables" + }, + ], + fields => [ ], + variables => [ + { + name => 'sortAlphabetically', + }, + { + name => 'templateId', + }, + { + name => 'visitorCacheTimeout', + }, + ], + related => [ + { + tag => 'folder add/edit', + namespace => 'Asset_Folder', + }, + { + tag => 'template language', + namespace => 'Asset_Template', + }, + ] + }, + }; 1; diff --git a/lib/WebGUI/i18n/English/Asset_Folder.pm b/lib/WebGUI/i18n/English/Asset_Folder.pm index 12f63617a..fad4a16bb 100644 --- a/lib/WebGUI/i18n/English/Asset_Folder.pm +++ b/lib/WebGUI/i18n/English/Asset_Folder.pm @@ -79,8 +79,8 @@ to do you want to go to the new Folder?

|, }, 'subfolder_loop' => { - message => q|A loop containing all Folder assets which are children of the Folder.|, - lastupdated => 0, + message => q|A loop containing all Folder assets which are children of the Folder. The order of the Folders will be determined by the Sort Alphabetically flag in the edit screen.|, + lastupdated => 1167417470, context => q|Template variable description.| }, @@ -115,8 +115,8 @@ to do you want to go to the new Folder?

|, }, 'file_loop' => { - message => q|A loop containing all non-Folder assets which are children of the Folder.|, - lastupdated => 0, + message => q|A loop containing all non-Folder assets which are children of the Folder. The order of the Folders will be determined by the Sort Alphabetically flag in the edit screen.|, + lastupdated => 1167417468, context => q|Template variable description.| }, @@ -226,6 +226,34 @@ to do you want to go to the new Folder?

|, message => q|Add files.|, lastUpdated => 1146649269, }, + + 'asset template variables title' => { + message => q|Folder Asset Template Variables|, + lastUpdated => 1167416930 + }, + + 'asset template variables body' => { + message => q|Every asset provides a set of variables to most of its +templates based on the internal asset properties. Some of these variables may +be useful, others may not.|, + lastUpdated => 1167416933 + }, + + 'sortAlphabetically' => { + message => q|A conditional that indicates that subfolders and files will be sorted alphabetically.|, + lastUpdated => 1167416930 + }, + + 'templateId' => { + message => q|The ID of the template used to display the Folder contents.|, + lastUpdated => 1167416930 + }, + + 'visitorCacheTimeout' => { + message => q|In seconds, how long output from this Asset will be cached.|, + lastUpdated => 1167416930 + }, + }; 1;