diff --git a/code/widgets/ArchiveWidget.php b/code/widgets/ArchiveWidget.php index 1186fb7..77b2c7b 100644 --- a/code/widgets/ArchiveWidget.php +++ b/code/widgets/ArchiveWidget.php @@ -29,15 +29,19 @@ class ArchiveWidget extends Widget { static $description = 'Show a list of months or years in which there are blog posts, and provide links to them.'; function getCMSFields() { - $fields = new FieldSet( - new OptionsetField( - 'DisplayMode', - _t('ArchiveWidget.DispBY', 'Display by'), - array( - 'month' => _t('ArchiveWidget.MONTH', 'month'), - 'year' => _t('ArchiveWidget.YEAR', 'year') + $fields = parent::getCMSFields(); + + $fields->merge( + new FieldSet( + new OptionsetField( + 'DisplayMode', + _t('ArchiveWidget.DispBY', 'Display by'), + array( + 'month' => _t('ArchiveWidget.MONTH', 'month'), + 'year' => _t('ArchiveWidget.YEAR', 'year') + ) ) - ) + ) ); $this->extend('updateCMSFields', $fields); diff --git a/code/widgets/RSSWidget.php b/code/widgets/RSSWidget.php index 5209c42..17f8bc9 100644 --- a/code/widgets/RSSWidget.php +++ b/code/widgets/RSSWidget.php @@ -40,10 +40,14 @@ class RSSWidget extends Widget { } function getCMSFields() { - $fields = new FieldSet( - new TextField("RSSTitle", _t('RSSWidget.CT', "Custom title for the feed")), - new TextField("RssUrl", _t('RSSWidget.URL', "URL of the other page's RSS feed. Please make sure this URL points to an RSS feed.")), - new NumericField("NumberToShow", _t('RSSWidget.NTS', "Number of Items to show")) + $fields = parent::getCMSFields(); + + $fields->merge( + new FieldSet( + new TextField("RSSTitle", _t('RSSWidget.CT', "Custom title for the feed")), + new TextField("RssUrl", _t('RSSWidget.URL', "URL of the other page's RSS feed. Please make sure this URL points to an RSS feed.")), + new NumericField("NumberToShow", _t('RSSWidget.NTS', "Number of Items to show")) + ) ); $this->extend('updateCMSFields', $fields); diff --git a/code/widgets/TagCloudWidget.php b/code/widgets/TagCloudWidget.php index 4a2874a..960c007 100644 --- a/code/widgets/TagCloudWidget.php +++ b/code/widgets/TagCloudWidget.php @@ -27,10 +27,14 @@ class TagCloudWidget extends Widget { static $popularities = array( 'not-popular', 'not-very-popular', 'somewhat-popular', 'popular', 'very-popular', 'ultra-popular' ); function getCMSFields() { - $fields = new FieldSet( - new TextField("Title", _t("TagCloudWidget.TILE", "Title")), - new TextField("Limit", _t("TagCloudWidget.LIMIT", "Limit number of tags")), - new OptionsetField("Sortby",_t("TagCloudWidget.SORTBY","Sort by"),array("alphabet"=>_t("TagCloudWidget.SBAL", "alphabet"),"frequency"=>_t("TagCloudWidget.SBFREQ", "frequency"))) + $fields = parent::getCMSFields(); + + $fields->merge( + new FieldSet( + new TextField("Title", _t("TagCloudWidget.TILE", "Title")), + new TextField("Limit", _t("TagCloudWidget.LIMIT", "Limit number of tags")), + new OptionsetField("Sortby",_t("TagCloudWidget.SORTBY","Sort by"),array("alphabet"=>_t("TagCloudWidget.SBAL", "alphabet"),"frequency"=>_t("TagCloudWidget.SBFREQ", "frequency"))) + ) ); $this->extend('updateCMSFields', $fields);