Page 1 of 1
Uploaded by ...
Posted: 01 Dec 2015, 19:45
by pespe
How can I make mandatory the field "Uploaded by"
Sorry for my bad english, thanks
Luca
Re: Uploaded by ...
Posted: 02 Dec 2015, 16:48
by Jan
Hi, what you mean with "mandatory". Where? In which place?
Jan
Re: Uploaded by ...
Posted: 03 Dec 2015, 12:17
by pespe
Sorry, i think they say "required".
In upload file page.

thanks
Re: Uploaded by ...
Posted: 12 Dec 2015, 02:20
by Jan
Hi, if you mean in the administration, this needs to be customized int he code:
- in xml:
administrator\components\com_phocadownload\models\forms\phocadownloadfile.xml
to set required attribute
<field name="userid" type="user" section="com_phocadownload" default="" label="COM_PHOCADOWNLOAD_UPLOADED_BY_LABEL" description="COM_PHOCADOWNLOAD_UPLOADED_BY_DESC"/>
but the view - edit needs to be edited too, the javascript must be added, which then checks for the filling the field
administrator\components\com_phocadownload\views\phocadownloadfile\tmpl\edit.php
Jan