Update ChoiceImageFormBlock and add feature to ValueTypeClass.php

This commit is contained in:
Benjamin DALSASS
2026-01-22 14:30:34 +01:00
parent 2d4c5b8b2a
commit 890d1ece8d
6 changed files with 40 additions and 12 deletions

View File

@@ -29,10 +29,12 @@ class ChoiceImageFormBlock extends ChoiceFormBlock
[
'name' => 'image_renderer',
'options' => [
'images_resource_path' => utils::GetAbsoluteUrlAppRoot().'/env-production/',
],
],
]);
$oOptionsRegister->SetOption('choice_attr');
$oOptionsRegister->SetOption('placeholder', 'UI:InputFile:SelectImage');
}
}