silverstripe-subsites/tests/SubsiteTest.yml

71 lines
1.8 KiB
YAML

Subsite_Template:
main:
Title: Template
Domain: test.com
subsite1:
Title: Subsite1 Template
Subdomain: subsite1
subsite2:
Title: Subsite2 Template
Subdomain: subsite2
Page:
home:
Title: Home
SubsiteID: =>Subsite_Template.main
about:
Title: About
SubsiteID: =>Subsite_Template.main
staff:
Title: Staff
ParentID: =>Page.about
SubsiteID: =>Subsite_Template.main
contact:
Title: Contact Us
SubsiteID: =>Subsite_Template.main
subsite1_home:
Title: Home (Subsite 1)
SubsiteID: =>Subsite_Template.subsite1
subsite1_contactus:
Title: Contact Us (Subsite 1)
SubsiteID: =>Subsite_Template.subsite1
subsite2_home:
Title: Home (Subsite 2)
SubsiteID: =>Subsite_Template.subsite2
subsite2_contactus:
Title: Contact Us (Subsite 2)
SubsiteID: =>Subsite_Template.subsite2
Permission:
admin:
Code: ADMIN
accesscmsmain1:
Code: CMS_ACCESS_CMSMain
accesscmsmain2:
Code: CMS_ACCESS_CMSMain
Group:
admin:
Title: Admin
Code: admin
Permissions: =>Permission.admin
subsite1_group:
Title: subsite1_group
Code: subsite1_group
Subsite: =>Subsite_Template.subsite1
Permissions: =>Permission.accesscmsmain1
subsite2_group:
Title: subsite2_group
Code: subsite1_group
Subsite: =>Subsite_Template.subsite2
Permissions: =>Permission.accesscmsmain2
Member:
admin:
FirstName: Admin
Surname: User
Email: admin@test.com
Password: rangi
Groups: =>Group.admin
subsite1member:
Email: subsite1member@test.com
Groups: =>Group.subsite1_group
subsite2member:
Email: subsite2member@test.com
Groups: =>Group.subsite2_group