silverstripe-blog/tests/blog.yml

100 lines
2.3 KiB
YAML
Executable File

#####################################################
# Mock date is set to 2013-10-01 20:00:00
#####################################################
Group:
admins:
Title: Administrators
editors:
Title: Editors
Permission:
admins:
Code: ADMIN
Group: =>Group.admins
editors:
Code: CMS_ACCESS_CMSMain
Group: =>Group.editors
Member:
admin:
FirstName: Test
Surname: Administrator
Groups: =>Group.admins
editor:
FirstName: Test
Surname: Editor
Groups: =>Group.editors
Blog:
firstblog:
Title: 'First Blog'
secondblog:
Title: 'Second Blog'
CanViewType: 'OnlyTheseUsers'
CanEditType: 'OnlyTheseUsers'
ViewerGroups: =>Group.admins
EditorGroups: =>Group.admins
thirdblog:
Title: 'Third Blog'
CanEditType: 'OnlyTheseUsers'
EditorGroups: =>Group.editors
BlogTag:
firsttag:
Title: 'First Tag'
URLSegment: 'first-tag'
Blog: =>Blog.firstblog
secondtag:
Title: 'Second Tag'
URLSegment: 'second-tag'
Blog: =>Blog.secondblog
thirdtag:
Title: 'Third Tag'
URLSegment: 'third-tag'
Blog: =>Blog.thirdblog
BlogCategory:
firstcategory:
Title: 'First Category'
URLSegment: 'first-category'
Blog: =>Blog.firstblog
secondcategory:
Title: 'Second Category'
URLSegment: 'second-category'
Blog: =>Blog.secondblog
thirdcategory:
Title: 'Third Category'
URLSegment: 'third-category'
Blog: =>Blog.thirdblog
BlogPost:
blogpost1:
Title: 'First post'
URLSegment: first-post
PublishDate: '2013-10-01 15:00:00'
Parent: =>Blog.firstblog
Tags: =>BlogTag.firsttag
Categories: =>BlogCategory.firstcategory
blogpost2:
Title: 'Second post'
URLSegment: second-post
PublishDate: '2013-09-01 15:00:00'
Parent: =>Blog.firstblog
blogpost3:
Title: 'Old post'
URLSegment: old-post
PublishDate: '2012-01-09 15:00:00'
Parent: =>Blog.firstblog
futurepost:
Title: 'Future Post'
URLSegment: future-post
PublishDate: '2015-01-01 00:00:00'
Tags: =>BlogTag.firsttag
Categories: =>BlogCategory.firstcategory
futurepost2:
Title: 'Future Post 2'
URLSegment: future-post-2
PublishDate: '2013-11-01 00:00:00'
Tags: =>BlogTag.firsttag
Categories: =>BlogCategory.firstcategory