From bbc3370437051a5c0241e71cbf7d127c198ac42a Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Mon, 23 Nov 2020 13:19:46 +0000 Subject: [PATCH] Allow only 1 image for each slide in services section. Done #4063 @0:05 --- framework/application/forms/CMS/Sub/Home/Services/Example.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/application/forms/CMS/Sub/Home/Services/Example.php b/framework/application/forms/CMS/Sub/Home/Services/Example.php index 8dff399..2eb311f 100644 --- a/framework/application/forms/CMS/Sub/Home/Services/Example.php +++ b/framework/application/forms/CMS/Sub/Home/Services/Example.php @@ -15,10 +15,11 @@ class Fluidbook_Form_CMS_Sub_Home_Services_Example extends CubeIT_Form_SubForm { $image = new CubeIT_Form_Element_File_Image('image'); $image->setLabel('Image'); + $image->setMaxItems(1); $this->addElement($image); $link = new CubeIT_Form_Element_Link('link'); $link->setLabel('Link'); $this->addSubForm($link, 'link'); } -} \ No newline at end of file +} -- 2.39.5