Aggiunta campi per Allegato e titolo

This commit is contained in:
2025-09-10 17:51:59 +02:00
parent a4475ee6a5
commit a05b127a0e
5 changed files with 59 additions and 4 deletions

View File

@ -20,6 +20,14 @@
filter="safehtml" buttons="true" />
<field name="attachment" type="media" label="COM_CIRCOLARI_FORM_LBL_CIRCOLARE_ATTACHMENT"
directory="documents/circolari" preview="false" upload="true" />
<field
name="allegato_titolo"
type="text"
label="Titolo allegato"
description="Nome leggibile mostrato accanto al file allegato"
filter="string"
/>
<field name="image" type="media" label="COM_CIRCOLARI_FORM_LBL_CIRCOLARE_IMAGE"
directory="images" preview="true" upload="true" />

View File

@ -0,0 +1,3 @@
ALTER TABLE `#__circolari`
ADD COLUMN `allegato_titolo` VARCHAR(190) DEFAULT NULL
AFTER `attachment`;

View File

@ -39,6 +39,7 @@ HTMLHelper::_('bootstrap.tooltip');
<?php echo $this->form->renderField('categoria_id'); ?>
<?php echo $this->form->renderField('description'); ?>
<?php echo $this->form->renderField('attachment'); ?>
<?php echo $this->form->renderField('allegato_titolo'); ?>
<?php echo $this->form->renderField('image'); ?>
<?php echo $this->form->renderField('firma_obbligatoria'); ?>
<?php echo $this->form->renderField('usergroup_ids'); ?>