only the synopsis from the asset that is called should be put into the meta description field

This commit is contained in:
Colin Kuskie 2008-11-21 17:37:42 +00:00
parent e2b121461b
commit adb17e78d5
2 changed files with 14 additions and 7 deletions

View file

@ -1955,12 +1955,6 @@ sub prepareView {
name => 'keywords',
content => join(',', @keywords),
});
}
if ($self->get('synopsis')) {
$style->setMeta({
name => 'Description',
content => $self->get('synopsis'),
});
}
$style->setRawHeadTags($self->getExtraHeadTags);
}
@ -2648,7 +2642,13 @@ sub www_view {
return $check if (defined $check);
# if all else fails
$self->prepareView;
if ($self->get('synopsis')) {
$self->session->style->setMeta({
name => 'Description',
content => $self->get('synopsis'),
});
}
$self->prepareView;
$self->session->output->print($self->view);
return undef;
}