Page 1 of 1
remove fields
Posted: 15 Apr 2019, 15:13
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.
Re: remove fields
Posted: 15 Apr 2019, 21:38
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
Re: remove fields
Posted: 15 Apr 2019, 23:52
by avansant
Thank you!
Re: remove fields
Posted: 16 Apr 2019, 16:26
by christine
Hi,
You're welcome!
Kind regards
Christine