All questions about EDocman extension

Customizing Upload Document Description box size

  • Kent Chadwick
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 11 months ago - 5 years 11 months ago #124999 by Kent Chadwick
We would like to make the "Short Description" and the "Description" inputboxes on the Upload Document form shorter. I found that the setting for those inputboxes are in the administrator/components/com_edocman/model/forms/document.xml file:
Code:
<field name="short_description" type="editor" label="EDOCMAN_SHORT_DESCRIPTION" description="EDOCMAN_SHORT_DESCRIPTION_DESC" class="inputbox" filter="JComponentHelper::filterText" width="100%" height="150" buttons="true" hide="readmore,pagebreak,module"/>

But when I change to height = "75", the change doesn't work when the form displays. When the form loads, the inputbox is shorter, but then the form refreshes to 150. What else do I need to change?

Thank you,

Kent
Last edit: 5 years 11 months ago by Kent Chadwick.

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

More
5 years 11 months ago #125004 by Mr. Dam
Hi Kent,
The description fields are editors, so that, we can't setup width and height sizes of those fields at frontend
Thanks
Dam

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

  • Kent Chadwick
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 11 months ago #125013 by Kent Chadwick
Replied by Kent Chadwick on topic Customizing Upload Document Description box size
Dam,

Thank you for your quick response and your explanation.

Regards,

Kent

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

More
5 years 10 months ago #125639 by Arnold S.
Replied by Arnold S. on topic Customizing Upload Document Description box size
Hi Dam

And when I do not want a document description box in the upload form? Where can I switch off this function?

Thx
Arnold

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

More
5 years 10 months ago #125640 by Mr. Dam
Hi Arnold,
Please let know the Upload form that you are using at frontend, simple or fully form?
Thanks
Dam

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

More
5 years 10 months ago #125641 by Arnold S.
Replied by Arnold S. on topic Customizing Upload Document Description box size
Hi Mr. Dam

I use the simple form

THX

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

More
5 years 10 months ago #125642 by Mr. Dam
Hi,
Please open file: root -> components -> com_edocman -> view -> document -> tmpl -> simple.php
Find:
Code:
<?php echo $this->form->getField('description')->save(); ?>
Code:
<?php echo $this->form->getField('short_description')->save(); ?>
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>

And remove them

Thanks
Dam
The following user(s) said Thank You: Arnold S.

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

More
5 years 10 months ago #125643 by Arnold S.
Replied by Arnold S. on topic Customizing Upload Document Description box size
Hi Mr. Dam

Thanks a lot .... it works :-)

CU

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

Moderators: Mr. Dam