From c97b0dac8c2b2b7af64c748f8642a09e6e9e41fb Mon Sep 17 00:00:00 2001 From: IhorMasechko Date: Tue, 1 Jul 2025 10:46:00 +0300 Subject: [PATCH 1/2] auto-wrap feedback with quotes and update help text --- .../testimonials-carousel-widget/views/widget.html | 2 +- website/modules/testimonials/index.js | 13 ++----------- website/views/fragments/utilities.html | 2 +- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/website/modules/testimonials-carousel-widget/views/widget.html b/website/modules/testimonials-carousel-widget/views/widget.html index 0faece0b..876a1965 100644 --- a/website/modules/testimonials-carousel-widget/views/widget.html +++ b/website/modules/testimonials-carousel-widget/views/widget.html @@ -46,7 +46,7 @@
-
{% area card, 'feedback' %}
+
“{{ card.feedback }}”
{% if card._caseStudy %}
diff --git a/website/modules/testimonials/index.js b/website/modules/testimonials/index.js index 1944efe0..fbf1fdf1 100644 --- a/website/modules/testimonials/index.js +++ b/website/modules/testimonials/index.js @@ -1,5 +1,3 @@ -const headingToolbar = require('../../lib/headingToolbar'); - module.exports = { extend: '@apostrophecms/piece-type', options: { @@ -74,15 +72,8 @@ module.exports = { }, feedback: { label: 'Feedback', - type: 'area', - options: { - max: 1, - widgets: { - '@apostrophecms/rich-text': { - ...headingToolbar, - }, - }, - }, + type: 'string', + help: 'Insert the text **without** quotation marks. They will be added automatically.', }, }, group: { diff --git a/website/views/fragments/utilities.html b/website/views/fragments/utilities.html index 39ea9ae5..0609a699 100644 --- a/website/views/fragments/utilities.html +++ b/website/views/fragments/utilities.html @@ -72,7 +72,7 @@

{{ card.title }}


{% if card._caseStudy and card._caseStudy[0] %} From 02d396940d254992d67d3f33cd8fb4584e179de4 Mon Sep 17 00:00:00 2001 From: IhorMasechko Date: Tue, 1 Jul 2025 16:11:19 +0300 Subject: [PATCH 2/2] Deleted ** from help --- website/modules/testimonials/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/modules/testimonials/index.js b/website/modules/testimonials/index.js index fbf1fdf1..c6c56e09 100644 --- a/website/modules/testimonials/index.js +++ b/website/modules/testimonials/index.js @@ -73,7 +73,7 @@ module.exports = { feedback: { label: 'Feedback', type: 'string', - help: 'Insert the text **without** quotation marks. They will be added automatically.', + help: 'Insert the text without quotation marks. They will be added automatically.', }, }, group: {