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

remove full description editor

  • Darren Knipe
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #110630 by Darren Knipe
remove full description editor was created by Darren Knipe
Hi

when upload a file in frontend, I want to just have text description of short description, and remove the long description text editor.

how do I do it?

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

More
8 years 6 months ago #110659 by Mr. Dam
Replied by Mr. Dam on topic remove full description editor
Hi Darren,
To remove full description when modifying document at front-end, you can follow these steps:
1/ Open file: root > components > com_edocman > view > document > tmpl > edit.php and simple.php
2/ Find:
Code:
<?php echo $this->form->getLabel('description'); ?> <div class="clr"></div> <?php echo $this->form->getInput('description'); ?>
Good luck
Dam

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

  • Darren Knipe
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #110668 by Darren Knipe
Replied by Darren Knipe on topic remove full description editor
Great thank you. I managed to work it out last night and created a template override version to do this.

Is it possible to show Published Date field in frontend edit? I want to upload a load of archive docs to a site, and they need to be time relevant, so minutes from 2005 need to have published that year.

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

More
8 years 6 months ago #110814 by Mr. Dam
Replied by Mr. Dam on topic remove full description editor
Hi Darren,
To show Published date at front-end, you can follow these steps
1. Open file:
root > components > com_edocman > view > document > tmpl > default.php
2. Find:
Code:
if(($item->created_time > 0) && ($this->config->show_creation_date == 1)){ ?> <span class="created-on-label"> <time datetime="<?php echo $item->created_time;?>" itemprop="datePublished"> <?php echo JText::_('EDOCMAN_PUBLISHED_ON');?> <?php echo JHTML::_('date',$item->created_time, 'j F Y');?> </time> </span> <?php }
and change to
Code:
if(($item->publish_up > 0) && ($this->config->show_creation_date == 1)){ ?> <span class="created-on-label"> <time datetime="<?php echo $item->publish_up;?>" itemprop="datePublished"> <?php echo JText::_('EDOCMAN_PUBLISHED_ON');?> <?php echo JHTML::_('date',$item->publish_up, 'j F Y');?> </time> </span> <?php }

Good luck
Dam

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

Moderators: Mr. Dam