diff --git a/lib/WebGUI/Help/Asset_Matrix.pm b/lib/WebGUI/Help/Asset_Matrix.pm index abd1e08a0..c062bdbc4 100644 --- a/lib/WebGUI/Help/Asset_Matrix.pm +++ b/lib/WebGUI/Help/Asset_Matrix.pm @@ -100,6 +100,7 @@ our $HELP = { }, ], }, + 'listing add/edit' => { title => 'listing add/edit help title', body => 'listing add/edit help body', @@ -152,6 +153,7 @@ our $HELP = { }, ], }, + 'field add/edit' => { title => 'field add/edit help title', body => 'field add/edit help body', @@ -194,9 +196,47 @@ our $HELP = { }, ], }, + 'search template' => { title => 'search template help title', body => 'search template help body', + variables => [ + { + 'name' => 'compare.form', + }, + { + 'name' => 'form.header' + }, + { + 'name' => 'form.footer' + }, + { + 'name' => 'form.submit' + }, + { + 'name' => 'CATEGORY_NAME_loop', + 'variables' => [ + { + 'name' => 'name', + 'description' => 'listing name' + }, + { + 'name' => 'fieldType' + }, + { + 'name' => 'label', + 'description' => 'listing label' + }, + { + 'name' => 'description', + 'description' => 'search field description' + }, + { + 'name' => 'form' + } + ], + } + ], related => [ { tag => 'matrix add/edit', @@ -220,6 +260,7 @@ our $HELP = { }, ], }, + 'compare template' => { title => 'comparison template help title', body => 'comparison template help body', @@ -312,9 +353,45 @@ our $HELP = { }, ], }, + 'ratings detail template' => { title => 'ratings detail template help title', body => 'ratings detail template help body', + variables => [ + { + 'name' => 'rating_loop', + 'variables' => [ + { + 'name' => 'category', + }, + { + 'name' => 'detail_loop', + 'variables' => [ + { + 'name' => 'url', + 'description' => 'tmplVar detail url' + }, + { + 'name' => 'mean', + 'description' => 'detail mean' + }, + { + 'name' => 'median', + 'description' => 'detail median' + }, + { + 'name' => 'count', + 'description' => 'detail count' + }, + { + 'name' => 'name', + 'description' => 'listing name' + } + ] + } + ] + } + ], related => [ { tag => 'matrix add/edit', @@ -338,6 +415,7 @@ our $HELP = { }, ], }, + 'main template' => { title => 'matrix template help title', body => 'matrix template help body', @@ -517,6 +595,7 @@ our $HELP = { }, ], }, + 'listing detail template' => { title => 'detail template help title', body => 'detail template help body', @@ -616,7 +695,7 @@ our $HELP = { }, { 'name' => 'description', - 'description' => 'listing description' + 'description' => 'category listing description' }, { 'name' => 'category', diff --git a/lib/WebGUI/i18n/English/Asset_Matrix.pm b/lib/WebGUI/i18n/English/Asset_Matrix.pm index 09a58abe7..164be2560 100644 --- a/lib/WebGUI/i18n/English/Asset_Matrix.pm +++ b/lib/WebGUI/i18n/English/Asset_Matrix.pm @@ -270,7 +270,7 @@ our $I18N = { lastUpdated => 1149784175, }, - 'listing description' => { + 'category listing description' => { message => q|The description that tells the user what this field represents.|, lastUpdated => 1149784175, }, @@ -421,12 +421,12 @@ our $I18N = { lastUpdated => 1149795214, }, - 'median' => { + 'tmplVar worst.median' => { message => q|The median (or middle) rating of the worst listing in this category.|, lastUpdated => 1149795214, }, - 'count' => { + 'tmplVar worst.count' => { message => q|The sum of all the votes of the worst listing in this category.|, lastUpdated => 1149795214, }, @@ -521,117 +521,86 @@ our $I18N = { message => q|Matrix Ratings Detail Template| }, + 'rating_loop' => { + message => q|This loop contains a list of the categories in this matrix.|, + lastUpdated => 1149996259, + }, + + 'detail_loop' => { + message => q|A loop containing a list of listings who have had at least 10 ratings votes and are listed in order by average rating from highest to lowest.|, + lastUpdated => 1149996259, + }, + + 'tmplVar detail url' => { + message => q|The URL to the detail page for this listing.|, + lastUpdated => 1149996259, + }, + + 'detail mean' => { + message => q|This listing's mean (or average) rating.|, + lastUpdated => 1149996259, + }, + + 'detail median' => { + message => q|This listing's median (or middle) rating.|, + lastUpdated => 1149996259, + }, + + 'detail count' => { + message => q|The total score for this listing.|, + lastUpdated => 1149996259, + }, + + 'listing name' => { + message => q|The name of this listing.|, + lastUpdated => 1149996259, + }, + 'ratings detail template help body' => { - lastUpdated => 0, + lastUpdated => 1149997187, message => q|
The following variables are available in the ratings detail template.
- -
- rating_loop
- This loop contains a list of the categories in this matrix.
-
- category
- The name of the current category.
-
- detail_loop
- A loop containing a list of listings who have had at least 10 ratings votes and are listed in order by average rating from highest to lowest.
-
- url
- The URL to the detail page for this listing.
-
- mean
-
- This listing's mean (or average) rating.
-
- median
- This listing's median (or middle) rating.
-
- count
-
- The total score for this listing.
-
- name
- The name of this listing.
-
The following variables are available in the matrix search template.
- -
- compare.form
- The checkbox form that lists all of the listings in this matrix.
-
- form.header
-
- The required header component of the search form.
-
- form.footer
- The required footer component of the search form.
-
- form.submit
-
- The default submit button for the search form.
-
- category_loop
- A loop is created for each category in this matrix. The category name is "category_loop" where category is the name of the category with spaces replaced with hyphens. So if you had a category called "Bells And Whistles" the loop would be called "bells-and-whistles_loop".
-
- name
- The name of the listing.
-
- fieldType
- The type of field specified for this matrix field.
-
- label
- The label given to this field that describes what the field represents.
-
- description
- A description of the field that gives more detail about the field and is used in the hover over tool tips.
-
- form
- The form element representing this field.
-
userDefined1, userDefined2, userDefined3, userDefined4, userDefined5
You can use up to 5 user defined fields. The fields are
called "userDefined1" through "userDefined5". In the
-Post Form template you can use those variables like
-this to collect data:
+Post Form template you can use variables like this to collect data: