All questions about EDocman extension

SOLVED !!! add view button to table layout

  • Ran Elkobi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago - 8 years 7 months 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: 8 years 7 months ago by Mr. Dam.

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

More
8 years 7 months 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
8 years 7 months 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