Removed custom title and method in favour of using defaults

This commit is contained in:
Will Rossiter 2008-02-24 08:23:04 +00:00
parent 99b3127e70
commit 293dd54f64
1 changed files with 4 additions and 5 deletions

View File

@ -2,22 +2,21 @@
class RSSWidget extends Widget {
static $db = array(
"CustomTitle" => "Text",
"Title" => "Text",
"RssUrl" => "Text",
"NumberToShow" => "Int",
);
static $defaults = array(
"NumberToShow" => 10
"NumberToShow" => 10,
"Title" => 'RSS Feed'
);
static $title = "RSS Feed";
static $cmsTitle = "RSS Feed";
static $description = "Shows the latest entries of a RSS feed.";
function getCMSFields() {
return new FieldSet(
new TextField("CustomTitle", _t('RSSWidget.CT', "Custom title for the feed")),
new TextField("Title", _t('RSSWidget.CT', "Custom title for the feed")),
new TextField("RssUrl", _t('RSSWidget.URL', "URL of RSS Feed")),
new NumericField("NumberToShow", _t('RSSWidget.NTS', "Number of Items to show"))
);