generated from pascalmartineau/wp-skeleton
wip: abstract field groups
This commit is contained in:
@@ -64,7 +64,6 @@ Use GitHub-style checkboxes to mark task completion:
|
||||
- [x] Design and create ACF fields for Resource CPT <!-- Completed: group_post_resource.json (8KB) -->
|
||||
- [x] Create flexible content field groups for dynamic layouts <!-- Completed: Multiple abstract groups (builder, credits, gallery, offer) -->
|
||||
- [x] Set up ACF options page for site-wide settings <!-- Completed: group_options_page_ccat.json -->
|
||||
- [ ] Finalize the
|
||||
|
||||
### WPGraphQL Integration
|
||||
- [x] Configure GraphQL schema for all CPTs <!-- Completed: All CPTs visible in 866KB schema.graphql -->
|
||||
|
||||
@@ -3,7 +3,11 @@ __( "1024px container", 'ccat' );
|
||||
__( "1280px container", 'ccat' );
|
||||
__( "640px container", 'ccat' );
|
||||
__( "768px container", 'ccat' );
|
||||
__( "Abstract – Address (city)", 'ccat' );
|
||||
__( "Abstract – Address (contact)", 'ccat' );
|
||||
__( "Abstract – Address (geo)", 'ccat' );
|
||||
__( "Abstract – Builder", 'ccat' );
|
||||
__( "Abstract – Contact", 'ccat' );
|
||||
__( "Abstract – Credits", 'ccat' );
|
||||
__( "Abstract – Entity", 'ccat' );
|
||||
__( "Abstract – Gallery", 'ccat' );
|
||||
@@ -64,6 +68,7 @@ __( "Failed", 'ccat' );
|
||||
__( "Familial", 'ccat' );
|
||||
__( "Festival", 'ccat' );
|
||||
__( "File", 'ccat' );
|
||||
__( "First name", 'ccat' );
|
||||
__( "Fluid container", 'ccat' );
|
||||
__( "Form", 'ccat' );
|
||||
__( "Free", 'ccat' );
|
||||
@@ -82,6 +87,7 @@ __( "Institution profile", 'ccat' );
|
||||
__( "Interprète", 'ccat' );
|
||||
__( "Is asynchronous", 'ccat' );
|
||||
__( "Language(s)", 'ccat' );
|
||||
__( "Last name", 'ccat' );
|
||||
__( "Locality", 'ccat' );
|
||||
__( "Location", 'ccat' );
|
||||
__( "Location type", 'ccat' );
|
||||
@@ -103,7 +109,6 @@ __( "Options page – CCAT", 'ccat' );
|
||||
__( "Organisation", 'ccat' );
|
||||
__( "Organization profile", 'ccat' );
|
||||
__( "Period", 'ccat' );
|
||||
__( "Person name", 'ccat' );
|
||||
__( "Phone", 'ccat' );
|
||||
__( "Physical person", 'ccat' );
|
||||
__( "Planned", 'ccat' );
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"key": "group_abstract_address_city",
|
||||
"title": "Abstract - Address (city)",
|
||||
"fields": [
|
||||
{
|
||||
"key": "field_68d5527e52ccc",
|
||||
"label": "Address",
|
||||
"name": "address",
|
||||
"aria-label": "",
|
||||
"type": "acfe_address",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"placeholder": "Rechercher une adresse...",
|
||||
"countries": [
|
||||
"ca"
|
||||
],
|
||||
"search_type": "(cities)",
|
||||
"geolocation": 1,
|
||||
"custom_address": 0,
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"api_key": "",
|
||||
"fields": {
|
||||
"68d553b4318a6": {
|
||||
"field": "address",
|
||||
"name": "formatted"
|
||||
},
|
||||
"row-row-0": {
|
||||
"field": "country_short",
|
||||
"name": "country_code"
|
||||
},
|
||||
"row-row-1": {
|
||||
"field": "state_short",
|
||||
"name": "state_code"
|
||||
},
|
||||
"row-68d552af52ccd": {
|
||||
"field": "post_code",
|
||||
"name": "postal_code"
|
||||
}
|
||||
},
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "address",
|
||||
"graphql_non_null": 1,
|
||||
"default_value": ""
|
||||
}
|
||||
],
|
||||
"location": [
|
||||
[
|
||||
{
|
||||
"param": "abstract"
|
||||
}
|
||||
]
|
||||
],
|
||||
"menu_order": 0,
|
||||
"position": "normal",
|
||||
"style": "default",
|
||||
"label_placement": "top",
|
||||
"instruction_placement": "label",
|
||||
"hide_on_screen": "",
|
||||
"active": true,
|
||||
"description": "",
|
||||
"show_in_rest": 0,
|
||||
"acfe_autosync": [
|
||||
"json"
|
||||
],
|
||||
"acfe_form": 0,
|
||||
"acfe_display_title": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_field_name": "groupAbstractAddressCity",
|
||||
"map_graphql_types_from_location_rules": 0,
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1758811326
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"key": "group_abstract_address_contact",
|
||||
"title": "Abstract - Address (contact)",
|
||||
"fields": [
|
||||
{
|
||||
"key": "field_address_contact_location",
|
||||
"label": "Address",
|
||||
"name": "address",
|
||||
"aria-label": "",
|
||||
"type": "acfe_address",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"placeholder": "Search for address...",
|
||||
"countries": [
|
||||
"ca"
|
||||
],
|
||||
"search_type": "address",
|
||||
"geolocation": 1,
|
||||
"custom_address": 0,
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"api_key": "",
|
||||
"fields": {
|
||||
"row-4": {
|
||||
"field": "address",
|
||||
"name": "formatted"
|
||||
},
|
||||
"row-1": {
|
||||
"field": "country_short",
|
||||
"name": "country_code"
|
||||
},
|
||||
"row-3": {
|
||||
"field": "state_short",
|
||||
"name": "state_code"
|
||||
},
|
||||
"68d554ddf7c58": {
|
||||
"field": "city",
|
||||
"name": "city"
|
||||
},
|
||||
"68d554e3f7c59": {
|
||||
"field": "post_code",
|
||||
"name": "postal_code"
|
||||
},
|
||||
"68d554ecf7c5a": {
|
||||
"field": "street_number",
|
||||
"name": "street_number"
|
||||
},
|
||||
"68d554f6f7c5b": {
|
||||
"field": "street_name",
|
||||
"name": "street_name"
|
||||
}
|
||||
},
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 1,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "address",
|
||||
"graphql_non_null": 1,
|
||||
"default_value": ""
|
||||
}
|
||||
],
|
||||
"location": [
|
||||
[
|
||||
{
|
||||
"param": "abstract"
|
||||
}
|
||||
]
|
||||
],
|
||||
"menu_order": 0,
|
||||
"position": "normal",
|
||||
"style": "default",
|
||||
"label_placement": "top",
|
||||
"instruction_placement": "label",
|
||||
"hide_on_screen": "",
|
||||
"active": true,
|
||||
"description": "",
|
||||
"show_in_rest": 0,
|
||||
"acfe_autosync": [
|
||||
"json"
|
||||
],
|
||||
"acfe_form": 0,
|
||||
"acfe_display_title": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_field_name": "groupAbstractAddressContact",
|
||||
"map_graphql_types_from_location_rules": 0,
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1758811411
|
||||
}
|
||||
106
wp-content/themes/ccat/acf-json/group_abstract_address_geo.json
Normal file
106
wp-content/themes/ccat/acf-json/group_abstract_address_geo.json
Normal file
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"key": "group_abstract_address_geo",
|
||||
"title": "Abstract - Address (geo)",
|
||||
"fields": [
|
||||
{
|
||||
"key": "field_address_geo_location",
|
||||
"label": "Address",
|
||||
"name": "address",
|
||||
"aria-label": "",
|
||||
"type": "acfe_address",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"placeholder": "Search for address...",
|
||||
"countries": "",
|
||||
"search_type": "establishment",
|
||||
"geolocation": 1,
|
||||
"custom_address": 0,
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"api_key": "",
|
||||
"fields": {
|
||||
"row-0": {
|
||||
"field": "address",
|
||||
"name": "formatted"
|
||||
},
|
||||
"row-1": {
|
||||
"field": "country_short",
|
||||
"name": "country_code"
|
||||
},
|
||||
"row-2": {
|
||||
"field": "state_short",
|
||||
"name": "state_code"
|
||||
},
|
||||
"row-3": {
|
||||
"field": "city",
|
||||
"name": "city"
|
||||
},
|
||||
"row-4": {
|
||||
"field": "post_code",
|
||||
"name": "postal_code"
|
||||
},
|
||||
"row-5": {
|
||||
"field": "street_number",
|
||||
"name": "street_number"
|
||||
},
|
||||
"row-6": {
|
||||
"field": "street_name",
|
||||
"name": "street_name"
|
||||
},
|
||||
"68d55568a379d": {
|
||||
"field": "place_id",
|
||||
"name": "place_id"
|
||||
},
|
||||
"68d5556da379e": {
|
||||
"field": "lat",
|
||||
"name": "lat"
|
||||
},
|
||||
"68d55571a379f": {
|
||||
"field": "lng",
|
||||
"name": "lng"
|
||||
}
|
||||
},
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 1,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "address",
|
||||
"graphql_non_null": 0,
|
||||
"default_value": ""
|
||||
}
|
||||
],
|
||||
"location": [
|
||||
[
|
||||
{
|
||||
"param": "abstract"
|
||||
}
|
||||
]
|
||||
],
|
||||
"menu_order": 0,
|
||||
"position": "normal",
|
||||
"style": "default",
|
||||
"label_placement": "top",
|
||||
"instruction_placement": "label",
|
||||
"hide_on_screen": "",
|
||||
"active": true,
|
||||
"description": "",
|
||||
"show_in_rest": 0,
|
||||
"acfe_autosync": [
|
||||
"json"
|
||||
],
|
||||
"acfe_form": 0,
|
||||
"acfe_display_title": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_field_name": "groupAbstractAddressGeo",
|
||||
"map_graphql_types_from_location_rules": 0,
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1758811522
|
||||
}
|
||||
174
wp-content/themes/ccat/acf-json/group_abstract_contact.json
Normal file
174
wp-content/themes/ccat/acf-json/group_abstract_contact.json
Normal file
@@ -0,0 +1,174 @@
|
||||
{
|
||||
"key": "group_abstract_contact",
|
||||
"title": "Abstract - Contact",
|
||||
"fields": [
|
||||
{
|
||||
"key": "field_contact_first_name",
|
||||
"label": "First name",
|
||||
"name": "first_name",
|
||||
"aria-label": "",
|
||||
"type": "text",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "50",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"required_message": "",
|
||||
"maxlength": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "firstName",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_contact_last_name",
|
||||
"label": "Last name",
|
||||
"name": "last_name",
|
||||
"aria-label": "",
|
||||
"type": "text",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "50",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"required_message": "",
|
||||
"maxlength": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "lastName",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_contact_email",
|
||||
"label": "Email",
|
||||
"name": "email",
|
||||
"aria-label": "",
|
||||
"type": "email",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "50",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "email",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_contact_phone",
|
||||
"label": "Phone",
|
||||
"name": "phone",
|
||||
"aria-label": "",
|
||||
"type": "acfe_phone_number",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "50",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"countries": [
|
||||
"ca"
|
||||
],
|
||||
"preferred_countries": "",
|
||||
"default_country": "ca",
|
||||
"geolocation": 0,
|
||||
"native": 0,
|
||||
"national": 0,
|
||||
"dropdown": 0,
|
||||
"dial_code": 0,
|
||||
"default_value": "",
|
||||
"placeholder": "",
|
||||
"return_format": "array",
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 1,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "phone",
|
||||
"graphql_non_null": 1,
|
||||
"geolocation_token": ""
|
||||
},
|
||||
{
|
||||
"key": "field_contact_address",
|
||||
"label": "Address",
|
||||
"name": "address",
|
||||
"aria-label": "",
|
||||
"type": "clone",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"graphql_field_name": "address",
|
||||
"clone": [
|
||||
"field_address_contact_location"
|
||||
],
|
||||
"display": "seamless",
|
||||
"layout": "block",
|
||||
"prefix_label": 0,
|
||||
"prefix_name": 0,
|
||||
"acfe_seamless_style": 0,
|
||||
"acfe_clone_modal": 0,
|
||||
"acfe_clone_modal_close": 0,
|
||||
"acfe_clone_modal_button": "",
|
||||
"acfe_clone_modal_size": "large"
|
||||
}
|
||||
],
|
||||
"location": [
|
||||
[
|
||||
{
|
||||
"param": "abstract"
|
||||
}
|
||||
]
|
||||
],
|
||||
"menu_order": 0,
|
||||
"position": "normal",
|
||||
"style": "default",
|
||||
"label_placement": "top",
|
||||
"instruction_placement": "label",
|
||||
"hide_on_screen": "",
|
||||
"active": true,
|
||||
"description": "",
|
||||
"show_in_rest": 0,
|
||||
"acfe_autosync": [
|
||||
"json"
|
||||
],
|
||||
"acfe_form": 0,
|
||||
"acfe_display_title": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_field_name": "groupAbstractContact",
|
||||
"map_graphql_types_from_location_rules": 0,
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1758811604
|
||||
}
|
||||
@@ -169,9 +169,9 @@
|
||||
"label": "Address",
|
||||
"name": "address",
|
||||
"aria-label": "",
|
||||
"type": "acfe_address",
|
||||
"type": "clone",
|
||||
"instructions": "",
|
||||
"required": 0,
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
@@ -179,30 +179,18 @@
|
||||
"id": ""
|
||||
},
|
||||
"graphql_field_name": "address",
|
||||
"placeholder": "Rechercher une adresse...",
|
||||
"countries": "",
|
||||
"search_type": "(cities)",
|
||||
"geolocation": 1,
|
||||
"custom_address": 0,
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"api_key": "",
|
||||
"fields": {
|
||||
"row-2": {
|
||||
"field": "country_short",
|
||||
"name": "country"
|
||||
},
|
||||
"row-1": {
|
||||
"field": "state",
|
||||
"name": "state"
|
||||
},
|
||||
"685aa185687d4": {
|
||||
"field": "city",
|
||||
"name": "city"
|
||||
}
|
||||
},
|
||||
"allow_in_bindings": 0,
|
||||
"default_value": "",
|
||||
"clone": [
|
||||
"field_68d5527e52ccc"
|
||||
],
|
||||
"display": "seamless",
|
||||
"layout": "block",
|
||||
"prefix_label": 0,
|
||||
"prefix_name": 0,
|
||||
"acfe_seamless_style": 0,
|
||||
"acfe_clone_modal": 0,
|
||||
"acfe_clone_modal_close": 0,
|
||||
"acfe_clone_modal_button": "",
|
||||
"acfe_clone_modal_size": "large",
|
||||
"parent_repeater": "field_685aa158687d2"
|
||||
}
|
||||
]
|
||||
@@ -355,5 +343,5 @@
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1757960468
|
||||
"modified": 1758811648
|
||||
}
|
||||
@@ -1,7 +1,79 @@
|
||||
{
|
||||
"key": "group_post_listing",
|
||||
"title": "Post - Listing",
|
||||
"fields": [],
|
||||
"fields": [
|
||||
{
|
||||
"key": "field_listing_category",
|
||||
"label": "Listing category",
|
||||
"name": "listing_category",
|
||||
"aria-label": "",
|
||||
"type": "taxonomy",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"taxonomy": "listing_category",
|
||||
"field_type": "select",
|
||||
"allow_null": 0,
|
||||
"add_term": 0,
|
||||
"save_terms": 1,
|
||||
"load_terms": 1,
|
||||
"return_format": "object",
|
||||
"multiple": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "listingCategory",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_listing_deadline",
|
||||
"label": "Application deadline",
|
||||
"name": "deadline",
|
||||
"aria-label": "",
|
||||
"type": "date_picker",
|
||||
"instructions": "",
|
||||
"required": 0,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "50",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"display_format": "Y-m-d",
|
||||
"return_format": "Y-m-d",
|
||||
"first_day": 1,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "deadline",
|
||||
"graphql_non_null": 0
|
||||
},
|
||||
{
|
||||
"key": "field_listing_external_link",
|
||||
"label": "External link",
|
||||
"name": "external_link",
|
||||
"aria-label": "",
|
||||
"type": "url",
|
||||
"instructions": "",
|
||||
"required": 0,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "50",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "externalLink",
|
||||
"graphql_non_null": 0
|
||||
}
|
||||
],
|
||||
"location": [
|
||||
[
|
||||
{
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
"label": "Address",
|
||||
"name": "address",
|
||||
"aria-label": "",
|
||||
"type": "acfe_address",
|
||||
"type": "clone",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": [
|
||||
@@ -105,44 +105,18 @@
|
||||
"id": ""
|
||||
},
|
||||
"graphql_field_name": "address",
|
||||
"placeholder": "Search for address...",
|
||||
"countries": [
|
||||
"ca"
|
||||
"clone": [
|
||||
"field_address_geo_location"
|
||||
],
|
||||
"search_type": "establishment",
|
||||
"geolocation": 0,
|
||||
"custom_address": 1,
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"api_key": "",
|
||||
"fields": {
|
||||
"row-0": {
|
||||
"field": "address",
|
||||
"name": "full"
|
||||
},
|
||||
"row-1": {
|
||||
"field": "city",
|
||||
"name": "city"
|
||||
},
|
||||
"row-2": {
|
||||
"field": "post_code",
|
||||
"name": "postal_code"
|
||||
},
|
||||
"6855af79da244": {
|
||||
"field": "place_id",
|
||||
"name": "place_id"
|
||||
},
|
||||
"6855b005da245": {
|
||||
"field": "lat",
|
||||
"name": "lat"
|
||||
},
|
||||
"6855b009da246": {
|
||||
"field": "lng",
|
||||
"name": "lng"
|
||||
}
|
||||
},
|
||||
"allow_in_bindings": 0,
|
||||
"default_value": ""
|
||||
"display": "seamless",
|
||||
"layout": "block",
|
||||
"prefix_label": 0,
|
||||
"prefix_name": 0,
|
||||
"acfe_seamless_style": 0,
|
||||
"acfe_clone_modal": 0,
|
||||
"acfe_clone_modal_close": 0,
|
||||
"acfe_clone_modal_button": "",
|
||||
"acfe_clone_modal_size": "large"
|
||||
},
|
||||
{
|
||||
"key": "field_6855b0c3c5a81",
|
||||
@@ -352,5 +326,5 @@
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1757960447
|
||||
"modified": 1758811729
|
||||
}
|
||||
@@ -7,171 +7,28 @@
|
||||
"label": "Contact",
|
||||
"name": "contact",
|
||||
"aria-label": "",
|
||||
"type": "group",
|
||||
"type": "clone",
|
||||
"instructions": "",
|
||||
"required": 0,
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"layout": "block",
|
||||
"acfe_seamless_style": 0,
|
||||
"acfe_group_modal": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "contact",
|
||||
"graphql_non_null": 0,
|
||||
"acfe_group_modal_close": 0,
|
||||
"acfe_group_modal_button": "",
|
||||
"acfe_group_modal_size": "large",
|
||||
"sub_fields": [
|
||||
{
|
||||
"key": "field_68c85464c2418",
|
||||
"label": "Person name",
|
||||
"name": "person_name",
|
||||
"aria-label": "",
|
||||
"type": "text",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"required_message": "",
|
||||
"maxlength": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "personName",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_68c85464c2419",
|
||||
"label": "Email",
|
||||
"name": "email",
|
||||
"aria-label": "",
|
||||
"type": "email",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "email",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_68c85464c241a",
|
||||
"label": "Phone",
|
||||
"name": "phone",
|
||||
"aria-label": "",
|
||||
"type": "acfe_phone_number",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"countries": [
|
||||
"ca"
|
||||
],
|
||||
"preferred_countries": "",
|
||||
"default_country": "ca",
|
||||
"geolocation": 0,
|
||||
"native": 0,
|
||||
"national": 1,
|
||||
"dropdown": 0,
|
||||
"dial_code": 0,
|
||||
"default_value": "",
|
||||
"placeholder": "",
|
||||
"return_format": "number",
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "phone",
|
||||
"graphql_non_null": 1,
|
||||
"geolocation_token": ""
|
||||
},
|
||||
{
|
||||
"key": "field_68c85464c241b",
|
||||
"label": "Address",
|
||||
"name": "address",
|
||||
"aria-label": "",
|
||||
"type": "acfe_address",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"placeholder": "Rechercher une adresse...",
|
||||
"countries": [
|
||||
"ca"
|
||||
],
|
||||
"search_type": "address",
|
||||
"geolocation": 1,
|
||||
"custom_address": 1,
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"api_key": "",
|
||||
"fields": {
|
||||
"row-row-row-row-row-0": {
|
||||
"field": "street_number",
|
||||
"name": "street_number"
|
||||
},
|
||||
"row-row-row-row-686d21068e1b9": {
|
||||
"field": "street_name",
|
||||
"name": "street_name"
|
||||
},
|
||||
"row-row-row-row-686d210f8e1ba": {
|
||||
"field": "city",
|
||||
"name": "city"
|
||||
},
|
||||
"row-row-row-row-row-1": {
|
||||
"field": "state",
|
||||
"name": "state"
|
||||
},
|
||||
"row-row-row-row-row-2": {
|
||||
"field": "country_short",
|
||||
"name": "country_code"
|
||||
},
|
||||
"row-row-row-row-686d21198e1bb": {
|
||||
"field": "post_code",
|
||||
"name": "postal_code"
|
||||
}
|
||||
},
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "address",
|
||||
"graphql_non_null": 1,
|
||||
"default_value": ""
|
||||
}
|
||||
]
|
||||
"clone": [
|
||||
"group_abstract_contact"
|
||||
],
|
||||
"display": "seamless",
|
||||
"layout": "block",
|
||||
"prefix_label": 0,
|
||||
"prefix_name": 0,
|
||||
"acfe_seamless_style": 0,
|
||||
"acfe_clone_modal": 0,
|
||||
"acfe_clone_modal_close": 0,
|
||||
"acfe_clone_modal_button": "",
|
||||
"acfe_clone_modal_size": "large"
|
||||
},
|
||||
{
|
||||
"key": "field_68c854de2bef8",
|
||||
@@ -351,7 +208,7 @@
|
||||
"label": "Billing",
|
||||
"name": "billing",
|
||||
"aria-label": "",
|
||||
"type": "group",
|
||||
"type": "clone",
|
||||
"instructions": "",
|
||||
"required": 0,
|
||||
"conditional_logic": [
|
||||
@@ -368,160 +225,19 @@
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"layout": "block",
|
||||
"acfe_seamless_style": 0,
|
||||
"acfe_group_modal": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "billing",
|
||||
"graphql_non_null": 0,
|
||||
"acfe_group_modal_close": 0,
|
||||
"acfe_group_modal_button": "",
|
||||
"acfe_group_modal_size": "large",
|
||||
"sub_fields": [
|
||||
{
|
||||
"key": "field_686d20578e1b5",
|
||||
"label": "Person name",
|
||||
"name": "person_name",
|
||||
"aria-label": "",
|
||||
"type": "text",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"required_message": "",
|
||||
"maxlength": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "personName",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_686d208c8e1b6",
|
||||
"label": "Email",
|
||||
"name": "email",
|
||||
"aria-label": "",
|
||||
"type": "email",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "email",
|
||||
"graphql_non_null": 1
|
||||
},
|
||||
{
|
||||
"key": "field_686d20a08e1b7",
|
||||
"label": "Phone",
|
||||
"name": "phone",
|
||||
"aria-label": "",
|
||||
"type": "acfe_phone_number",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"countries": [
|
||||
"ca"
|
||||
],
|
||||
"preferred_countries": "",
|
||||
"default_country": "ca",
|
||||
"geolocation": 0,
|
||||
"native": 0,
|
||||
"national": 1,
|
||||
"dropdown": 0,
|
||||
"dial_code": 0,
|
||||
"default_value": "",
|
||||
"placeholder": "",
|
||||
"return_format": "number",
|
||||
"allow_in_bindings": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "phone",
|
||||
"graphql_non_null": 1,
|
||||
"geolocation_token": ""
|
||||
},
|
||||
{
|
||||
"key": "field_686d20d48e1b8",
|
||||
"label": "Address",
|
||||
"name": "address",
|
||||
"aria-label": "",
|
||||
"type": "acfe_address",
|
||||
"instructions": "",
|
||||
"required": 1,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"placeholder": "Rechercher une adresse...",
|
||||
"countries": [
|
||||
"ca"
|
||||
],
|
||||
"search_type": "address",
|
||||
"geolocation": 1,
|
||||
"custom_address": 1,
|
||||
"prepend": "",
|
||||
"append": "",
|
||||
"api_key": "",
|
||||
"fields": {
|
||||
"row-row-row-row-0": {
|
||||
"field": "street_number",
|
||||
"name": "street_number"
|
||||
},
|
||||
"row-row-row-686d21068e1b9": {
|
||||
"field": "street_name",
|
||||
"name": "street_name"
|
||||
},
|
||||
"row-row-row-686d210f8e1ba": {
|
||||
"field": "city",
|
||||
"name": "city"
|
||||
},
|
||||
"row-row-row-row-1": {
|
||||
"field": "state",
|
||||
"name": "state"
|
||||
},
|
||||
"row-row-row-row-2": {
|
||||
"field": "country_short",
|
||||
"name": "country_code"
|
||||
},
|
||||
"row-row-row-686d21198e1bb": {
|
||||
"field": "post_code",
|
||||
"name": "postal_code"
|
||||
}
|
||||
},
|
||||
"required_message": "",
|
||||
"allow_in_bindings": 0,
|
||||
"show_in_graphql": 1,
|
||||
"graphql_description": "",
|
||||
"graphql_field_name": "address",
|
||||
"graphql_non_null": 1,
|
||||
"default_value": ""
|
||||
}
|
||||
]
|
||||
"clone": [
|
||||
"group_abstract_contact"
|
||||
],
|
||||
"display": "group",
|
||||
"layout": "block",
|
||||
"prefix_label": 0,
|
||||
"prefix_name": 0,
|
||||
"acfe_seamless_style": 0,
|
||||
"acfe_clone_modal": 0,
|
||||
"acfe_clone_modal_close": 0,
|
||||
"acfe_clone_modal_button": "",
|
||||
"acfe_clone_modal_size": "large"
|
||||
},
|
||||
{
|
||||
"key": "field_6855b1f1c65bf",
|
||||
@@ -731,5 +447,5 @@
|
||||
"graphql_types": "",
|
||||
"acfe_meta": "",
|
||||
"acfe_note": "",
|
||||
"modified": 1757960388
|
||||
"modified": 1758811882
|
||||
}
|
||||
@@ -8,9 +8,9 @@ function ccat_graphql_address_register() {
|
||||
array(
|
||||
'description' => 'ACF Extended Pro Address field with optional sub-fields',
|
||||
'fields' => array(
|
||||
'address' => array(
|
||||
'formatted' => array(
|
||||
'type' => 'String',
|
||||
'description' => 'The full address',
|
||||
'description' => 'The full address (formatted)',
|
||||
),
|
||||
'name' => array(
|
||||
'type' => 'String',
|
||||
@@ -32,7 +32,7 @@ function ccat_graphql_address_register() {
|
||||
'type' => 'String',
|
||||
'description' => 'Full state or province name',
|
||||
),
|
||||
'stateShort' => array(
|
||||
'stateCode' => array(
|
||||
'type' => 'String',
|
||||
'description' => 'State or province abbreviation',
|
||||
),
|
||||
@@ -40,7 +40,7 @@ function ccat_graphql_address_register() {
|
||||
'type' => 'String',
|
||||
'description' => 'Full country name',
|
||||
),
|
||||
'countryShort' => array(
|
||||
'countryCode' => array(
|
||||
'type' => 'String',
|
||||
'description' => 'Country abbreviation (ISO code)',
|
||||
),
|
||||
@@ -103,14 +103,14 @@ function ccat_graphql_address_register_field_type() {
|
||||
case 'state':
|
||||
$address_data['state'] = $field_value;
|
||||
break;
|
||||
case 'state_short':
|
||||
$address_data['stateShort'] = $field_value;
|
||||
case 'state_code':
|
||||
$address_data['stateCode'] = $field_value;
|
||||
break;
|
||||
case 'country':
|
||||
$address_data['country'] = $field_value;
|
||||
break;
|
||||
case 'country_short':
|
||||
$address_data['countryShort'] = $field_value;
|
||||
case 'country_code':
|
||||
$address_data['countryCode'] = $field_value;
|
||||
break;
|
||||
case 'post_code':
|
||||
$address_data['postalCode'] = $field_value;
|
||||
|
||||
Reference in New Issue
Block a user