Skip to content

Commit

Permalink
Contentbuilder conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed May 7, 2024
1 parent f993ce1 commit b286231
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,18 @@ fieldLayouts:
warning: null
width: 100
-
elementCondition: null
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\RelationalFieldConditionRule
elementId: null
fieldUid: cd736fb3-c9b7-4ce1-88a8-da8b64249eb1
layoutElementUid: baa9eb81-3124-4edd-8cfd-8a294e0b0c16
operator: notempty
uid: 5fe86e5b-39d5-4829-a19a-81ffd7422257
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 683cbd88-ef11-45e0-83b4-e20d03f6ea6b
handle: null
includeInCards: false
Expand All @@ -65,7 +76,18 @@ fieldLayouts:
warning: null
width: 50
-
elementCondition: null
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\RelationalFieldConditionRule
elementId: null
fieldUid: cd736fb3-c9b7-4ce1-88a8-da8b64249eb1
layoutElementUid: baa9eb81-3124-4edd-8cfd-8a294e0b0c16
operator: notempty
uid: 4fe12c4e-1538-4e6b-97d4-0c4038eea43c
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 9abed6d9-3042-4dd4-add0-3115a6e2693b
handle: null
includeInCards: false
Expand All @@ -80,32 +102,54 @@ fieldLayouts:
warning: null
width: 50
-
elementCondition: null
fieldUid: 4ce05044-aa3d-4bbe-ad21-be03fbc1a273
handle: backgroundColor
includeInCards: false
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\RelationalFieldConditionRule
elementId: null
fieldUid: cd736fb3-c9b7-4ce1-88a8-da8b64249eb1
layoutElementUid: baa9eb81-3124-4edd-8cfd-8a294e0b0c16
operator: notempty
uid: de08ac12-f353-4bfd-a93e-82f199ea39e5
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 9084b802-1468-4763-a867-2e4b1ebd3f09
handle: null
includeInCards: true
instructions: null
label: 'Background Color'
label: 'Show larger version in popup'
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: ccae05e3-e8e4-4417-a452-ae31afa6664d
uid: feb576a2-753f-4c0e-bc99-499d303293d5
userCondition: null
warning: null
width: 50
-
elementCondition: null
fieldUid: 9084b802-1468-4763-a867-2e4b1ebd3f09
handle: null
includeInCards: true
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\RelationalFieldConditionRule
elementId: null
fieldUid: cd736fb3-c9b7-4ce1-88a8-da8b64249eb1
layoutElementUid: baa9eb81-3124-4edd-8cfd-8a294e0b0c16
operator: notempty
uid: 46d0d027-b2b7-453f-b3d5-ccabb606ef7e
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 4ce05044-aa3d-4bbe-ad21-be03fbc1a273
handle: backgroundColor
includeInCards: false
instructions: null
label: 'Show larger version in popup'
label: 'Background Color'
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: feb576a2-753f-4c0e-bc99-499d303293d5
uid: ccae05e3-e8e4-4417-a452-ae31afa6664d
userCondition: null
warning: null
width: 50
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,18 @@ fieldLayouts:
warning: null
width: 100
-
elementCondition: null
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\RelationalFieldConditionRule
elementId: null
fieldUid: f21594e6-d83e-4047-a36c-0d6b709719e1
layoutElementUid: ed69e655-73d9-4f2b-94a0-2275e9b4faf8
operator: notempty
uid: bff13979-b76b-4287-ba37-4524086ab37a
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 40e14f90-0640-452d-9c8a-9f30f73bacbb
handle: position
includeInCards: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,18 @@ fieldLayouts:
warning: null
width: 50
-
elementCondition: null
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\TextFieldConditionRule
fieldUid: 2561c4fb-34b5-49e6-ade6-f774411e48ba
layoutElementUid: f3b691ab-3aba-42aa-9b69-08b6498a0827
operator: notempty
uid: 24a4bc9a-8719-420a-9fb1-dc1c71dbf719
value: ''
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 896816a1-5444-4e1b-b74c-efbac472953c
handle: placeholderImage
includeInCards: false
Expand All @@ -110,7 +121,18 @@ fieldLayouts:
warning: null
width: 50
-
elementCondition: null
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\TextFieldConditionRule
fieldUid: 2561c4fb-34b5-49e6-ade6-f774411e48ba
layoutElementUid: f3b691ab-3aba-42aa-9b69-08b6498a0827
operator: notempty
uid: 6c06bc96-07da-42e3-a38a-8b5035a1d6e5
value: ''
elementType: craft\elements\Entry
fieldContext: global
fieldUid: c8533e19-1c6c-4d33-8e50-71babb409313
handle: null
includeInCards: false
Expand All @@ -125,7 +147,18 @@ fieldLayouts:
warning: null
width: 50
-
elementCondition: null
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\TextFieldConditionRule
fieldUid: 2561c4fb-34b5-49e6-ade6-f774411e48ba
layoutElementUid: f3b691ab-3aba-42aa-9b69-08b6498a0827
operator: notempty
uid: ec290809-f6cb-4b14-a14d-f471e3946c5c
value: ''
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 561b6d99-0213-4cfc-bd14-c3c4f4ff02d3
handle: videoCaption
includeInCards: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,18 @@ fieldLayouts:
warning: null
width: 50
-
elementCondition: null
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\TextFieldConditionRule
fieldUid: d66ffcef-8ccc-4e89-9e36-bce49e0dd17a
layoutElementUid: 10b5c1ef-5a1d-4b4f-90ca-41388b1bc2d1
operator: notempty
uid: 3fc78862-9f56-46d4-836b-e68ca9372002
value: ''
elementType: craft\elements\Entry
fieldContext: global
fieldUid: 724561c2-845a-427f-b005-e0c2a35e0112
handle: null
includeInCards: false
Expand All @@ -65,32 +76,43 @@ fieldLayouts:
warning: null
width: 50
-
elementCondition: null
fieldUid: fca40313-aa0d-4206-a530-c638a5166f69
handle: backgroundColor
elementCondition:
class: craft\elements\conditions\entries\EntryCondition
conditionRules:
-
class: craft\fields\conditions\TextFieldConditionRule
fieldUid: d66ffcef-8ccc-4e89-9e36-bce49e0dd17a
layoutElementUid: 10b5c1ef-5a1d-4b4f-90ca-41388b1bc2d1
operator: notempty
uid: 490385ac-af06-4c93-8ec1-df90660505e5
value: ''
elementType: craft\elements\Entry
fieldContext: global
fieldUid: ae5f2b18-f88e-4521-a729-d5fccff56993
handle: null
includeInCards: false
instructions: null
label: 'Background Color'
label: 'Video Caption'
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: ee4947c6-1e36-4c0a-9f92-995d187c1983
uid: 7cf136e3-1af6-43c5-bcd3-2d6cf2878c1c
userCondition: null
warning: null
width: 50
-
elementCondition: null
fieldUid: ae5f2b18-f88e-4521-a729-d5fccff56993
handle: null
fieldUid: fca40313-aa0d-4206-a530-c638a5166f69
handle: backgroundColor
includeInCards: false
instructions: null
label: 'Video Caption'
label: 'Background Color'
providesThumbs: false
required: false
tip: null
type: craft\fieldlayoutelements\CustomField
uid: 7cf136e3-1af6-43c5-bcd3-2d6cf2878c1c
uid: ee4947c6-1e36-4c0a-9f92-995d187c1983
userCondition: null
warning: null
width: 50
Expand Down
2 changes: 1 addition & 1 deletion config/project/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dateModified: 1715022761
dateModified: 1715064947
elementSources:
craft\elements\Entry:
-
Expand Down

0 comments on commit b286231

Please sign in to comment.