How can I make mandatory the field "Uploaded by"
Sorry for my bad english, thanks
Luca
Uploaded by ...
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Uploaded by ...
Hi, what you mean with "mandatory". Where? In which place?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 01 Dec 2015, 19:38
Re: Uploaded by ...
Sorry, i think they say "required".
In upload file page.

thanks
In upload file page.

thanks
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Uploaded by ...
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
- 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
If you find Phoca extensions useful, please support the project