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

SOLVED !!! add view button to table layout

  • Ran Elkobi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 weeks ago - 10 years 1 week ago #86876 by Ran Elkobi
SOLVED !!! add view button to table layout was created by Ran Elkobi
Hi,

I use table layout for the documents view, but I wish to have "view" button instead of "download" button.

Using this code from the default layout give me an PHP error
Code:
<?php $viewUrl = JRoute::_('index.php?option=com_edocman&task=document.viewdoc&id='.$item->id.'&Itemid='.$this->Itemid) ; ?> <a href="<?php echo $viewUrl; ?>" target="_blank" class="<?php echo $btnClass; ?>"> <i class="edocman-icon-eye-open"></i> <?php echo JText::_('EDOCMAN_VIEW'); ?> </a>
Last edit: 10 years 1 week ago by Mr. Dam.

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

More
10 years 2 weeks ago #87068 by Mr. Dam
Replied by Mr. Dam on topic add view button to table layout
Hi,
What's the PHP error?
Thanks
Dam

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

  • Ran Elkobi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 weeks ago #87095 by Ran Elkobi
Replied by Ran Elkobi on topic add view button to table layout
Thanks, but I have solved it earlier today.

I have some other question, why the document view is slower to load than the other view? I have removed the mootools (no one needs it any more) which improved the loading speed a lot, but it's still 0.9sec vs 0.5 for the other Edocman views (using cache). And I can't see any reason why.

Ran

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

Moderators: Mr. Dam