help supports inheritance

This commit is contained in:
JT Smith 2006-05-14 04:53:13 +00:00
parent 0673df503d
commit ab4caf1342
6 changed files with 50 additions and 15 deletions

View file

@ -5,6 +5,10 @@ our $HELP = {
'folder add/edit' => {
title => 'folder add/edit title',
body => 'folder add/edit body',
isa => {
namespace => "Asset_Wobject",
tag => "wobject add/edit"
},
fields => [
{
title => 'visitor cache timeout',
@ -19,14 +23,6 @@ our $HELP = {
},
],
related => [
{
tag => 'asset fields',
namespace => 'Asset',
},
{
tag => 'wobject add/edit',
namespace => 'Asset_Wobject',
},
{
tag => 'folder template',
namespace => 'Asset_Folder',

View file

@ -30,6 +30,10 @@ our $HELP = {
'wobject add/edit' => {
title => '677',
body => '632',
isa => {
tag => 'asset fields',
namespace => 'Asset'
},
fields => [
{
title => '174',
@ -54,10 +58,6 @@ our $HELP = {
},
],
related => [
{
tag => 'asset fields',
namespace => 'Asset'
},
{
tag => 'wobjects using',
namespace => 'Asset_Wobject'

View file

@ -9,6 +9,11 @@ our $HELP = { ##hashref of hashes
title => 'help article title', #The title and body are looked up in the
body => 'help article title', #i18n file of the same name
# use the following to inherit stuff from another help entry
isa => {
tag => 'some other help tag',
namespace => 'some other help file',
},
fields => [ #This array is used to list hover help for form fields.
{
title => 'form label 1',
@ -22,6 +27,12 @@ our $HELP = { ##hashref of hashes
namespace => 'namespace', #The namespace is called out explicitly
},
],
variables => [
{
name => "template.variable.name",
description => "international tag in this namespace describing this var"
},
],
related => [ ##This lists other help articles that are related to this one
{
tag => 'other help article',