Merge pull request #58 from lrc/page-details-fix

BUGFIX Specify names and improve descriptions for page types.
This commit is contained in:
carlos barberis 2012-10-08 17:25:45 -07:00
commit 59731c2b13
3 changed files with 13 additions and 1 deletions

View File

@ -19,6 +19,10 @@ class BlogEntry extends Page {
static $description = "An individual blog entry"; static $description = "An individual blog entry";
static $singular_name = 'Blog Entry Page';
static $plural_name = 'Blog Entry Pages';
static $has_one = array(); static $has_one = array();
static $has_many = array(); static $has_many = array();

View File

@ -14,7 +14,11 @@
class BlogHolder extends BlogTree implements PermissionProvider { class BlogHolder extends BlogTree implements PermissionProvider {
static $icon = "blog/images/blogholder-file.png"; static $icon = "blog/images/blogholder-file.png";
static $description = "Displays Blog Entries"; static $description = "Displays listings of blog entries";
static $singular_name = 'Blog Holder Page';
static $plural_name = 'Blog Holder Pages';
static $db = array( static $db = array(
'TrackBacksEnabled' => 'Boolean', 'TrackBacksEnabled' => 'Boolean',

View File

@ -15,6 +15,10 @@ class BlogTree extends Page {
static $description = "A grouping of blogs"; static $description = "A grouping of blogs";
static $singular_name = 'Blog Tree Page';
static $plural_name = 'Blog Tree Pages';
// Default number of blog entries to show // Default number of blog entries to show
static $default_entries_limit = 10; static $default_entries_limit = 10;