Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
All questions about EDocman extension

Hide Short Description and Description in Simple Upload Form

  • Claire Haas
  • Topic Author
  • Away
  • Senior Member
  • Senior Member
More
20 hours 17 minutes ago #178917 by Claire Haas
Hi,
Please can you tell me how to hide the Short Description and Description in Simple Upload Form?
Kind regards
Claire :-)

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

More
11 hours 17 minutes ago - 11 hours 13 minutes ago #178925 by Dang Thuc Dam
Hi,
If you want to remove the Short Description and Description fields from the Add Document Simple layout, please do not modify the original file directly, because your changes may be overwritten when you update EDocman.

The original layout file is located at: components/com_edocman/view/document/tmpl/simple.php
Instead, you should create a template override.
Step 1: Create the override file
Please copy this file: components/com_edocman/view/document/tmpl/simple.php
to your template override folder: templates/YOUR_TEMPLATE/html/com_edocman/document/simple.php
Please replace YOUR_TEMPLATE with the actual name of your Joomla template.
For example: templates/cassiopeia/html/com_edocman/document/simple.php

If the folders below do not exist yet, please create them manually: templates/YOUR_TEMPLATE/html/com_edocman/document/

Step 2: Edit the override file
Open this file: templates/YOUR_TEMPLATE/html/com_edocman/document/simple.php

Then find and remove the following code:

<div class="<?php echo $controlGroupClass;?>" style="z-index:0;">
    <label class="<?php echo $controlLabelClass;?>">
    <?php echo $this->form->getLabel('short_description'); ?>
    </label>
    <div class="<?php echo $controlsClass;?>">
    <?php echo $this->form->getInput('short_description'); ?>
    </div>
</div>
<div class="<?php echo $controlGroupClass;?>" style="z-index:0;">
    <label class="<?php echo $controlLabelClass;?>">
    <?php echo $this->form->getLabel('description'); ?>
    </label>
    <div class="<?php echo $controlsClass;?>">
    <?php echo $this->form->getInput('description'); ?>
    </div>
</div>


Step 3: Save and test
After saving the override file, please go to the frontend Add Document Simple page and check again.
The Short Description and Description fields should no longer be displayed.
Important note Please use the template override file instead of editing the original component file directly: components/com_edocman/view/document/tmpl/simple.php
This is important because changes made directly in the component folder can be lost after updating EDocman.

Regards,
Dam
 
Last edit: 11 hours 13 minutes ago by Dang Thuc Dam.
The following user(s) said Thank You: Claire Haas

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

Moderators: Dang Thuc Dam