From 44c765465d4ca14bcb31c4f80e22c0ac2da5e9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Mon, 4 Dec 2023 13:13:59 +0200 Subject: [PATCH] TMS-980: Add redipress_include_search to components --- CHANGELOG.MD | 2 ++ lib/ACF/Fields/CallToActionFields.php | 2 ++ lib/ACF/Fields/ContentColumnsFields.php | 2 ++ lib/ACF/Fields/GridFields.php | 2 ++ lib/ACF/Fields/TextBlockFields.php | 2 ++ 5 files changed, 10 insertions(+) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 0a32fed9..6c5c22a6 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-980: Add redipress_include_search to include component contents in search results + ## [1.54.3] - 2023-12-04 - TMS-939: diff --git a/lib/ACF/Fields/CallToActionFields.php b/lib/ACF/Fields/CallToActionFields.php index 07bf3478..a6b9adbf 100644 --- a/lib/ACF/Fields/CallToActionFields.php +++ b/lib/ACF/Fields/CallToActionFields.php @@ -102,6 +102,7 @@ protected function sub_fields() : array { ->set_key( "{$key}_title" ) ->set_name( 'title' ) ->set_wrapper_width( 50 ) + ->redipress_include_search() ->set_instructions( $strings['title']['instructions'] ); $description_field = ( new Field\Textarea( $strings['description']['label'] ) ) @@ -110,6 +111,7 @@ protected function sub_fields() : array { ->set_rows( 4 ) ->set_new_lines( 'wpautop' ) ->set_wrapper_width( 50 ) + ->redipress_include_search() ->set_instructions( $strings['description']['instructions'] ); $link_field = ( new Field\Link( $strings['link']['label'] ) ) diff --git a/lib/ACF/Fields/ContentColumnsFields.php b/lib/ACF/Fields/ContentColumnsFields.php index 0c3d7b5f..b3ca17a8 100644 --- a/lib/ACF/Fields/ContentColumnsFields.php +++ b/lib/ACF/Fields/ContentColumnsFields.php @@ -96,6 +96,7 @@ protected function sub_fields() : array { ->set_key( "{$key}_title" ) ->set_name( 'title' ) ->set_wrapper_width( 100 ) + ->redipress_include_search() ->set_instructions( $strings['title']['instructions'] ); $image_field = ( new Field\Image( $strings['image']['label'] ) ) @@ -110,6 +111,7 @@ protected function sub_fields() : array { ->set_rows( 4 ) ->set_new_lines( 'wpautop' ) ->set_wrapper_width( 55 ) + ->redipress_include_search() ->set_instructions( $strings['description']['instructions'] ); $layout_field = ( new Field\Radio( $strings['layout']['label'] ) ) diff --git a/lib/ACF/Fields/GridFields.php b/lib/ACF/Fields/GridFields.php index 51e3c8e3..e80d0caf 100644 --- a/lib/ACF/Fields/GridFields.php +++ b/lib/ACF/Fields/GridFields.php @@ -186,6 +186,7 @@ protected function grid_item_type_custom_fields() : Field\Group { ->set_key( $this->get_key() . '_title' ) ->set_name( 'title' ) ->set_wrapper_width( 50 ) + ->redipress_include_search() ->set_instructions( $this->strings['title']['instructions'] ); $link_field = ( new Field\Link( $this->strings['link']['label'] ) ) @@ -199,6 +200,7 @@ protected function grid_item_type_custom_fields() : Field\Group { ->set_name( 'description' ) ->set_maxlength( 200 ) ->set_wrapper_width( 50 ) + ->redipress_include_search() ->set_instructions( $this->strings['description']['instructions'] ); $image_field = ( new Field\Image( $this->strings['image']['label'] ) ) diff --git a/lib/ACF/Fields/TextBlockFields.php b/lib/ACF/Fields/TextBlockFields.php index e2449421..5f2dd9f8 100644 --- a/lib/ACF/Fields/TextBlockFields.php +++ b/lib/ACF/Fields/TextBlockFields.php @@ -71,6 +71,7 @@ protected function sub_fields() : array { ->set_key( "${key}_title" ) ->set_name( 'title' ) ->set_wrapper_width( 50 ) + ->redipress_include_search() ->set_instructions( $strings['title']['instructions'] ); $link_field = ( new Field\Link( $strings['link']['label'] ) ) @@ -84,6 +85,7 @@ protected function sub_fields() : array { ->set_name( 'text' ) ->set_required() ->set_height( 300 ) + ->redipress_include_search() ->set_instructions( $strings['text']['instructions'] ); $background_color_field = ( new Field\Radio( $strings['background_color']['label'] ) )