All questions about EDocman extension

SOLVED Upload form - don't show file descriptions

  • laura rastoldo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago - 7 years 2 months ago #93834 by laura rastoldo
Hi,

I would like to hide the field (shord description" and "description" from the upload form. So, the user will see just "insert title", choose file and upload.

Thanks.!
Last edit: 7 years 2 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #93903 by Mr. Dam
Hi,
To remove Description fields in Document upload form at front-end, please follow these steps:
1. Open file: root > components > com_edocman > view > document > tmpl > simple.php
2. Find below code and remove it
Code:
<tr> <td colspan="2"> <?php echo $this->form->getLabel('short_description'); ?> <div class="clr"></div> <?php echo $this->form->getInput('short_description'); ?> <div class="clr"></div> <?php echo $this->form->getLabel('description'); ?> <div class="clr"></div> <?php echo $this->form->getInput('description'); ?> </td> </tr>

Good luck
Dam

Please Log in or Create an account to join the conversation.

  • laura rastoldo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #93912 by laura rastoldo
Replied by laura rastoldo on topic Upload form - don't show file descriptions form
Fantastic!! Works.

BUT, removing only that part the result was that the upload button didn't work. So, I have removed even this part:

<?php echo $this->form->getField('description')->save(); ?>

<?php echo $this->form->getField('short_description')->save(); ?>

at the beginning of file and button works fine. I have checked even the uploaded file and should be good. Please advise me if this is wrong.

THANKS!!!!

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam