only the synopsis from the asset that is called should be put into the meta description field
This commit is contained in:
parent
e2b121461b
commit
adb17e78d5
2 changed files with 14 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue