silverstripe-blog/tests/blog.yml

202 lines
6.8 KiB
YAML
Raw Normal View History

2013-10-10 00:09:28 +02:00
# Mock date is set to 2013-10-01 20:00:00
2015-05-09 16:33:12 +02:00
SilverStripe\Security\Group:
2015-05-09 16:33:12 +02:00
Administrators:
Title: Administrators
2015-05-09 16:33:12 +02:00
Editors:
Title: Editors
2015-05-09 16:33:12 +02:00
BlogUsers:
Title: Blog Users
Code: blogusers
SilverStripe\Security\Permission:
2015-05-09 16:33:12 +02:00
Administrators:
Code: ADMIN
Group: =>SilverStripe\Security\Group.Administrators
2015-05-09 16:33:12 +02:00
Editors:
Code: CMS_ACCESS_CMSMain
Group: =>SilverStripe\Security\Group.Editors
2015-05-09 16:33:12 +02:00
BlogUsers:
Code: CMS_ACCESS_CMSMain
Group: =>SilverStripe\Security\Group.BlogUsers
2015-05-09 16:33:12 +02:00
SilverStripe\SiteConfig\SiteConfig:
2015-05-09 16:33:12 +02:00
Default:
CanEditType: 'OnlyTheseUsers'
CanCreateTopLevelType: 'OnlyTheseUsers'
EditorGroups: =>SilverStripe\Security\Group.Administrators,=>SilverStripe\Security\Group.Editors
CreateTopLevelGroups: =>SilverStripe\Security\Group.Administrators,=>SilverStripe\Security\Group.Editors
SilverStripe\Security\Member:
2015-05-09 16:33:12 +02:00
Admin:
FirstName: Test
Surname: Administrator
Groups: =>SilverStripe\Security\Group.Administrators
2015-05-09 16:33:12 +02:00
Editor:
FirstName: Test
Surname: Editor
Groups: =>SilverStripe\Security\Group.Editors
2015-05-09 16:33:12 +02:00
BlogEditor:
FirstName: Blog
Surname: Editor
Groups: =>SilverStripe\Security\Group.BlogUsers
2015-05-09 16:33:12 +02:00
Writer:
FirstName: Blog
Surname: Writer
Groups: =>SilverStripe\Security\Group.BlogUsers
2015-05-09 16:33:12 +02:00
Contributor:
FirstName: Blog
Surname: Contributor
Groups: =>SilverStripe\Security\Group.BlogUsers
2015-05-09 16:33:12 +02:00
Visitor:
FirstName: Blog
Surname: Visitor
2013-10-10 00:09:28 +02:00
SilverStripe\Blog\Model\Blog:
2015-05-09 16:33:12 +02:00
FirstBlog:
2013-10-10 00:09:28 +02:00
Title: 'First Blog'
2015-05-09 16:33:12 +02:00
SecondBlog:
Title: 'Second Blog'
CanViewType: 'OnlyTheseUsers'
CanEditType: 'OnlyTheseUsers'
ViewerGroups: =>SilverStripe\Security\Group.Administrators
EditorGroups: =>SilverStripe\Security\Group.Administrators
2015-05-09 16:33:12 +02:00
ThirdBlog:
Title: 'Third Blog'
CanEditType: 'OnlyTheseUsers'
EditorGroups: =>SilverStripe\Security\Group.Editors
2015-05-09 16:33:12 +02:00
FourthBlog:
Title: 'Fourth Blog'
Editors: =>SilverStripe\Security\Member.BlogEditor
Writers: =>SilverStripe\Security\Member.Writer
Contributors: =>SilverStripe\Security\Member.Contributor
2013-10-10 00:09:28 +02:00
SilverStripe\Blog\Model\BlogTag:
2015-05-09 16:33:12 +02:00
FirstTag:
2013-10-10 00:09:28 +02:00
Title: 'First Tag'
URLSegment: 'first-tag'
Blog: =>SilverStripe\Blog\Model\Blog.FirstBlog
2015-05-09 16:33:12 +02:00
SecondTag:
Title: 'Second Tag'
URLSegment: 'second-tag'
Blog: =>SilverStripe\Blog\Model\Blog.SecondBlog
2015-05-09 16:33:12 +02:00
ThirdTag:
Title: 'Third Tag'
URLSegment: 'third-tag'
Blog: =>SilverStripe\Blog\Model\Blog.ThirdBlog
2013-10-10 00:09:28 +02:00
#Tags for Tag Cloud widget
PopularTag:
Title: 'Popular'
URLSegment: 'popular-tag'
Blog: =>SilverStripe\Blog\Model\Blog.FourthBlog
CoolTag:
Title: 'Cool'
URLSegment: 'cool-tag'
Blog: =>SilverStripe\Blog\Model\Blog.FourthBlog
CatTag:
Title: 'Cat'
URLSegment: 'cat-tag'
Blog: =>SilverStripe\Blog\Model\Blog.FourthBlog
KiwiTag:
Title: 'Kiwi'
URLSegment: 'kiwi-tag'
Blog: =>SilverStripe\Blog\Model\Blog.FourthBlog
SilverStripe\Blog\Model\BlogCategory:
2015-05-09 16:33:12 +02:00
FirstCategory:
2013-10-10 00:09:28 +02:00
Title: 'First Category'
URLSegment: 'first-category'
Blog: =>SilverStripe\Blog\Model\Blog.FirstBlog
2015-05-09 16:33:12 +02:00
SecondCategory:
Title: 'Second Category'
URLSegment: 'second-category'
Blog: =>SilverStripe\Blog\Model\Blog.SecondBlog
2015-05-09 16:33:12 +02:00
ThirdCategory:
Title: 'Third Category'
URLSegment: 'third-category'
Blog: =>SilverStripe\Blog\Model\Blog.ThirdBlog
2013-10-10 00:09:28 +02:00
SilverStripe\Blog\Model\BlogPost:
2015-05-09 16:33:12 +02:00
FirstBlogPost:
Title: 'First Post'
2013-10-10 00:09:28 +02:00
URLSegment: first-post
PublishDate: '2013-10-01 15:00:00'
Parent: =>SilverStripe\Blog\Model\Blog.FirstBlog
Tags: =>SilverStripe\Blog\Model\BlogTag.FirstTag
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
2015-05-09 16:33:12 +02:00
SecondBlogPost:
Title: 'Second Post'
2013-10-10 00:09:28 +02:00
URLSegment: second-post
PublishDate: '2013-09-01 15:00:00'
Parent: =>SilverStripe\Blog\Model\Blog.FirstBlog
2015-05-09 16:33:12 +02:00
ThirdBlogPost:
Title: 'Old Post'
2013-10-10 00:09:28 +02:00
URLSegment: old-post
PublishDate: '2012-01-09 15:00:00'
Parent: =>SilverStripe\Blog\Model\Blog.FirstBlog
2015-05-09 16:33:12 +02:00
FirstFutureBlogPost:
2013-10-10 00:09:28 +02:00
Title: 'Future Post'
URLSegment: future-post
PublishDate: '2015-01-01 00:00:00'
Tags: =>SilverStripe\Blog\Model\BlogTag.FirstTag
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
Parent: =>SilverStripe\Blog\Model\Blog.FirstBlog
2015-05-09 16:33:12 +02:00
SecondFutureBlogPost:
2013-10-10 00:09:28 +02:00
Title: 'Future Post 2'
URLSegment: future-post-2
PublishDate: '2013-11-01 00:00:00'
Tags: =>SilverStripe\Blog\Model\BlogTag.FirstTag
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
Parent: =>SilverStripe\Blog\Model\Blog.FirstBlog
2015-05-09 16:33:12 +02:00
PostA:
Title: 'One Post'
PublishDate: '2012-01-09 15:00:00'
Parent: =>SilverStripe\Blog\Model\Blog.FourthBlog
Authors: =>SilverStripe\Security\Member.Writer,=>SilverStripe\Security\Member.Contributor
2015-05-09 16:33:12 +02:00
PostB:
Title: 'Second Post'
PublishDate: '2012-01-09 15:00:00'
Parent: =>SilverStripe\Blog\Model\Blog.FourthBlog
Authors: =>SilverStripe\Security\Member.BlogEditor
2015-05-09 16:33:12 +02:00
PostC:
Title: 'Third Post'
PublishDate: '2012-01-09 15:00:00'
Parent: =>SilverStripe\Blog\Model\Blog.FourthBlog
Authors: =>SilverStripe\Security\Member.BlogEditor,=>SilverStripe\Security\Member.Writer,=>SilverStripe\Security\Member.Contributor
NullPublishDate:
Title: 'No publish date'
2016-06-01 07:28:59 +02:00
PublishDate: ''
Parent: =>SilverStripe\Blog\Model\Blog.FourthBlog
Authors: =>SilverStripe\Security\Member.BlogEditor,=>SilverStripe\Security\Member.Writer,=>SilverStripe\Security\Member.Contributor
#Posts for the tag cloud widget test
TaggedPost1:
Title: 'Tagged Post 1'
URLSegment: tagged-post-1
PublishDate: '2012-01-09 15:00:00'
Tags: =>SilverStripe\Blog\Model\BlogTag.PopularTag,=>SilverStripe\Blog\Model\BlogTag.CoolTag
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
Parent: =>SilverStripe\Blog\Model\Blog.FourthBlog
TaggedPost2:
Title: 'Tagged Post 2'
URLSegment: tagged-post-2
PublishDate: '2012-01-09 15:00:00'
Tags: =>SilverStripe\Blog\Model\BlogTag.PopularTag,=>SilverStripe\Blog\Model\BlogTag.CoolTag,=>SilverStripe\Blog\Model\BlogTag.CatTag
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
Parent: =>SilverStripe\Blog\Model\Blog.FourthBlog
TaggedPost3:
Title: 'Tagged Post 3'
URLSegment: tagged-post-3
PublishDate: '2012-01-09 17:20:00'
Tags: =>SilverStripe\Blog\Model\BlogTag.PopularTag,=>SilverStripe\Blog\Model\BlogTag.CoolTag,=>SilverStripe\Blog\Model\BlogTag.CatTag,=>SilverStripe\Blog\Model\BlogTag.KiwiTag
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
Parent: =>SilverStripe\Blog\Model\Blog.FourthBlog
TaggedPost4:
Title: 'Tagged Post 4'
URLSegment: tagged-post-4
PublishDate: '2012-04-09 15:00:00'
Tags: =>SilverStripe\Blog\Model\BlogTag.PopularTag
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
Parent: =>SilverStripe\Blog\Model\Blog.FourthBlog