diff --git a/lib/WebGUI/Help/Asset.pm b/lib/WebGUI/Help/Asset.pm index 413596929..d92bd10d5 100644 --- a/lib/WebGUI/Help/Asset.pm +++ b/lib/WebGUI/Help/Asset.pm @@ -89,6 +89,11 @@ our $HELP = { uiLevel => 9, }, ], + variables => [ + { + 'name' => 'controls' + } + ], related => [ { tag => 'template language', diff --git a/lib/WebGUI/Help/Asset_Article.pm b/lib/WebGUI/Help/Asset_Article.pm index 48b41d975..1ea8a6861 100644 --- a/lib/WebGUI/Help/Asset_Article.pm +++ b/lib/WebGUI/Help/Asset_Article.pm @@ -47,8 +47,112 @@ our $HELP = { 'article template' => { title => '72', body => '73', + isa => { + namespace => "Asset_Template", + tag => "template variables" + }, fields => [ ], + variables => [ + { + 'name' => 'new.template' + }, + { + 'name' => 'description' + }, + { + 'name' => 'description.full' + }, + { + 'name' => 'description.first.100words' + }, + { + 'name' => 'description.first.75words' + }, + { + 'name' => 'description.first.50words' + }, + { + 'name' => 'description.first.25words' + }, + { + 'name' => 'description.first.10words' + }, + { + 'name' => 'description.first.paragraph' + }, + { + 'name' => 'description.first.2paragraphs' + }, + { + 'name' => 'description.first.sentence' + }, + { + 'name' => 'description.first.2sentences' + }, + { + 'name' => 'description.first.3sentences' + }, + { + 'name' => 'description.first.4sentences' + }, + { + 'name' => 'attachment.icon' + }, + { + 'name' => 'attachment.name' + }, + { + 'name' => 'attachment.url' + }, + { + 'name' => 'image.thumbnail' + }, + { + 'name' => 'image.url' + }, + { + 'name' => 'attachment_loop', + 'variables' => [ + { + 'name' => 'filename' + }, + { + 'name' => 'url' + }, + { + 'name' => 'thumbnailUrl' + }, + { + 'name' => 'iconUrl' + }, + { + 'name' => 'isImage' + } + ] + }, + { + 'name' => 'linkTitle' + }, + { + 'name' => 'linkURL' + }, + { + 'name' => 'post.label' + }, + { + 'name' => 'post.URL' + }, + { + 'name' => 'replies.count' + }, + { + 'name' => 'replies.label' + }, + { + 'name' => 'replies.url' + } + ], related => [ { tag => 'article add/edit', diff --git a/lib/WebGUI/Help/Asset_File.pm b/lib/WebGUI/Help/Asset_File.pm index 7420c774d..1ee97acb9 100644 --- a/lib/WebGUI/Help/Asset_File.pm +++ b/lib/WebGUI/Help/Asset_File.pm @@ -43,6 +43,36 @@ our $HELP = { 'file template' => { title => 'file template title', body => 'file template body', + isa => { + namespace => "Asset_Template", + tag => "template variables" + }, + variables => [ + { + 'name' => 'fileSize' + }, + { + 'name' => 'fileIcon' + }, + { + 'name' => 'fileUrl' + }, + { + 'name' => 'controls' + }, + { + 'name' => 'filename' + }, + { + 'name' => 'storageId' + }, + { + 'name' => 'title' + }, + { + 'name' => 'menuTitle' + } + ], fields => [ ], related => [ diff --git a/lib/WebGUI/Help/Asset_Folder.pm b/lib/WebGUI/Help/Asset_Folder.pm index 7513aee1c..ef717cf02 100644 --- a/lib/WebGUI/Help/Asset_Folder.pm +++ b/lib/WebGUI/Help/Asset_Folder.pm @@ -33,6 +33,10 @@ our $HELP = { 'folder template' => { title => 'folder template title', body => 'folder template body', + isa => { + namespace => "Asset_Wobject", + tag => "wobject template" + }, fields => [ ], variables => [ { diff --git a/lib/WebGUI/Help/Asset_Image.pm b/lib/WebGUI/Help/Asset_Image.pm index dd6416304..a93db695e 100644 --- a/lib/WebGUI/Help/Asset_Image.pm +++ b/lib/WebGUI/Help/Asset_Image.pm @@ -50,8 +50,46 @@ our $HELP = { 'image template' => { title => 'image template title', body => 'image template body', + isa => { + namespace => "Asset_Template", + tag => "template variables" + }, fields => [ ], + variables => [ + { + 'name' => 'fileIcon' + }, + { + 'name' => 'fileUrl' + }, + { + 'name' => 'controls' + }, + { + 'name' => 'thumbnail', + 'description' => 'thumbnail variable' + }, + { + 'name' => 'thumbnailSize' + }, + { + 'name' => 'parameters', + 'description' => 'parameters variable' + }, + { + 'name' => 'filename' + }, + { + 'name' => 'storageId' + }, + { + 'name' => 'title' + }, + { + 'name' => 'menuTitle' + } + ], related => [ { tag => 'image add/edit', diff --git a/lib/WebGUI/Help/Asset_Layout.pm b/lib/WebGUI/Help/Asset_Layout.pm index 9a73cb624..ead5fd039 100644 --- a/lib/WebGUI/Help/Asset_Layout.pm +++ b/lib/WebGUI/Help/Asset_Layout.pm @@ -37,6 +37,38 @@ our $HELP = { 'layout template' => { title => 'layout template title', body => 'layout template body', + isa => { + namespace => "Asset_Template", + tag => "template variables" + }, + variables => [ + { + 'name' => 'showAdmin' + }, + { + 'name' => 'dragger.icon' + }, + { + 'name' => 'dragger.init' + }, + { + 'name' => 'position1_loop', + 'variables' => [ + { + 'name' => 'id' + }, + { + 'name' => 'content' + } + ] + }, + { + 'name' => 'attachment.size' + }, + { + 'name' => 'attachment.type' + } + ], fields => [ ], related => [ diff --git a/lib/WebGUI/Help/Asset_MultiSearch.pm b/lib/WebGUI/Help/Asset_MultiSearch.pm index 1701752c8..c1d34ef60 100644 --- a/lib/WebGUI/Help/Asset_MultiSearch.pm +++ b/lib/WebGUI/Help/Asset_MultiSearch.pm @@ -32,11 +32,28 @@ our $HELP = { 'multisearch template' => { title => 'multisearch template title', body => 'multisearch template body', + isa => { + namespace => "Asset_Template", + tag => "template variables" + }, + variables => [ + { + 'name' => 'search', + 'description' => 'search.variable' + }, + { + 'name' => 'for', + 'description' => 'for.variable' + }, + { + 'name' => 'submit' + } + ], fields => [ ], related => [ { - tag => 'multisearch template', + tag => 'multi search add/edit', namespace => 'Asset_MultiSearch' }, { diff --git a/lib/WebGUI/Help/Asset_Shortcut.pm b/lib/WebGUI/Help/Asset_Shortcut.pm index 3a6ccb9b0..19e35a99b 100644 --- a/lib/WebGUI/Help/Asset_Shortcut.pm +++ b/lib/WebGUI/Help/Asset_Shortcut.pm @@ -60,6 +60,27 @@ our $HELP = { 'shortcut template' => { title => 'shortcut template title', body => 'shortcut template body', + isa => { + namespace => "Asset_Template", + tag => "template variables" + }, + variables => [ + { + 'name' => 'shortcut.content' + }, + { + 'name' => 'originalURL' + }, + { + 'name' => 'isShortcut' + }, + { + 'name' => 'shortcut.label' + }, + { + 'name' => 'shortcut.properties' + } + ], fields => [ ], related => [ @@ -77,6 +98,7 @@ our $HELP = { }, ] }, + 'field add/edit' => { title => 'field add/edit title', body => 'field add/edit body', @@ -94,6 +116,7 @@ our $HELP = { ] }, + }; 1; diff --git a/lib/WebGUI/Help/Asset_Template.pm b/lib/WebGUI/Help/Asset_Template.pm index 2b31ccd41..331e8477e 100644 --- a/lib/WebGUI/Help/Asset_Template.pm +++ b/lib/WebGUI/Help/Asset_Template.pm @@ -54,6 +54,38 @@ our $HELP = { body => 'template variable body', fields => [ ], + variables => [ + { + 'name' => 'webgui.version' + }, + { + 'name' => 'webgui.version' + }, + { + 'name' => 'webgui.status' + }, + { + 'name' => 'session.user.username' + }, + { + 'name' => 'session.user.firstDayOfWeek' + }, + { + 'name' => 'session.config.extrasurl' + }, + { + 'name' => 'session.var.adminOn' + }, + { + 'name' => 'session.setting.companyName' + }, + { + 'name' => 'session.setting.anonymousRegistration' + }, + { + 'name' => 'session form variables' + } + ], related => [ ] }, diff --git a/lib/WebGUI/Help/Asset_ZipArchive.pm b/lib/WebGUI/Help/Asset_ZipArchive.pm index 82911b5e9..a1d5a1123 100644 --- a/lib/WebGUI/Help/Asset_ZipArchive.pm +++ b/lib/WebGUI/Help/Asset_ZipArchive.pm @@ -42,8 +42,26 @@ our $HELP = { 'zip archive template' => { title => 'zip archive template title', body => 'zip archive template body', + isa => { + namespace => "Asset_Template", + tag => "template variables" + }, fields => [ ], + variables => [ + { + 'name' => 'controls' + }, + { + 'name' => 'error' + }, + { + 'name' => 'fileUrl' + }, + { + 'name' => 'fileIcon' + } + ], related => [ { tag => 'template language', diff --git a/lib/WebGUI/Help/Macro_L_loginBox.pm b/lib/WebGUI/Help/Macro_L_loginBox.pm index cd8c5c8e9..db67770a9 100644 --- a/lib/WebGUI/Help/Macro_L_loginBox.pm +++ b/lib/WebGUI/Help/Macro_L_loginBox.pm @@ -5,6 +5,62 @@ our $HELP = { 'login box' => { title => 'login box title', body => 'login box body', + isa => { + namespace => "Asset_Template", + tag => "template variables" + }, + variables => [ + { + 'name' => 'user.isVisitor' + }, + { + 'name' => 'customText' + }, + { + 'name' => 'hello.label' + }, + { + 'name' => 'customText' + }, + { + 'name' => 'account.display.url' + }, + { + 'name' => 'logout.label' + }, + { + 'required' => 1, + 'name' => 'form.header' + }, + { + 'name' => 'username.label' + }, + { + 'required' => 1, + 'name' => 'username.form' + }, + { + 'name' => 'password.label' + }, + { + 'required' => 1, + 'name' => 'password.form' + }, + { + 'required' => 1, + 'name' => 'form.login' + }, + { + 'name' => 'account.create.url' + }, + { + 'name' => 'account.create.label' + }, + { + 'required' => 1, + 'name' => 'form.footer' + } + ], fields => [ ], related => [ diff --git a/lib/WebGUI/Operation/Help.pm b/lib/WebGUI/Operation/Help.pm index a1dd8dbe2..5d3cf537d 100644 --- a/lib/WebGUI/Operation/Help.pm +++ b/lib/WebGUI/Operation/Help.pm @@ -55,17 +55,19 @@ sub _load { foreach my $tag (keys %{ $help }) { $help->{$tag}{related} = [ _related($session, $help->{$tag}{related}) ]; if ($help->{$tag}{isa}{namespace}) { - my $other = _load($session, $help->{$tag}{isa}{namespace}); - my $add = $other->{$help->{$tag}{isa}{tag}}{fields}; + my $isa = $hash->{$tag}{isa}; + my $other = _load($session, $isa->{namespace}); + my $otherHelp = $other->{ $isa->{tag} }; + my $add = $otherHelp->{fields}; @{$help->{$tag}{fields}} = (@{$help->{$tag}{fields}}, @{$add}); - $add = $other->{$help->{$tag}{isa}{tag}}{related}; + $add = $otherHelp->{related}; @{$help->{$tag}{related}} = (@{ $help->{$tag}{related} }, @{ $add }); - $add = $other->{$help->{$tag}{isa}{tag}}{variables}; + $add = $otherHelp->{variables}; foreach my $row (@{$add}) { push(@{$help->{$tag}{variables}}, { name=> $row->{name}, description => $row->{description}, - namespace => $row->{namespace} || $help->{$tag}{isa}{namespace} + namespace => $row->{namespace} || $isa->{namespace} }); } } diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index c54a1ab2d..8c8dabe62 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -435,11 +435,14 @@ default Asset in the menu.

|, lastUpdated => 1113357557, }, + 'controls' => { + message => q|These are the icons and URLs that allow editing, cutting, copying, deleting and reordering the Asset.|, + lastUpdated => 1148840768, + }, + 'asset template body' => { message => q|

This variable is inserted into every template:

-

controls
-These are the icons and URLs that allow editing, cutting, copying, deleting and reordering the Asset.

|, lastUpdated => 1113357523, diff --git a/lib/WebGUI/i18n/English/Asset_Article.pm b/lib/WebGUI/i18n/English/Asset_Article.pm index 7f9154c84..8651361e0 100644 --- a/lib/WebGUI/i18n/English/Asset_Article.pm +++ b/lib/WebGUI/i18n/English/Asset_Article.pm @@ -87,147 +87,174 @@ use templates from the "page" namespace.|, lastUpdated => 1146508836 }, + 'new.template' => { + message => q|Articles have the special ability to change their template so that you can allow users to see different views of the article. You do this by creating a link with a URL like this (replace 999 with the template Id you wish to use): +

+

+<a href="<tmpl_var new.template>999">Read more...</a>|, + lastUpdated => 1148960553, + }, + + 'description' => { + message => q|The paginated description.|, + lastUpdated => 1148960553, + }, + + 'description.full' => { + message => q|The full description without any pagination.|, + lastUpdated => 1148960553, + }, + + 'description.first.100words' => { + message => q|The first 100 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.|, + lastUpdated => 1148960553, + }, + + 'description.first.75words' => { + message => q|The first 75 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.|, + lastUpdated => 1148960553, + }, + + 'description.first.50words' => { + message => q|The first 50 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.|, + lastUpdated => 1148960553, + }, + + 'description.first.25words' => { + message => q|The first 25 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.|, + lastUpdated => 1148960553, + }, + + 'description.first.10words' => { + message => q|The first 10 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words.|, + lastUpdated => 1148960553, + }, + + 'description.first.paragraph' => { + message => q|The first paragraph of the description. The first paragraph is determined by the first carriage return found in the text.|, + lastUpdated => 1148960553, + }, + + 'description.first.2paragraphs' => { + message => q|The first two paragraphs of the description. A paragraph is determined by counting the carriage returns found in the text.|, + lastUpdated => 1148960553, + }, + + 'description.first.sentence' => { + message => q|The first sentence in the description. A sentence is determined by counting the periods found in the text.|, + lastUpdated => 1148960553, + }, + + 'description.first.2sentences' => { + message => q|The first two sentences in the description. A sentence is determined by counting the periods found in the text.|, + lastUpdated => 1148960553, + }, + + 'description.first.3sentences' => { + message => q|The first three sentences in the description. A sentence is determined by counting the periods found in the text.|, + lastUpdated => 1148960553, + }, + + 'description.first.4sentences' => { + message => q|The first four sentences in the description. A sentence is determined by counting the periods found in the text.|, + lastUpdated => 1148960553, + }, + + 'attachment.icon' => { + message => q|The URL to the icon image for this attachment type.|, + lastUpdated => 1148960553, + }, + + 'attachment.name' => { + message => q|The filename for this attachment.|, + lastUpdated => 1148960553, + }, + + 'attachment.url' => { + message => q|The URL to download this attachment.|, + lastUpdated => 1148960553, + }, + + 'image.thumbnail' => { + message => q|The URL to the thumbnail for the attached image.|, + lastUpdated => 1148960553, + }, + + 'image.url' => { + message => q|The URL to the attached image.|, + lastUpdated => 1148960553, + }, + + 'attachment_loop' => { + message => q|A loop containing all the attachments.|, + lastUpdated => 1148960553, + }, + + 'filename' => { + message => q| The name of the file.|, + lastUpdated => 1148960553, + }, + + 'url' => { + message => q| The url to download the file.|, + lastUpdated => 1148960553, + }, + + 'thumbnailUrl' => { + message => q| The url of the thumbnail of this file.|, + lastUpdated => 1148960553, + }, + + 'iconUrl' => { + message => q| The url to the file type icon of this file.|, + lastUpdated => 1148960553, + }, + + 'isImage' => { + message => q| A boolean indicating whether this is an image or not.|, + lastUpdated => 1148960553, + }, + + 'linkTitle' => { + message => q|The title of the link added to the article.|, + lastUpdated => 1148960553, + }, + + 'linkURL' => { + message => q|The URL for the link added to the article.|, + lastUpdated => 1148960553, + }, + + 'post.label' => { + message => q|The translated label to add a comment to this article.|, + lastUpdated => 1148960553, + }, + + 'post.URL' => { + message => q|The URL to add a comment to this article.|, + lastUpdated => 1148960553, + }, + + 'replies.count' => { + message => q|The number of comments attached to this article.|, + lastUpdated => 1148960553, + }, + + 'replies.label' => { + message => q|The translated text indicating that you can view the replies.|, + lastUpdated => 1148960553, + }, + + 'replies.url' => { + message => q|The URL to view the replies to this article.|, + lastUpdated => 1148960553, + }, + '73' => { message => q|

The following template variables are available for article templates.

- -

new.template
-Articles have the special ability to change their template so that you can allow users to see different views of the article. You do this by creating a link with a URL like this (replace 999 with the template Id you wish to use): -

-

-<a href="<tmpl_var new.template>999">Read more...</a> -

- -

description
-The paginated description. -

- -

description.full
-The full description without any pagination. -

- -

description.first.100words
-The first 100 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words. -

- -

description.first.75words
-The first 75 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words. -

- -

description.first.50words
-The first 50 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words. -

- -

description.first.25words
-The first 25 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words. -

- -

description.first.10words
-The first 10 words in the description. Words are defined as characters separated by whitespace, so HTML entities and tags count as words. -

- -

description.first.paragraph
-The first paragraph of the description. The first paragraph is determined by the first carriage return found in the text. -

- -

description.first.2paragraphs
-The first two paragraphs of the description. A paragraph is determined by counting the carriage returns found in the text. -

- -

description.first.sentence
-The first sentence in the description. A sentence is determined by counting the periods found in the text. -

- -

description.first.2sentences
-The first two sentences in the description. A sentence is determined by counting the periods found in the text. -

- -

description.first.3sentences
-The first three sentences in the description. A sentence is determined by counting the periods found in the text. -

- -

description.first.4sentences
-The first four sentences in the description. A sentence is determined by counting the periods found in the text. -

- -

attachment.icon
-The URL to the icon image for this attachment type. -

- -

attachment.name
-The filename for this attachment. -

- -

attachment.url
-The URL to download this attachment. -

- -

image.thumbnail
-The URL to the thumbnail for the attached image. -

- -

image.url
-The URL to the attached image. -

- -

attachment_loop
-A loop containing all the attachments. -

- -
- -

filename
- The name of the file. -

- -

url
- The url to download the file. -

- -

thumbnailUrl
- The url of the thumbnail of this file. -

- -

iconUrl
- The url to the file type icon of this file. -

- -

isImage
- A boolean indicating whether this is an image or not. -

- -
- -

linkTitle
-The title of the link added to the article. -

- -

linkURL
-The URL for the link added to the article. -

- -

post.label
-The translated label to add a comment to this article. -

- -

post.URL
-The URL to add a comment to this article. -

- -

replies.count
-The number of comments attached to this article. -

- -

replies.label
-The translated text indicating that you can view the replies. -

- -

replies.url
-The URL to view the replies to this article. -

- |, - lastUpdated => 1146514046 + lastUpdated => 1148960667 }, '24' => { diff --git a/lib/WebGUI/i18n/English/Asset_File.pm b/lib/WebGUI/i18n/English/Asset_File.pm index 07d705ad5..0616aad4c 100644 --- a/lib/WebGUI/i18n/English/Asset_File.pm +++ b/lib/WebGUI/i18n/English/Asset_File.pm @@ -36,46 +36,52 @@ our $I18N = { lastUpdated => 1140196488, }, - 'file template body' => { - message => q|

The following variables are available in File Templates:

- -

fileSize
-The size (in bytes/kilobytes/megabytes, etc) of the file. -

- -

fileIcon
-The icon which describes the type of file. -

- -

fileUrl
-The URL to the file. -

- -

controls
-A toolbar for working with the file. -

- -

filename
-The name of the file. -

- -

storageId
-The internal storage ID used for the file. -

- -

title
-The title set for the file when it was uploaded, or the filename if none was entered. -

- -

menuTitle
-The menu title, displayed in navigations, set for the file when it was uploaded, or the filename if none was entered. -

- - |, - context => 'Describing the file template variables', - lastUpdated => 1146775676, + 'fileSize' => { + message => q|The size (in bytes/kilobytes/megabytes, etc) of the file.|, + lastUpdated => 1148952092, }, + 'fileIcon' => { + message => q|The icon which describes the type of file.|, + lastUpdated => 1148952092, + }, + + 'fileUrl' => { + message => q|The URL to the file.|, + lastUpdated => 1148952092, + }, + + 'controls' => { + message => q|A toolbar for working with the file.|, + lastUpdated => 1148952092, + }, + + 'filename' => { + message => q|The name of the file.|, + lastUpdated => 1148952092, + }, + + 'storageId' => { + message => q|The internal storage ID used for the file.|, + lastUpdated => 1148952092, + }, + + 'title' => { + message => q|The title set for the file when it was uploaded, or the filename if none was entered.|, + lastUpdated => 1148952092, + }, + + 'menuTitle' => { + message => q|The menu title, displayed in navigations, set for the file when it was uploaded, or the filename if none was entered.|, + lastUpdated => 1148952092, + }, + + 'file template body' => { + message => q|

The following variables are available in File Templates:

+ |, + context => 'Describing the file template variables', + lastUpdated => 1148952146, + }, 'current file' => { message => q|Current file|, @@ -88,7 +94,6 @@ The menu title, displayed in navigations, set for the file when it was uploaded, lastUpdated => 1119068809 }, - 'new file' => { message => q|New file to upload|, context => q|label for File asset form|, @@ -100,13 +105,12 @@ The menu title, displayed in navigations, set for the file when it was uploaded, context => q|label for Asset Manager, getName|, lastUpdated => 1128640132, }, - + 'new file description' => { message => q|Enter the path to a file, or use the "Browse" button to find a file on your local hard drive that you would like to be uploaded.|, lastUpdated => 1119068745 }, - }; 1; diff --git a/lib/WebGUI/i18n/English/Asset_Image.pm b/lib/WebGUI/i18n/English/Asset_Image.pm index 3fb87b2fc..bc289165d 100644 --- a/lib/WebGUI/i18n/English/Asset_Image.pm +++ b/lib/WebGUI/i18n/English/Asset_Image.pm @@ -140,52 +140,62 @@ shown here.|, lastUpdated => 1130440964, }, + 'fileIcon' => { + message => q|The icon which describes the type of file.|, + lastUpdated => 1148952544, + }, + + 'fileUrl' => { + message => q|The URL to the file.|, + lastUpdated => 1148952544, + }, + + 'controls' => { + message => q|A toolbar for working with the file.|, + lastUpdated => 1148952544, + }, + + 'thumbnail variable' => { + message => q|A URL to the thumbnail of the image;|, + lastUpdated => 1148952544, + }, + + 'thumbnailSize' => { + message => q|An integer representing the length of the longest side |, + lastUpdated => 1148952544, + }, + + 'parameters variable' => { + message => q|Any additional IMG tag parameters that were entered with the image was uploaded.|, + lastUpdated => 1148952544, + }, + + 'filename' => { + message => q|The name of the image.|, + lastUpdated => 1148952544, + }, + + 'storageId' => { + message => q|The internal storage ID used for the file.|, + lastUpdated => 1148952544, + }, + + 'title' => { + message => q|The title set for the file when it was uploaded, or the filename if none was entered.|, + lastUpdated => 1148952544, + }, + + 'menuTitle' => { + message => q|The menu title, displayed in navigations, set for the image when it was uploaded, or the filename if none was entered.|, + lastUpdated => 1148952544, + }, + + 'image template body' => { message => q|

The following variables are available in Image Templates:

- -

fileIcon
-The icon which describes the type of file. -

- -

fileUrl
-The URL to the file. -

- -

controls
-A toolbar for working with the file. -

- -

thumbnail
-A URL to the thumbnail of the image; -

- -

thumbnailSize
-An integer representing the length of the longest side -

- -

parameters
-Any additional IMG tag parameters that were entered with the image was uploaded. -

- -

filename
-The name of the image. -

- -

storageId
-The internal storage ID used for the file. -

- -

title
-The title set for the file when it was uploaded, or the filename if none was entered. -

- -

menuTitle
-The menu title, displayed in navigations, set for the image when it was uploaded, or the filename if none was entered. -

- |, context => 'Describing the image template variables', - lastUpdated => 1146775844, + lastUpdated => 1148952657, }, }; diff --git a/lib/WebGUI/i18n/English/Asset_Layout.pm b/lib/WebGUI/i18n/English/Asset_Layout.pm index 4e729abb3..8c47d3e41 100644 --- a/lib/WebGUI/i18n/English/Asset_Layout.pm +++ b/lib/WebGUI/i18n/English/Asset_Layout.pm @@ -44,51 +44,54 @@ checkbox for any Asset that you do not want displayed in the Page Layout Asset. lastUpdated => 1109987374, }, + 'showAdmin' => { + message => q|A conditional showing if the current user has turned on Admin Mode and can edit this Asset.|, + lastUpdated => 1148963207, + }, + + 'dragger.icon' => { + message => q|An icon that can be used to change the Asset's position with the mouse via a click and +drag interface. If showAdmin is false, this variable is empty.|, + lastUpdated => 1148963207, + }, + + 'dragger.init' => { + message => q|HTML and Javascript required to make the click and drag work. If showAdmin is false, this variable is empty.|, + lastUpdated => 1148963207, + }, + + 'position1_loop' => { + message => q|Each position in the template has a loop which has the set of Assets +which are to be displayed inside of it. Assets that have not been +specifically placed are put inside of position 1.|, + lastUpdated => 1148963207, + }, + + 'id' => { + message => q|The Asset ID of the Asset.|, + lastUpdated => 1148963207, + }, + + 'content' => { + message => q|The rendered content of the Asset.|, + lastUpdated => 1148963207, + }, + + 'attachment.size' => { + message => q|The size of the file.|, + lastUpdated => 1148963207, + }, + + 'attachment.type' => { + message => q|The type of the file (PDF, etc.)|, + lastUpdated => 1148963207, + }, + 'layout template body' => { message => q|

The following variables are available in Page Layout Templates:

- -

showAdmin
-A conditional showing if the current user has turned on Admin Mode and can edit this Asset. -

- -

dragger.icon
-An icon that can be used to change the Asset's position with the mouse via a click and -drag interface. If showAdmin is false, this variable is empty. -

- -

dragger.init
-HTML and Javascript required to make the click and drag work. If showAdmin is false, this variable is empty. -

- -

position1_loop, position2_loop, ... positionN_loop
-Each position in the template has a loop which has the set of Assets -which are to be displayed inside of it. Assets that have not been -specifically placed are put inside of position 1. -

- -
- -

id
-The Asset ID of the Asset. -

- -

content
-The rendered content of the Asset. -

- -
- -

attachment.size
-The size of the file. -

- -

attachment.type
-The type of the file (PDF, etc.) -

- |, context => 'Describing the file template variables', - lastUpdated => 1146775952, + lastUpdated => 1148963247, }, 'assets to hide' => { diff --git a/lib/WebGUI/i18n/English/Asset_MultiSearch.pm b/lib/WebGUI/i18n/English/Asset_MultiSearch.pm index 65f3a6ace..172741779 100644 --- a/lib/WebGUI/i18n/English/Asset_MultiSearch.pm +++ b/lib/WebGUI/i18n/English/Asset_MultiSearch.pm @@ -42,24 +42,26 @@ our $I18N = { lastUpdated => 1133619940, }, + 'search.variable' => { + message => q|Internationalized label for the word "search"|, + lastUpdated => 1148962481, + }, + + 'for.variable' => { + message => q|Internationalized label for the word "for"|, + lastUpdated => 1148962481, + }, + + 'submit' => { + message => q|Submit button with internationalized label for "Submit".|, + lastUpdated => 1148962481, + }, + 'multisearch template body' => { message => q|

The MultiSearch template has all the template variables used by Wobjects, as well as these:

- -

search
-Internationalized label for the word "search" -

- -

for
-Internationalized label for the word "for" -

- -

submit
-Submit button with internationalized label for "Submit". -

- |, - lastUpdated => 1146784875, + lastUpdated => 1148962572, }, 'for' => { diff --git a/lib/WebGUI/i18n/English/Asset_Shortcut.pm b/lib/WebGUI/i18n/English/Asset_Shortcut.pm index a57c01106..2058ff54b 100644 --- a/lib/WebGUI/i18n/English/Asset_Shortcut.pm +++ b/lib/WebGUI/i18n/English/Asset_Shortcut.pm @@ -206,20 +206,36 @@ A property or value must be quoted if it contains spaces. Feel free to use the c lastUpdated => 1109525763, }, + 'shortcut.content' => { + message => q|The content from the mirrored Asset. If any overrides were enabled in the Shortcut then the override content will be used instead of the content from the mirrored Asset.|, + lastUpdated => 1148953116, + }, + + 'originalURL' => { + message => q|The URL to the Asset being mirrored by this Shortcut.|, + lastUpdated => 1148953116, + }, + + 'isShortcut' => { + message => q|A boolean indicating that this Asset is a Shortcut. This can be used in conjuction with another boolean for Admin mode to quickly show Content Managers that this is a Shortcut Asset.|, + lastUpdated => 1148953116, + }, + + 'shortcut.label' => { + message => q|The word "Shortcut".|, + lastUpdated => 1148953116, + }, + + 'shortcut.properties' => { + message => q|Any properties assigned to this shortcut will be available in the template by their name.|, + lastUpdated => 1148953116, + }, + + 'shortcut template body' => { message => q|

These variables are available in Shortcut Templates:

-

shortcut.content
-The content from the mirrored Asset. If any overrides were enabled in the Shortcut then the override content will be used instead of the content from the mirrored Asset.

-

originalURL
-The URL to the Asset being mirrored by this Shortcut.

-

isShortcut
-A boolean indicating that this Asset is a Shortcut. This can be used in conjuction with another boolean for Admin mode to quickly show Content Managers that this is a Shortcut Asset.

-

shortcut.label
-The word "Shortcut".

-

shortcut.properties
-Any properties assigned to this shortcut will be available in the template by their name.

|, - lastUpdated => 1146540530, + lastUpdated => 1148953146, }, 'The unique name of a user preference parameter you are inventing' => { diff --git a/lib/WebGUI/i18n/English/Asset_Template.pm b/lib/WebGUI/i18n/English/Asset_Template.pm index 04d9507ab..20570d6df 100644 --- a/lib/WebGUI/i18n/English/Asset_Template.pm +++ b/lib/WebGUI/i18n/English/Asset_Template.pm @@ -225,54 +225,61 @@ has been set to some other language you will need to consult the documentation f lastUpdated => 1130972019, }, + 'webgui.version' => { + message => q|The version of WebGUI on your site.|, + lastUpdated => 1148951191, + }, + + 'webgui.status' => { + message => q|The release status for this version of WebGUI, stable, beta, gamma, etc.|, + lastUpdated => 1148951191, + }, + + 'session.user.username' => { + message => q|The current user's username.|, + lastUpdated => 1148951191, + }, + + 'session.user.firstDayOfWeek' => { + message => q|From the current user's profile, the day they selected to be the first day of the week.|, + lastUpdated => 1148951191, + }, + + 'session.config.extrasurl' => { + message => q|From the WebGUI config, the URL for the extras directory.|, + lastUpdated => 1148951191, + }, + + 'session.var.adminOn' => { + message => q|This variable will be true if the user is in Admin mode.|, + lastUpdated => 1148951191, + }, + + 'session.setting.companyName' => { + message => q|From the WebGUI settings, the company name.|, + lastUpdated => 1148951191, + }, + + 'session.setting.anonymousRegistration' => { + message => q|From the WebGUI settings, whether or not anonymous registration has been enabled.|, + lastUpdated => 1148951191, + }, + + 'session form variables' => { + message => q|Session Form Variables
+Any form variables will be available in the template with this syntax:
+<tmpl_var session.form.variable>
+If there is more than 1 value in a form variable, only the last will be returned.|, + lastUpdated => 1148951191, + }, + 'template variable body' => { message => q| -

webgui.version
-The version of WebGUI on your site. -

- -

webgui.status
-The release status for this version of WebGUI, stable, beta, gamma, etc. -

- -

session.user.username
-The current user's username. -

- -

session.user.firstDayOfWeek
-From the current user's profile, the day they selected to be the first day of the week. -

- -

session.config.extrasurl
-From the WebGUI config, the URL for the extras directory. -

- -

session.var.adminOn
-This variable will be true if the user is in Admin mode. -

- -

session.setting.companyName
-From the WebGUI settings, the company name. -

- -

session.setting.anonymousRegistration
-From the WebGUI settings, whether or not anonymous registration has been enabled. -

- -

-Session Form Variables
-Any form variables will be available in the template with this syntax: -

- -

<tmpl_var session.form.variable>

- -

If there is more than 1 value in a form variable, only the last will be returned

-

NOTE: The syntax for these variables is shown in WebGUI's default template language, HTML::Template. If the Template Type -has been set to some other language you will need to consult the documentation for the appropriate syntax for its variables.

. +has been set to some other language you will need to consult that template's documentation for the appropriate syntax for its variables.

. |, - lastUpdated => 1146243514, + lastUpdated => 1148951237, }, 'site name' => { diff --git a/lib/WebGUI/i18n/English/Asset_ZipArchive.pm b/lib/WebGUI/i18n/English/Asset_ZipArchive.pm index 359dc66b0..231bf02f3 100644 --- a/lib/WebGUI/i18n/English/Asset_ZipArchive.pm +++ b/lib/WebGUI/i18n/English/Asset_ZipArchive.pm @@ -1,29 +1,28 @@ package WebGUI::i18n::English::Asset_ZipArchive; our $I18N = { - 'zip_error' => { message => q|An error occurred while trying to unzip the archive. Please check to make sure the file is not password protected and can be accessed by the operating system.|, lastUpdated => 1119068809 }, - + 'bad_archive' => { message => q|Not a valid archive. Please use zip or tar archives to import files |, lastUpdated => 1119068809 }, - + 'unzip_error' => { message => q|File could not be unzipped. Please upload a valid archive|, lastUpdated => 1119068809 }, - + 'template label' => { message => q|Zip Archive Template|, context => q|label for Zip Archive asset form|, lastUpdated => 1121703035, }, - + 'show page' => { message => q|Initial Page|, context => q|label for Zip Archive asset form|, @@ -35,60 +34,65 @@ our $I18N = { context => q|label for Asset Manager, getName|, lastUpdated => 1121703035, }, - + 'show page description' => { message => q|Enter the name of the file which serves as the "base" file for this archive. This is the page which will initially be served up|, lastUpdated => 1119068745 }, - + 'za_error' => { message => q|This asset only accepts valid tar and zip files|, lastUpdated => 1119068745 }, - + 'za_show_error' => { message => q|You must provide an initial page to direct users|, lastUpdated => 1119068745 }, - + 'zip archive add/edit title' => { message => q|Zip Archive, Add/Edit|, lastUpdated => 1119068745 }, - + 'zip archive add/edit body' => { message => q|

Zip Archive Assets are assets on your site that are allow you to upload a zip archive (as either zip or tar) containing files that require collateral (static html pages with images or movies, etc) that you wish to display to your users outside of the WebGUI context, but retain WebGUI's file security. The asset uzips the folder in a WebGUI storage location, and redirects the user to the initial page when the link provided is clicked

|, lastUpdated => 1119068839, }, - + 'zip archive template title' => { message => q|Zip Archive, Template|, lastUpdated => 1109287565, }, + 'controls' => { + message => q|Asset controls for administrators.|, + lastUpdated => 1148953404, + }, + + 'error' => { + message => q|Any errors reported during upload or unzip|, + lastUpdated => 1148953404, + }, + + 'fileUrl' => { + message => q|URL to the initial file|, + lastUpdated => 1148953404, + }, + + 'fileIcon' => { + message => q|Initial file file type icon|, + lastUpdated => 1148953404, + }, + + 'zip archive template body' => { message => q|

The following variables are available in Zip Archive Templates:

- -

controls
-Asset controls for administrators. -

- -

error
-Any errors reported during upload or unzip -

- -

fileUrl
-URL to the initial file -

- -

fileIcon
-Initial file file type icon -

|, - context => 'Describing the zip archive template variables', - lastUpdated => 1146852386, + context => q|Describing the zip archive template variables|, + lastUpdated => 1148953449, }, - + }; diff --git a/lib/WebGUI/i18n/English/Macro_L_loginBox.pm b/lib/WebGUI/i18n/English/Macro_L_loginBox.pm index b47ce176c..289ac096c 100644 --- a/lib/WebGUI/i18n/English/Macro_L_loginBox.pm +++ b/lib/WebGUI/i18n/English/Macro_L_loginBox.pm @@ -12,77 +12,92 @@ our $I18N = { lastUpdated => 1112466408, }, + 'user.isVisitor' => { + message => q|True if the user is a visitor.|, + lastUpdated => 1148963673, + }, + + 'customText' => { + message => q|The user defined text to display if the user is logged in.|, + lastUpdated => 1148963673, + }, + + 'hello.label' => { + message => q|Internationalized welcome message.|, + lastUpdated => 1148963673, + }, + + 'customText' => { + message => q|The text supplied to the macro to display if the user is logged in.|, + lastUpdated => 1148963673, + }, + + 'account.display.url' => { + message => q|URL to display the account.|, + lastUpdated => 1148963673, + }, + + 'logout.label' => { + message => q|Internationalized logout message.|, + lastUpdated => 1148963673, + }, + + 'form.header' => { + message => q|Form header.|, + lastUpdated => 1148963673, + }, + + 'username.label' => { + message => q|Internationalized label for "username".|, + lastUpdated => 1148963673, + }, + + 'username.form' => { + message => q|Form element for the username.|, + lastUpdated => 1148963673, + }, + + 'password.label' => { + message => q|Internationalized label for "password".|, + lastUpdated => 1148963673, + }, + + 'password.form' => { + message => q|Form element for the password.|, + lastUpdated => 1148963673, + }, + + 'form.login' => { + message => q|Action to perform when logging in.|, + lastUpdated => 1148963673, + }, + + 'account.create.url' => { + message => q|URL to create an account.|, + lastUpdated => 1148963673, + }, + + 'account.create.label' => { + message => q|Internationalized label for "create an account"|, + lastUpdated => 1148963673, + }, + + 'form.footer' => { + message => q|Form footer.|, + lastUpdated => 1148963673, + }, + 'login box body' => { message => q|

^L; or ^L(); - Login Box
A small login form. This macro takes up to three parameters. The first is used to set the width of the login box: ^L(20);. The second sets the message displayed after the user is logged in: ^L(20,"Hi ^a(^@;);. Click %here% if you wanna log out!");. Text between percent signs (%) is replaced by a link to the logout operation. The third parameter is the ID of a template in the Macro/L_loginBox namespace to replace the default template. The variables below are -available in the template. Not all of them are required, but variables that will cause the macro to output code that doesn't function properly (like not actually log someone in) are marked with an asterisk '*'.

- -

user.isVisitor
-True if the user is a visitor. -

- -

customText
-The user defined text to display if the user is logged in. -

- -

hello.label
-Internationalized welcome message. -

- -

customText
-The text supplied to the macro to display if the user is logged in. -

- -

account.display.url
-URL to display the account. -

- -

logout.label
-Internationalized logout message. -

- -

* form.header
-Form header. -

- -

username.label
-Internationalized label for "username". -

- -

* username.form
-Form element for the username. -

- -

password.label
-Internationalized label for "password". -

- -

* password.form
-Form element for the password. -

- -

* form.login
-Action to perform when logging in. -

- -

account.create.url
-URL to create an account. -

- -

account.create.label
-Internationalized label for "create an account" -

- -

* form.footer
-Form footer. -

+available for use in the template.

NOTE: The .loginBox style sheet class is tied to this macro.

|, - lastUpdated => 1146686545, + lastUpdated => 1148963753, }, '48' => {