Uploaded by ...

Phoca Download - download manager
pespe
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 01 Dec 2015, 19:38

Uploaded by ...

Post by pespe »

How can I make mandatory the field "Uploaded by"
Sorry for my bad english, thanks
Luca
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uploaded by ...

Post by Jan »

Hi, what you mean with "mandatory". Where? In which place?

Jan
If you find Phoca extensions useful, please support the project
pespe
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 01 Dec 2015, 19:38

Re: Uploaded by ...

Post by pespe »

Sorry, i think they say "required".
In upload file page.
Image
thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uploaded by ...

Post 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 :idea:

administrator\components\com_phocadownload\views\phocadownloadfile\tmpl\edit.php

Jan
If you find Phoca extensions useful, please support the project
Post Reply