From a0dea71648c74687f33be5434b7063c010a8e3b0 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 2 Jan 2005 01:44:09 +0000 Subject: [PATCH] Add documentation for Snippet Asset --- lib/WebGUI/Help/Asset.pm | 19 +++++++++++++++--- lib/WebGUI/i18n/English/Asset.pm | 33 +++++++++++++++++++++++++++----- 2 files changed, 44 insertions(+), 8 deletions(-) diff --git a/lib/WebGUI/Help/Asset.pm b/lib/WebGUI/Help/Asset.pm index 5cc2238b0..d31c74c2e 100644 --- a/lib/WebGUI/Help/Asset.pm +++ b/lib/WebGUI/Help/Asset.pm @@ -1,12 +1,13 @@ package WebGUI::Help::Asset; our $HELP = { - 'asset add/edit' => { - title => 'asset add/edit title', - body => 'asset add/edit body', + 'asset fields' => { + title => 'asset fields title', + body => 'asset fields body', related => [ ] }, + 'asset macros' => { title => 'asset macros title', body => 'asset macros body', @@ -17,6 +18,18 @@ our $HELP = { }, ] }, + + 'snippet add/edit' => { + title => 'snippet add/edit title', + body => 'snippet add/edit body', + related => [ + { + tag => 'asset fields', + namespace => 'Asset' + }, + ] + }, + }; 1; diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index c3d4580fb..a15a4af81 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -25,8 +25,8 @@ our $I18N = { lastUpdated => 1099344172, }, - 'asset fields body' => { - message => q| + 'asset fields body' => { + message => q|

Asset ID
This is the unique identifier WebGUI uses to keep track of this Asset instance. Normal users should never need to be concerned with the Asset ID, but some advanced users may need to know it for things like SQL Reports. The Asset ID is not editable.

@@ -70,12 +70,12 @@ Should this page be served over SSL?

Start Date
-The date when users may begin viewing this page. Note that before this date only content managers with the rights to edit this page will see it. +The date when users may begin viewing this page. Before this date only Content Managers with the rights to edit this page will see it.

End Date
-The date when users will stop viewing this page. Note that after this date only content managers with the rights to edit this page will see it. +The date when users will stop viewing this page. After this date only Content Managers with the rights to edit this page will see it.

@@ -138,7 +138,30 @@ argument. message => q|Asset|, lastUpdated => 1100463645, context => 'The default name of all assets.' - } + }, + + 'snippet' => { + message => q|Snippet|, + lastUpdated => 1104629663, + context => 'Default name of all snippets' + }, + + 'snippet add/edit title' => { + message => q|Snippet, Add/Edit|, + lastUpdated => 1104630516, + }, + + 'snippet add/edit body' => { + message => q|

Snippets are bits of text that may be reused on your site. Thinks like java scripts, style sheets, flash animations, or even slogans are all great snippets. Best of all, if you need to change the text, you can change it in only one location.

+ +

Since Snippets are Assets, so they have all the properties that Assets do.

+ +

Snippet
+This is the snippet. Either type it in or copy and paste it into the form field. +|, + context => 'Describing snippets and its sole field.', + lastUpdated => 1104630518, + }, };