Skip to content

Instantly share code, notes, and snippets.

@dreadfullyposh
Created May 22, 2019 19:44
Show Gist options
  • Save dreadfullyposh/4f7050f2bc58b724f2cb286d9ded1d18 to your computer and use it in GitHub Desktop.
Save dreadfullyposh/4f7050f2bc58b724f2cb286d9ded1d18 to your computer and use it in GitHub Desktop.
{
"sources": [{
"name": "Organization Logos",
"handle": "organizationLogos",
"type": "Local",
"settings": {
"path": "{fileSystemPath}uploads/organization_logos",
"url": "{siteUrl}uploads/organization_logos",
"publicURLs": true
},
"fieldLayout": {}
}],
"fields": [{
"group": "Default",
"name": "Organization Mascot",
"handle": "organizationMascot",
"instructions": "",
"type": "PlainText",
"typesettings": {
"placeholder": "",
"maxLength": 255,
"multiline": false
}
},
{
"group": "Default",
"name": "Organization Primary Color",
"handle": "organizationPrimaryColor",
"instructions": "",
"type": "Color"
},
{
"group": "Default",
"name": "Organization Secondary Color",
"handle": "organizationSecondaryColor",
"instructions": "",
"type": "Color"
},
{
"group": "Default",
"name": "Organization Logo",
"handle": "organizationLogo",
"instructions": "",
"type": "Assets",
"typesettings": {
"useSingleFolder": true,
"sources": ["organizationLogos"],
"restrictFiles": true,
"allowedKinds": [
"image"
],
"limit": 1,
"viewMode": "list",
"selectionLabel": "Add a logo"
}
},
{
"group": "Default",
"name": "Athletic Directors",
"handle": "organizationAthleticDirectors",
"instructions": "",
"type": "Users",
"typesettings": {
"sources": [],
"selectionLabel": "Add an athletic director"
}
},
{
"group": "Default",
"name": "Teams",
"handle": "organizationTeams",
"instructions": "",
"type": "Entries",
"typesettings": {
"sources": ["teams"],
"limit": 0,
"selectionLabel": "Add a team"
}
}
],
"entryTypes": [
{
"sectionHandle": "organizations",
"hasTitleField": true,
"titleLabel": "Organization Name",
"name": "Organizations",
"handle": "organizations",
"fieldLayout": {
"Organization": [
"organizationMascot",
"organizationPrimaryColor",
"organizationSecondaryColor",
"organizationLogo",
"organizationAthleticDirectors",
"organizationTeams"
]
},
"requiredFields": []
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment