# 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
    Content: >
             <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo tristique ipsum. Vestibulum ut sagittis elit. Curabitur accumsan dui ac iaculis fermentum. Suspendisse consectetur sapien a dignissim porta. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam mollis, est quis mollis posuere, purus diam interdum magna, vel tempus libero nibh a nunc. Duis enim lectus, consectetur dapibus interdum quis, dignissim at neque. Maecenas efficitur nibh et ipsum mattis molestie. Sed id euismod risus, a efficitur nibh. Nullam erat nibh, aliquam non ante quis, euismod facilisis dui. Fusce eget tellus nec mi accumsan iaculis vitae id neque. Ut rhoncus, felis id venenatis porttitor, ex nibh varius turpis, in pulvinar sem ligula at odio. Suspendisse molestie eros et elit sagittis, nec condimentum quam scelerisque. Donec maximus ligula nec nunc mattis imperdiet. Vestibulum maximus mauris quis pulvinar iaculis.</p>
             <p>Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi non sapien eget elit venenatis tristique. Nunc mollis ante eu metus iaculis tempus. Nulla at nibh nisl. Phasellus a lacus urna. Fusce vulputate elit eu aliquet fringilla. Donec vitae efficitur ex, et rutrum nunc. Quisque sed sem at dui congue venenatis vel sit amet lectus.</p>
             <p>Fusce fermentum sapien massa, in vehicula massa faucibus ultrices. In tempor nunc at sodales pellentesque. Proin nunc elit, faucibus non vestibulum sed, varius a felis. Maecenas in justo ut ante mollis mattis. Nam placerat mi nec justo semper blandit. Ut pretium nibh justo, sit amet molestie lorem tempus vitae. Integer vehicula eget purus sed mattis. Nam sit amet lobortis quam. Vestibulum nisl diam, commodo eget maximus at, interdum non quam. Praesent et lorem consequat, ornare nulla id, ultricies odio. Ut porta dapibus metus ut fringilla. Vivamus sit amet elit eu dolor varius blandit. Morbi pharetra a odio id tempus.</p>
             <p>Phasellus at ipsum faucibus, auctor nisi eu, vestibulum diam. Cras viverra ut massa eleifend volutpat. Ut vel sapien et mi pharetra tempor. Nam at scelerisque orci. Pellentesque pulvinar in dui ut scelerisque. Sed ultrices mauris nec commodo faucibus. Sed urna erat, faucibus quis sem non, auctor tincidunt mauris. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ac tellus orci. Vivamus tincidunt turpis a sem ullamcorper, eu porttitor mauris condimentum. Aliquam auctor nisl quis massa sodales, nec venenatis metus facilisis. Duis posuere, ante at tristique tristique, sapien ligula sollicitudin purus, ut vehicula tellus mi sed mi. Fusce tortor mi, imperdiet non sollicitudin.</p>
             <p>Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi non sapien eget elit venenatis tristique. Nunc mollis ante eu metus iaculis tempus. Nulla at nibh nisl. Phasellus a lacus urna. Fusce vulputate elit eu aliquet fringilla. Donec vitae efficitur ex, et rutrum nunc. Quisque sed sem at dui congue venenatis vel sit amet lectus.</p>
  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'
    Content: >
             <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nec accumsan dolor, at viverra nibh. Vivamus lectus magna, interdum sit amet libero non, fermentum semper nunc. Nunc eu arcu euismod mauris auctor venenatis. Integer sem lorem, varius iaculis congue et, blandit eget nisi. Quisque ullamcorper laoreet sagittis. Nulla enim metus, viverra ut commodo ut, imperdiet et velit. Sed tincidunt mi condimentum, sodales lectus id, dictum neque. Suspendisse placerat, nibh at mattis volutpat, mauris augue congue dui, lobortis tempor diam magna vitae ligula. Proin sed turpis quis enim maximus sodales sit amet id diam. Proin sollicitudin elementum suscipit.</p>
             <p>Nullam at odio eget orci porttitor pharetra. Proin scelerisque mauris quam, non laoreet lectus tempor sed. Curabitur eleifend vel augue et vulputate. In porta magna vitae felis rutrum, et sodales elit ultricies. Proin ac justo nec sem maximus ultrices. Praesent nibh turpis, congue non malesuada id, tincidunt id augue. Aenean vulputate ullamcorper dapibus. Maecenas tincidunt sapien in dolor feugiat porta. Aenean venenatis nibh nunc, ut lacinia dolor luctus at. Integer viverra velit nec tincidunt venenatis. Duis congue blandit ante et convallis. Donec id convallis lorem. Vestibulum vel pellentesque nisl. Nunc accumsan non nisi vitae ultricies. Nam tempus elit at ornare volutpat. Nullam et.</p>
  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'
    Content: >
             <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nec accumsan dolor, at viverra nibh. Vivamus lectus magna, interdum sit amet libero non, fermentum semper nunc. Nunc eu arcu euismod mauris auctor venenatis. Integer sem lorem, varius iaculis congue et, blandit eget nisi. Quisque ullamcorper laoreet sagittis. Nulla enim metus, viverra ut commodo ut, imperdiet et velit. Sed tincidunt mi condimentum, sodales lectus id, dictum neque. Suspendisse placerat, nibh at mattis volutpat, mauris augue congue dui, lobortis tempor diam magna vitae ligula. Proin sed turpis quis enim maximus sodales sit amet id diam. Proin sollicitudin elementum suscipit.</p>
  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