mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
Default sort for tags / categories
This commit is contained in:
parent
5ef99a76a9
commit
1ba72c74ce
@ -53,6 +53,11 @@ class BlogCategory extends DataObject implements CategorisationObject
|
|||||||
'BlogPosts' => BlogPost::class,
|
'BlogPosts' => BlogPost::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private static $default_sort = '"BlogCategory"."Title" ASC';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -56,6 +56,11 @@ class BlogTag extends DataObject implements CategorisationObject
|
|||||||
'BlogPosts' => BlogPost::class
|
'BlogPosts' => BlogPost::class
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private static $default_sort = '"BlogTag"."Title" ASC';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user