mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
235 lines
7.8 KiB
YAML
Executable File
235 lines
7.8 KiB
YAML
Executable File
# Mock date is set to 2013-10-01 20:00:00
|
|
# Write to tables rather than dataobjects for performance
|
|
SilverStripe\Security\Member:
|
|
Admin:
|
|
FirstName: Test
|
|
Surname: Administrator
|
|
Editor:
|
|
FirstName: Test
|
|
Surname: Editor
|
|
BlogEditor:
|
|
FirstName: Blog
|
|
Surname: Editor
|
|
Writer:
|
|
FirstName: Blog
|
|
Surname: Writer
|
|
Contributor:
|
|
FirstName: Blog
|
|
Surname: Contributor
|
|
Visitor:
|
|
FirstName: Blog
|
|
Surname: Visitor
|
|
|
|
SilverStripe\Security\Group:
|
|
Administrators:
|
|
Title: Administrators
|
|
Members:
|
|
- =>SilverStripe\Security\Member.Admin
|
|
Editors:
|
|
Title: Editors
|
|
Members:
|
|
- =>SilverStripe\Security\Member.Editor
|
|
BlogUsers:
|
|
Title: Blog Users
|
|
Code: blogusers
|
|
Members:
|
|
- =>SilverStripe\Security\Member.BlogEditor
|
|
- =>SilverStripe\Security\Member.Writer
|
|
- =>SilverStripe\Security\Member.Contributor
|
|
|
|
SilverStripe\Security\Permission:
|
|
Administrators:
|
|
Code: ADMIN
|
|
Group: =>SilverStripe\Security\Group.Administrators
|
|
Editors:
|
|
Code: CMS_ACCESS_CMSMain
|
|
Group: =>SilverStripe\Security\Group.Editors
|
|
BlogUsers:
|
|
Code: CMS_ACCESS_CMSMain
|
|
Group: =>SilverStripe\Security\Group.BlogUsers
|
|
|
|
SilverStripe\SiteConfig\SiteConfig:
|
|
Default:
|
|
CanEditType: 'OnlyTheseUsers'
|
|
CanCreateTopLevelType: 'OnlyTheseUsers'
|
|
EditorGroups:
|
|
- =>SilverStripe\Security\Group.Administrators
|
|
- =>SilverStripe\Security\Group.Editors
|
|
CreateTopLevelGroups:
|
|
- =>SilverStripe\Security\Group.Administrators
|
|
- =>SilverStripe\Security\Group.Editors
|
|
|
|
SilverStripe\Blog\Model\Blog:
|
|
FirstBlog:
|
|
ClassName: SilverStripe\Blog\Model\Blog
|
|
Title: 'First Blog'
|
|
URLSegment: 'first-blog'
|
|
SecondBlog:
|
|
ClassName: SilverStripe\Blog\Model\Blog
|
|
Title: 'Second Blog'
|
|
CanViewType: 'OnlyTheseUsers'
|
|
CanEditType: 'OnlyTheseUsers'
|
|
URLSegment: 'second-blog'
|
|
ViewerGroups:
|
|
- =>SilverStripe\Security\Group.Administrators
|
|
EditorGroups:
|
|
- =>SilverStripe\Security\Group.Administrators
|
|
ThirdBlog:
|
|
ClassName: SilverStripe\Blog\Model\Blog
|
|
Title: 'Third Blog'
|
|
CanEditType: 'OnlyTheseUsers'
|
|
URLSegment: 'third-blog'
|
|
EditorGroups:
|
|
- =>SilverStripe\Security\Group.Editors
|
|
FourthBlog:
|
|
ClassName: SilverStripe\Blog\Model\Blog
|
|
Title: 'Fourth Blog'
|
|
URLSegment: 'fourth-blog'
|
|
Editors: =>SilverStripe\Security\Member.BlogEditor
|
|
Writers: =>SilverStripe\Security\Member.Writer
|
|
Contributors: =>SilverStripe\Security\Member.Contributor
|
|
|
|
SilverStripe\Blog\Model\BlogCategory:
|
|
FirstCategory:
|
|
Title: 'First Category'
|
|
URLSegment: 'first-category'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.FirstBlog
|
|
SecondCategory:
|
|
Title: 'Second Category'
|
|
URLSegment: 'second-category'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.SecondBlog
|
|
ThirdCategory:
|
|
Title: 'Third Category'
|
|
URLSegment: 'third-category'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.ThirdBlog
|
|
|
|
SilverStripe\Blog\Model\BlogTag:
|
|
FirstTag:
|
|
Title: 'First Tag'
|
|
URLSegment: 'first-tag'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.FirstBlog
|
|
SecondTag:
|
|
Title: 'Second Tag'
|
|
URLSegment: 'second-tag'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.SecondBlog
|
|
ThirdTag:
|
|
Title: 'Third Tag'
|
|
URLSegment: 'third-tag'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.ThirdBlog
|
|
|
|
#Tags for Tag Cloud widget
|
|
PopularTag:
|
|
Title: 'Popular'
|
|
URLSegment: 'popular'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
CoolTag:
|
|
Title: 'Cool'
|
|
URLSegment: 'cool'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
CatTag:
|
|
Title: 'Cat'
|
|
URLSegment: 'cat'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
KiwiTag:
|
|
Title: 'Kiwi'
|
|
URLSegment: 'kiwi'
|
|
BlogID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
|
|
SilverStripe\Blog\Model\BlogPost:
|
|
FirstBlogPost:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'First Post'
|
|
URLSegment: first-post
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FirstBlog
|
|
PublishDate: '2013-10-01 15:00:00'
|
|
Tags: =>SilverStripe\Blog\Model\BlogTag.FirstTag
|
|
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
|
|
SecondBlogPost:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Second Post'
|
|
URLSegment: second-post
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FirstBlog
|
|
PublishDate: '2013-09-01 15:00:00'
|
|
ThirdBlogPost:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Old Post'
|
|
URLSegment: old-post
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FirstBlog
|
|
PublishDate: '2012-01-09 15:00:00'
|
|
FirstFutureBlogPost:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Future Post'
|
|
URLSegment: future-post
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FirstBlog
|
|
PublishDate: '2015-01-01 00:00:00'
|
|
Tags: =>SilverStripe\Blog\Model\BlogTag.FirstTag
|
|
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
|
|
SecondFutureBlogPost:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Future Post 2'
|
|
URLSegment: future-post-2
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FirstBlog
|
|
PublishDate: '2013-11-01 00:00:00'
|
|
Tags: =>SilverStripe\Blog\Model\BlogTag.FirstTag
|
|
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
|
|
PostA:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'One Post'
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
Authors: =>SilverStripe\Security\Member.Writer,=>SilverStripe\Security\Member.Contributor
|
|
PublishDate: '2012-01-09 15:00:00'
|
|
PostB:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Second Post'
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
Authors: =>SilverStripe\Security\Member.BlogEditor
|
|
PublishDate: '2012-01-09 15:00:00'
|
|
PostC:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Third Post'
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
Authors: =>SilverStripe\Security\Member.Writer,=>SilverStripe\Security\Member.Contributor,=>SilverStripe\Security\Member.BlogEditor
|
|
PublishDate: '2012-01-09 15:00:00'
|
|
NullPublishDate:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'No publish date'
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
Authors: =>SilverStripe\Security\Member.Writer,=>SilverStripe\Security\Member.Contributor,=>SilverStripe\Security\Member.BlogEditor
|
|
PublishDate: null
|
|
|
|
#Posts for the tag cloud widget test
|
|
TaggedPost1:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Tagged Post 1'
|
|
URLSegment: tagged-post-1
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
PublishDate: '2012-01-09 15:00:00'
|
|
Tags: =>SilverStripe\Blog\Model\BlogTag.PopularTag,=>SilverStripe\Blog\Model\BlogTag.CoolTag
|
|
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
|
|
TaggedPost2:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Tagged Post 2'
|
|
URLSegment: tagged-post-2
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
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
|
|
TaggedPost3:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Tagged Post 3'
|
|
URLSegment: tagged-post-3
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
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
|
|
TaggedPost4:
|
|
ClassName: SilverStripe\Blog\Model\BlogPost
|
|
Title: 'Tagged Post 4'
|
|
URLSegment: tagged-post-4
|
|
ParentID: =>SilverStripe\Blog\Model\Blog.FourthBlog
|
|
PublishDate: '2012-04-09 15:00:00'
|
|
Tags: =>SilverStripe\Blog\Model\BlogTag.PopularTag
|
|
Categories: =>SilverStripe\Blog\Model\BlogCategory.FirstCategory
|
|
|
|
|