From e2b121461be26e746f79e275125c5b354b0fe5cf Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 21 Nov 2008 17:05:17 +0000 Subject: [PATCH] synopsis is now added to each page automatically. If the page is a container whose children call prepareView, their synopses are added as well --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset.pm | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 9c1ecfb4f..b89207d62 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -42,6 +42,7 @@ - fixed #8822: Password Recovery Tempalte not working - fixed: WebGUI::User now actually checks whether the friends group exists (Martin Kamerbeek / Oqapi) + - fixed #9039: Synopsis not output as a meta field 7.6.3 - improved performance of file uploads diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 895b6bc1e..df99ac42e 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -1955,6 +1955,12 @@ sub prepareView { name => 'keywords', content => join(',', @keywords), }); + } + if ($self->get('synopsis')) { + $style->setMeta({ + name => 'Description', + content => $self->get('synopsis'), + }); } $style->setRawHeadTags($self->getExtraHeadTags); }