Most assets call processTemplate to do their template processing. Inside
of processTemplate, there is a call to $self->get which adds all the asset properties to the list of template variables. Sometimes they duplicate entries in the www_ method (like view). Sometimes they're not interesting, like templateId, but they're still valid template variables. I'm going to start a new template variable entry for each asset that will just contain those variables. Any www_ method calling processTemplate can then include them via ISA into their list of template variables.
This commit is contained in:
parent
4ed1f2f30e
commit
c867f9eadb
7 changed files with 139 additions and 32 deletions
|
|
@ -397,7 +397,7 @@ our $HELP = {
|
|||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'data form fields add/edit',
|
||||
tag => 'data form list template',
|
||||
namespace => 'Asset_DataForm'
|
||||
},
|
||||
{
|
||||
|
|
@ -410,6 +410,16 @@ our $HELP = {
|
|||
'data form list template' => {
|
||||
title => '88',
|
||||
body => '89',
|
||||
isa => [
|
||||
{
|
||||
namespace => "Asset_Template",
|
||||
tag => "template variables"
|
||||
},
|
||||
{
|
||||
tag => 'wobject template',
|
||||
namespace => 'Asset_Wobject'
|
||||
}
|
||||
],
|
||||
fields => [
|
||||
],
|
||||
variables => [
|
||||
|
|
@ -526,10 +536,14 @@ our $HELP = {
|
|||
}
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => 'data form template',
|
||||
namespace => 'Asset_DataForm'
|
||||
},
|
||||
{
|
||||
tag => 'data form add/edit',
|
||||
namespace => 'Asset_DataForm'
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue