silverstripe-blog/tests/blog.yml

149 lines
3.5 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
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
2015-05-09 16:33:12 +02:00
Code: BlogUsers
Permission:
2015-05-09 16:33:12 +02:00
Administrators:
Code: ADMIN
2015-05-09 16:33:12 +02:00
Group: =>Group.Administrators
Editors:
Code: CMS_ACCESS_CMSMain
2015-05-09 16:33:12 +02:00
Group: =>Group.Editors
BlogUsers:
Code: CMS_ACCESS_CMSMain
2015-05-09 16:33:12 +02:00
Group: =>Group.BlogUsers
SiteConfig:
2015-05-09 16:33:12 +02:00
Default:
CanEditType: 'OnlyTheseUsers'
CanCreateTopLevelType: 'OnlyTheseUsers'
2015-05-09 16:33:12 +02:00
EditorGroups: =>Group.Administrators,=>Group.Editors
CreateTopLevelGroups: =>Group.Administrators,=>Group.Editors
Member:
2015-05-09 16:33:12 +02:00
Admin:
FirstName: Test
Surname: Administrator
2015-05-09 16:33:12 +02:00
Groups: =>Group.Administrators
Editor:
FirstName: Test
Surname: Editor
2015-05-09 16:33:12 +02:00
Groups: =>Group.Editors
BlogEditor:
FirstName: Blog
Surname: Editor
2015-05-09 16:33:12 +02:00
Groups: =>Group.BlogUsers
Writer:
FirstName: Blog
Surname: Writer
2015-05-09 16:33:12 +02:00
Groups: =>Group.BlogUsers
Contributor:
FirstName: Blog
Surname: Contributor
2015-05-09 16:33:12 +02:00
Groups: =>Group.BlogUsers
Visitor:
FirstName: Blog
Surname: Visitor
2013-10-10 00:09:28 +02:00
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'
2015-05-09 16:33:12 +02:00
ViewerGroups: =>Group.Administrators
EditorGroups: =>Group.Administrators
ThirdBlog:
Title: 'Third Blog'
CanEditType: 'OnlyTheseUsers'
2015-05-09 16:33:12 +02:00
EditorGroups: =>Group.Editors
FourthBlog:
Title: 'Fourth Blog'
2015-05-09 16:33:12 +02:00
Editors: =>Member.BlogEditor
Writers: =>Member.Writer
Contributors: =>Member.Contributor
2013-10-10 00:09:28 +02:00
BlogTag:
2015-05-09 16:33:12 +02:00
FirstTag:
2013-10-10 00:09:28 +02:00
Title: 'First Tag'
URLSegment: 'first-tag'
2015-05-09 16:33:12 +02:00
Blog: =>Blog.FirstBlog
SecondTag:
Title: 'Second Tag'
URLSegment: 'second-tag'
2015-05-09 16:33:12 +02:00
Blog: =>Blog.SecondBlog
ThirdTag:
Title: 'Third Tag'
URLSegment: 'third-tag'
2015-05-09 16:33:12 +02:00
Blog: =>Blog.ThirdBlog
2013-10-10 00:09:28 +02:00
BlogCategory:
2015-05-09 16:33:12 +02:00
FirstCategory:
2013-10-10 00:09:28 +02:00
Title: 'First Category'
URLSegment: 'first-category'
2015-05-09 16:33:12 +02:00
Blog: =>Blog.FirstBlog
SecondCategory:
Title: 'Second Category'
URLSegment: 'second-category'
2015-05-09 16:33:12 +02:00
Blog: =>Blog.SecondBlog
ThirdCategory:
Title: 'Third Category'
URLSegment: 'third-category'
2015-05-09 16:33:12 +02:00
Blog: =>Blog.ThirdBlog
2013-10-10 00:09:28 +02:00
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'
2015-05-09 16:33:12 +02:00
Parent: =>Blog.FirstBlog
Tags: =>BlogTag.FirstTag
Categories: =>BlogCategory.FirstCategory
SecondBlogPost:
Title: 'Second Post'
2013-10-10 00:09:28 +02:00
URLSegment: second-post
PublishDate: '2013-09-01 15:00:00'
2015-05-09 16:33:12 +02:00
Parent: =>Blog.FirstBlog
ThirdBlogPost:
Title: 'Old Post'
2013-10-10 00:09:28 +02:00
URLSegment: old-post
PublishDate: '2012-01-09 15:00:00'
2015-05-09 16:33:12 +02:00
Parent: =>Blog.FirstBlog
FirstFutureBlogPost:
2013-10-10 00:09:28 +02:00
Title: 'Future Post'
URLSegment: future-post
PublishDate: '2015-01-01 00:00:00'
2015-05-09 16:33:12 +02:00
Tags: =>BlogTag.FirstTag
Categories: =>BlogCategory.FirstCategory
Parent: =>Blog.FirstBlog
SecondFutureBlogPost:
2013-10-10 00:09:28 +02:00
Title: 'Future Post 2'
URLSegment: future-post-2
PublishDate: '2013-11-01 00:00:00'
2015-05-09 16:33:12 +02:00
Tags: =>BlogTag.FirstTag
Categories: =>BlogCategory.FirstCategory
Parent: =>Blog.FirstBlog
PostA:
Title: 'One Post'
PublishDate: '2012-01-09 15:00:00'
2015-05-09 16:33:12 +02:00
Parent: =>Blog.FourthBlog
Authors: =>Member.Writer,=>Member.Contributor
PostB:
Title: 'Second Post'
PublishDate: '2012-01-09 15:00:00'
2015-05-09 16:33:12 +02:00
Parent: =>Blog.FourthBlog
Authors: =>Member.BlogEditor
PostC:
Title: 'Third Post'
PublishDate: '2012-01-09 15:00:00'
2015-05-09 16:33:12 +02:00
Parent: =>Blog.FourthBlog
Authors: =>Member.BlogEditor,=>Member.Writer,=>Member.Contributor