- Posts: 14
- Thank you received: 0
All questions about EDocman extension
SOLVED !!! add view button to table layout
- Ran Elkobi
- Topic Author
- Offline
- New Member
-
Less
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
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13023
- Thank you received: 1688
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
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
-
Less
More
- Posts: 14
- Thank you received: 0
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
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
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.