Add the ability for posts to have metadata. The option is turned off by default,
but can be enabled in the CS. If the option is turned on, and metadata is enabled on the site, then sets of template variables will be made available to the Post Form template, the Thread view template, and the CS view template.
This commit is contained in:
parent
3b336e56a4
commit
2af436a0ad
8 changed files with 181 additions and 27 deletions
|
|
@ -156,6 +156,11 @@ our $HELP = {
|
|||
description => 'enable avatars description',
|
||||
namespace => 'Asset_Collaboration',
|
||||
},
|
||||
{
|
||||
title => 'enable metadata',
|
||||
description => 'enable metadata description',
|
||||
namespace => 'Asset_Collaboration',
|
||||
},
|
||||
{
|
||||
title => 'get mail',
|
||||
description => 'get mail help',
|
||||
|
|
|
|||
|
|
@ -129,6 +129,20 @@ our $HELP = {
|
|||
{
|
||||
'name' => 'karmaIsEnabled'
|
||||
},
|
||||
{
|
||||
'name' => 'meta_loop',
|
||||
'variables' => [
|
||||
{
|
||||
'name' => 'name'
|
||||
},
|
||||
{
|
||||
'name' => 'field'
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'name' => 'meta_X_form'
|
||||
},
|
||||
{
|
||||
'name' => 'form.preview'
|
||||
},
|
||||
|
|
@ -250,6 +264,20 @@ our $HELP = {
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
'name' => 'meta_loop',
|
||||
'variables' => [
|
||||
{
|
||||
'name' => 'name'
|
||||
},
|
||||
{
|
||||
'name' => 'value'
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'name' => 'meta_X_value'
|
||||
},
|
||||
],
|
||||
fields => [
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue