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:
Colin Kuskie 2006-11-29 23:10:16 +00:00
parent 4ed1f2f30e
commit c867f9eadb
7 changed files with 139 additions and 32 deletions

View file

@ -54,10 +54,6 @@ our $HELP = {
},
],
related => [
{
tag => 'asset fields',
namespace => 'Asset'
},
{
tag => 'event add/edit',
namespace => 'Asset_Event'
@ -72,9 +68,20 @@ our $HELP = {
}
]
},
'events calendar template' => {
title => '94',
body => '95',
isa => [
{
tag => 'wobject template',
namespace => 'Asset_Wobject'
},
{
tag => 'template language',
namespace => 'Asset_Template'
},
],
fields => [
],
variables => [
@ -255,25 +262,16 @@ our $HELP = {
'name' => 'year'
}
]
}
},
{
'name' => 'pagination.pageCount.isMultiple'
},
],
related => [
{
tag => 'events calendar add/edit',
namespace => 'Asset_EventsCalendar'
},
{
tag => 'pagination template variables',
namespace => 'WebGUI'
},
{
tag => 'wobject template',
namespace => 'Asset_Wobject'
},
{
tag => 'template language',
namespace => 'Asset_Template'
},
]
},
};