Skip to content

Commit

Permalink
Merge branch 'staging' into fix/parsenews-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pdcp1 committed Sep 13, 2023
2 parents dea8134 + e5dd230 commit e79cf80
Show file tree
Hide file tree
Showing 2 changed files with 361 additions and 147 deletions.
159 changes: 121 additions & 38 deletions prismicCustomTypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,73 +113,156 @@ name: `sponsor`
JSON:
```
{
"Main": {
"title": {
"type": "StructuredText",
"config": {
"single": "heading6",
"label": "Title",
"placeholder": "Sponsor(s) card title"
"Main" : {
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading6",
"label" : "Title",
"placeholder" : "Sponsor(s) card title"
}
},
"language": {
"type": "StructuredText",
"language" : {
"type" : "StructuredText",
"config" : {
"single" : "heading6",
"label" : "language",
"placeholder" : "Language (en, es or fr)"
}
},
"order" : {
"type" : "StructuredText",
"config" : {
"single" : "heading6",
"label" : "Order",
"placeholder" : "The order you wish the sponsor to appear"
}
},
"items" : {
"type" : "Group",
"config" : {
"fields" : {
"logo" : {
"type" : "Image",
"config" : {
"constraint" : { },
"thumbnails" : [ ],
"label" : "Logo"
}
},
"name" : {
"type" : "StructuredText",
"config" : {
"single" : "heading5",
"label" : "name",
"placeholder" : "Sponsor's name"
}
},
"description" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl",
"allowTargetBlank" : true,
"label" : "description",
"placeholder" : "Sponsor's description"
}
},
"link" : {
"type" : "Link",
"config" : {
"label" : "link",
"select" : null,
"allowTargetBlank" : true,
"placeholder" : "Logo's link"
}
}
},
"label" : "Sponsor's info"
}
}
}
}
```

### 3. Footer custom type

name: `footer`

JSON:
```
{
"Main": {
"title": {
"type": "Text",
"config": {
"single": "heading6",
"label": "language",
"placeholder": "Language (en, es or fr)"
"label": "Title"
}
},
"order": {
"type": "StructuredText",
"type": "Number",
"config": {
"single": "heading6",
"label": "Order",
"placeholder": "The order you wish the sponsor to appear"
"label": "Order"
}
},
"items": {
"type": "Group",
"config": {
"fields": {
"logo": {
"type": "Image",
"item_title": {
"type": "Text",
"config": {
"constraint": {},
"thumbnails": [],
"label": "Logo"
"label": "Item Title"
}
},
"name": {
"type": "StructuredText",
"item_url": {
"type": "Link",
"config": {
"single": "heading5",
"label": "name",
"placeholder": "Sponsor's name"
"label": "Item URL",
"select": null,
"allowTargetBlank": true,
"placeholder": "External URL (outside site)"
}
},
"description": {
"type": "StructuredText",
"path": {
"type": "Text",
"config": {
"multi": "paragraph,preformatted,heading1,heading2,heading3,heading4,heading5,heading6,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl",
"allowTargetBlank": true,
"label": "description",
"placeholder": "Sponsor's description"
"label": "Path"
}
}
},
"label": "Items"
}
},
"social": {
"type": "Group",
"config": {
"fields": {
"name": {
"type": "Text",
"config": {
"label": "Name",
"placeholder": "twitter/facebook/github/linked"
}
},
"link": {
"url": {
"type": "Link",
"config": {
"label": "link",
"select": null,
"allowTargetBlank": true,
"placeholder": "Logo's link"
"label": "url",
"placeholder": "URL to your social media account",
"select": null
}
},
"path": {
"type": "Text",
"config": {
"label": "Path"
}
}
},
"label": "Sponsor's info"
"label": "social"
}
}
}
}
```
```
Loading

0 comments on commit e79cf80

Please sign in to comment.