asset variables, ISA relationships and graph template variables
This commit is contained in:
parent
1ab53b33bf
commit
f8de15a743
2 changed files with 163 additions and 22 deletions
|
|
@ -6,8 +6,8 @@ our $HELP = {
|
|||
body => '71',
|
||||
isa => [
|
||||
{
|
||||
namespace => "Asset_Wobject",
|
||||
tag => "wobject add/edit"
|
||||
namespace => 'Asset_Wobject',
|
||||
tag => 'wobject add/edit',
|
||||
},
|
||||
],
|
||||
fields => [
|
||||
|
|
@ -60,76 +60,144 @@ our $HELP = {
|
|||
related => [
|
||||
{
|
||||
tag => 'poll template',
|
||||
namespace => 'Asset_Poll'
|
||||
namespace => 'Asset_Poll',
|
||||
},
|
||||
{
|
||||
tag => 'wobjects using',
|
||||
namespace => 'Asset_Wobject'
|
||||
namespace => 'Asset_Wobject',
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
'poll template' => {
|
||||
title => '73',
|
||||
body => '74',
|
||||
isa => [
|
||||
{
|
||||
namespace => "Asset_Poll",
|
||||
tag => "poll asset template variables"
|
||||
},
|
||||
{
|
||||
namespace => "Asset_Template",
|
||||
tag => "template variables"
|
||||
},
|
||||
{
|
||||
namespace => "Asset",
|
||||
tag => "asset template"
|
||||
},
|
||||
],
|
||||
fields => [
|
||||
],
|
||||
variables => [
|
||||
{
|
||||
'name' => 'canVote'
|
||||
'name' => 'canVote',
|
||||
},
|
||||
{
|
||||
'name' => 'question'
|
||||
'name' => 'question',
|
||||
},
|
||||
{
|
||||
'name' => 'form.start'
|
||||
'name' => 'form.start',
|
||||
'required' => 1,
|
||||
},
|
||||
{
|
||||
'name' => 'answer_loop',
|
||||
'variables' => [
|
||||
{
|
||||
'name' => 'answer.form'
|
||||
'name' => 'answer.form',
|
||||
},
|
||||
{
|
||||
'name' => 'answer.text'
|
||||
'name' => 'answer.text',
|
||||
},
|
||||
{
|
||||
'name' => 'answer.number'
|
||||
'name' => 'answer.number',
|
||||
},
|
||||
{
|
||||
'name' => 'answer.graphWidth'
|
||||
'name' => 'answer.graphWidth',
|
||||
},
|
||||
{
|
||||
'name' => 'answer.percent'
|
||||
'name' => 'answer.percent',
|
||||
},
|
||||
{
|
||||
'name' => 'answer.total'
|
||||
'name' => 'answer.total',
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'name' => 'form.submit'
|
||||
'name' => 'form.submit',
|
||||
'required' => 1,
|
||||
},
|
||||
{
|
||||
'name' => 'form.end'
|
||||
'name' => 'form.end',
|
||||
'required' => 1,
|
||||
},
|
||||
{
|
||||
'name' => 'responses.label'
|
||||
'name' => 'responses.label',
|
||||
},
|
||||
{
|
||||
'name' => 'responses.total'
|
||||
'name' => 'responses.total',
|
||||
},
|
||||
{
|
||||
'name' => 'graphUrl',
|
||||
},
|
||||
{
|
||||
'name' => 'hasImageGraph',
|
||||
}
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'poll add/edit',
|
||||
namespace => 'Asset_Poll'
|
||||
namespace => 'Asset_Poll',
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'Asset_Wobject'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
'poll asset template variables' => {
|
||||
title => 'poll asset template variables title',
|
||||
body => 'poll asset template variables body',
|
||||
isa => [
|
||||
{
|
||||
namespace => 'Asset_Wobject',
|
||||
tag => 'wobject template variables',
|
||||
},
|
||||
],
|
||||
fields => [
|
||||
],
|
||||
variables => [
|
||||
{
|
||||
'name' => 'templateId',
|
||||
},
|
||||
{
|
||||
'name' => 'active',
|
||||
},
|
||||
{
|
||||
'name' => 'karmaPerVote',
|
||||
},
|
||||
{
|
||||
'name' => 'graphWidth',
|
||||
},
|
||||
{
|
||||
'name' => 'voteGroup',
|
||||
},
|
||||
{
|
||||
'name' => 'question',
|
||||
},
|
||||
{
|
||||
'name' => 'randomizeAnswers',
|
||||
},
|
||||
{
|
||||
'name' => 'aN',
|
||||
},
|
||||
{
|
||||
'name' => 'graphConfiguration',
|
||||
},
|
||||
{
|
||||
'name' => 'generateGraph',
|
||||
},
|
||||
],
|
||||
related => [
|
||||
],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -217,6 +217,79 @@ width is 150 pixels.|,
|
|||
an image graph.|,
|
||||
lastUpdated => 1031514049,
|
||||
},
|
||||
|
||||
'poll asset template variables title' => {
|
||||
message => q|Poll Asset Template Variables|,
|
||||
lastUpdated => 1168983984,
|
||||
},
|
||||
|
||||
'poll 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 => 1168983986,
|
||||
},
|
||||
|
||||
'templateId' => {
|
||||
message => q|The ID of the template used to display this Asset.|,
|
||||
lastUpdated => 1168983984,
|
||||
},
|
||||
|
||||
'active' => {
|
||||
message => q|A conditional that is true if this Poll is open for voting.|,
|
||||
lastUpdated => 1168983984,
|
||||
},
|
||||
|
||||
'karmaPerVote' => {
|
||||
message => q|The amount of karma given to a user when they vote.|,
|
||||
lastUpdated => 1168984674,
|
||||
},
|
||||
|
||||
'graphWidth' => {
|
||||
message => q|The width of the graph in pixels.|,
|
||||
lastUpdated => 1168984674,
|
||||
},
|
||||
|
||||
'voteGroup' => {
|
||||
message => q|The ID of the group that is allowed to vote in the Poll.|,
|
||||
lastUpdated => 1168984674,
|
||||
},
|
||||
|
||||
'question' => {
|
||||
message => q|The question to ask in the Poll.|,
|
||||
lastUpdated => 1168984674,
|
||||
},
|
||||
|
||||
'randomizeAnswers' => {
|
||||
message => q|A conditional that will be true if the Poll was set to randomize the order answers are presented.|,
|
||||
lastUpdated => 1168984674,
|
||||
},
|
||||
|
||||
'aN' => {
|
||||
message => q|The variables a1 through a20 store the answers for the Poll.|,
|
||||
lastUpdated => 1168984674,
|
||||
},
|
||||
|
||||
'graphConfiguration' => {
|
||||
message => q|The type of graph.|,
|
||||
lastUpdated => 1168985711,
|
||||
},
|
||||
|
||||
'generateGraph' => {
|
||||
message => q|A conditional that will be true if the Poll was set to display a graph.|,
|
||||
lastUpdated => 1168985711,
|
||||
},
|
||||
|
||||
'graphUrl' => {
|
||||
message => q|A URL for the graph of Poll results. This will only be set if the Poll was set to generate a graph and the graph configuration is valid.|,
|
||||
lastUpdated => 1168985711,
|
||||
},
|
||||
|
||||
'hasImageGraph' => {
|
||||
message => q|A .|,
|
||||
lastUpdated => 1168985711,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue