Skip to content

Commit

Permalink
[F] Basic iframe embed ContentBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Mason committed Aug 5, 2022
1 parent 1bf18a5 commit 31c0755
Show file tree
Hide file tree
Showing 36 changed files with 304 additions and 24 deletions.
3 changes: 2 additions & 1 deletion api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"sebastianlenz/linkfield": "2.0.*@dev",
"spicyweb/craft-neo": "2.13.12",
"verbb/super-table": "2.7.2",
"vlucas/phpdotenv": "^3.4.0"
"vlucas/phpdotenv": "^3.4.0",
"wrav/oembed": "1.3.18"
},
"repositories": [
{
Expand Down
144 changes: 143 additions & 1 deletion api/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/config/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@
'staging' => [
// Set this to `false` to prevent administrative changes from being made on staging
'allowAdminChanges' => false,
'enableGraphQlCaching' => true,
],

// Production environment settings
'production' => [
// Set this to `false` to prevent administrative changes from being made on production
'allowAdminChanges' => false,
'enableGraphQlCaching' => true,
],
];
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ name: 'Content Blocks - Pages'
searchable: true
settings:
maxBlocks: ''
maxLevels: ''
maxTopBlocks: ''
minBlocks: ''
propagationKeyFormat: null
propagationMethod: all
wasModified: true
wasModified: false
translationKeyFormat: null
translationMethod: site
type: benf\neo\Field
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
columnSuffix: pkujmllw
contentColumnType: text
fieldGroup: 9940892d-32f4-4399-acac-ab559ce1c82b # Common
handle: embed
instructions: ''
name: 'Embed url'
searchable: false
settings:
url: ''
translationKeyFormat: null
translationMethod: none
type: wrav\oembed\fields\OembedField
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
columnSuffix: pnqvyaga
contentColumnType: text
fieldGroup: 9940892d-32f4-4399-acac-ab559ce1c82b # Common
handle: embedTitle
instructions: ''
name: 'Embed Title'
searchable: false
settings:
byteLimit: null
charLimit: null
code: ''
columnType: null
initialRows: '4'
multiline: ''
placeholder: null
uiMode: normal
translationKeyFormat: null
translationMethod: site
type: craft\fields\PlainText
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
columnSuffix: zpjeouxg
contentColumnType: boolean
fieldGroup: 99f4a28a-48c3-49ca-bb4a-7acbb49fde30 # Pages
handle: fullWidth
instructions: ''
name: 'Full Width'
searchable: false
settings:
default: false
offLabel: 'Body container width'
onLabel: 'Full Bleed'
translationKeyFormat: null
translationMethod: none
type: craft\fields\Lightswitch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
childBlocks: ''
childBlocks: null
field: 72e5075a-9b06-4674-b040-615f4a6f7b70 # Content Blocks - Pages
fieldLayouts:
d12c81d8-7643-44fc-93c0-6b61963076b0:
Expand All @@ -25,6 +25,7 @@ fieldLayouts:
width: 100
name: Content
sortOrder: 1
group: null
handle: accordion
maxBlocks: 0
maxChildBlocks: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fieldLayouts:
width: 100
name: Content
sortOrder: 1
group: null
handle: accordionGroup
maxBlocks: 0
maxChildBlocks: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
childBlocks: ''
childBlocks: null
field: 72e5075a-9b06-4674-b040-615f4a6f7b70 # Content Blocks - Pages
fieldLayouts:
1e2db49e-b024-4fac-bf2c-2cc02ab01005:
Expand All @@ -16,6 +16,7 @@ fieldLayouts:
width: 100
name: 'Tab 1'
sortOrder: 1
group: null
handle: callout
maxBlocks: 0
maxChildBlocks: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
childBlocks: ''
childBlocks: null
field: 72e5075a-9b06-4674-b040-615f4a6f7b70 # Content Blocks - Pages
fieldLayouts:
c102e484-6dbd-4935-a91b-9673b3f53d97:
Expand Down Expand Up @@ -34,6 +34,7 @@ fieldLayouts:
width: 100
name: Content
sortOrder: 1
group: null
handle: complexTable
maxBlocks: 0
maxChildBlocks: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
childBlocks: ''
childBlocks: null
field: 72e5075a-9b06-4674-b040-615f4a6f7b70 # Content Blocks - Pages
fieldLayouts:
d9c9eb2f-9504-4dc2-8371-f61bdf5daa34:
Expand Down Expand Up @@ -34,6 +34,7 @@ fieldLayouts:
width: 50
name: 'Tab 1'
sortOrder: 1
group: null
handle: contact
maxBlocks: 0
maxChildBlocks: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
childBlocks: ''
childBlocks: null
field: 72e5075a-9b06-4674-b040-615f4a6f7b70 # Content Blocks - Pages
fieldLayouts:
2c3aebef-93a3-4cb1-beda-4d47a13a0b8e:
Expand All @@ -25,6 +25,7 @@ fieldLayouts:
width: 100
name: Content
sortOrder: 1
group: null
handle: cta
maxBlocks: 0
maxChildBlocks: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fieldLayouts:
width: 100
name: Content
sortOrder: 1
group: null
handle: ctaGrid
maxBlocks: 0
maxChildBlocks: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
childBlocks: ''
childBlocks: null
field: 72e5075a-9b06-4674-b040-615f4a6f7b70 # Content Blocks - Pages
fieldLayouts:
a3ad26d8-31e3-47be-8a53-30b10466c167:
Expand All @@ -16,6 +16,7 @@ fieldLayouts:
width: 100
name: Content
sortOrder: 1
group: null
handle: downloadList
maxBlocks: 0
maxChildBlocks: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
childBlocks: null
field: 72e5075a-9b06-4674-b040-615f4a6f7b70 # Content Blocks - Pages
fieldLayouts:
15b4e9f5-024c-42b7-91cd-a365142923aa:
tabs:
-
elements:
-
fieldUid: 83885be8-333d-42b1-964f-fd89666907ff # Embed Title
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: ef5793ab-b4f7-45c7-be68-338184b3d385 # Full Width
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
-
fieldUid: 9c6d529b-4199-4be2-8284-fafc8063250c # Embed url
instructions: null
label: null
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
warning: null
width: 100
name: Options
sortOrder: 1
group: null
handle: iframe
maxBlocks: 0
maxChildBlocks: 0
maxSiblingBlocks: 0
name: iFrame
sortOrder: 28
topLevel: true
Loading

0 comments on commit 31c0755

Please sign in to comment.