From 1c87535be192e666131f7728cc1629cf1152a506 Mon Sep 17 00:00:00 2001 From: veryspry Date: Thu, 19 Dec 2024 16:16:07 +0100 Subject: [PATCH 1/2] `gcn-radio-button-to-date-property-mapping.php`: Added snippet to map radio fields to Notion Date properties. --- ...-radio-button-to-date-property-mapping.php | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 gc-notion/gcn-radio-button-to-date-property-mapping.php diff --git a/gc-notion/gcn-radio-button-to-date-property-mapping.php b/gc-notion/gcn-radio-button-to-date-property-mapping.php new file mode 100644 index 000000000..cfcf6c969 --- /dev/null +++ b/gc-notion/gcn-radio-button-to-date-property-mapping.php @@ -0,0 +1,51 @@ +format( 'Y-m-d' ) : ''; + + $page_data['properties'][ $property_id ] = array( + 'date' => array( + 'start' => $iso_date, + ), + ); + } + + return $page_data; +}, 10, 4 ); From 322ceae1fab63fa0fc2906ed5b294146415f1849 Mon Sep 17 00:00:00 2001 From: veryspry Date: Thu, 2 Jan 2025 13:01:53 +0100 Subject: [PATCH 2/2] `gcn-radio-button-to-date-property-mapping.php`: Added setup video link. --- gc-notion/gcn-radio-button-to-date-property-mapping.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gc-notion/gcn-radio-button-to-date-property-mapping.php b/gc-notion/gcn-radio-button-to-date-property-mapping.php index cfcf6c969..92720464d 100644 --- a/gc-notion/gcn-radio-button-to-date-property-mapping.php +++ b/gc-notion/gcn-radio-button-to-date-property-mapping.php @@ -4,6 +4,8 @@ * * This snippet demonstrates how to map a radio button field to a Date property in Notion. * + * Instruction Video: https://www.loom.com/share/0680e7ad671f41e1a2801c62d84c034b + * * Instructions: * 1. Modify the filter name to scope as needed. * * see filter reference for full list of variants: https://gravitywiz.com/documentation/gcn_notion_page_data/)