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

@ -540,6 +540,13 @@ sub www_view {
return $check if (defined $check);
$self->session->http->setLastModified($self->getContentLastModified);
$self->session->http->sendHeader;
##Have to dupe this code here because Wobject does not call SUPER.
if ($self->get('synopsis')) {
$self->session->style->setMeta({
name => 'Description',
content => $self->get('synopsis'),
});
}
$self->prepareView;
my $style = $self->processStyle("~~~");
my ($head, $foot) = split("~~~",$style);