remove fields

Phoca Download - download manager
avansant
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 15 Apr 2019, 15:10

remove fields

Post by avansant »

How do I remove fields from the upload page that I don't want like License and Version? I apologize if this was posted before but I couldn't find a way to search the forum except the google thing up top which searches too broadly.

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: remove fields

Post by christine »

Hi,

Make a backup of this file:
components\com_phocadownload\site\views\user\tmpl\default_files.php

Open the one on your server and remove everything
FROM line 318 (beginning with <tr>)
TO line 326 (ending with </tr>) and save the file.

Code: Select all

<tr>
	<td><strong><?php echo JText::_( 'COM_PHOCADOWNLOAD_LICENSE' ); ?>:</strong></td>
	<td><input type="text" id="phocadownload-upload-license" name="phocadownloaduploadlicense" value="<?php echo $this->t['formdata']->license ?>"  maxlength="255" class="comment-input" /></td>
		</tr>
	<tr>
	<td><strong><?php echo JText::_( 'COM_PHOCADOWNLOAD_VERSION' ); ?>:</strong></td>
	<td><input type="text" id="phocadownload-upload-version" name="phocadownloaduploadversion" value="<?php echo $this->t['formdata']->version ?>"  maxlength="255" class="comment-input" /></td>
	</tr>
(If you want this modification will be not overwritten when updating, copy this file to your template:
templates/your_template/html/layouts/com_phocadownload/user/ folder)

Kind regards
Christine
avansant
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 15 Apr 2019, 15:10

Re: remove fields

Post by avansant »

Thank you!
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: remove fields

Post by christine »

Hi,
You're welcome!
Kind regards
Christine
Post Reply