fix - Style templates now process metadata properties assigned to them

This commit is contained in:
Roy Johnson 2006-11-07 16:42:41 +00:00
parent 0ffb28436b
commit 0ce287c212
2 changed files with 8 additions and 0 deletions

View file

@ -200,6 +200,13 @@ if ($self->session->user->isInGroup(2) || $self->session->setting->get("preventP
my $output;
if (defined $style) {
$var{'head.tags'} .= $style->get("headBlock");
my $meta = {};
if ($self->session->setting->get("metaDataEnabled")) {
$meta = $style->getMetaDataFields();
}
foreach my $field (keys %$meta) {
$var{$meta->{$field}{fieldName}} = $meta->{$field}{value};
}
$output = $style->process(\%var);
} else {
$output = "WebGUI was unable to instantiate your style template.".$var{'body.content'};