- 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
9 years 1 month ago - 9 years 1 month 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: 9 years 1 month ago by Dang Thuc Dam.
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Away
- Administrator
-
Less
More
- Posts: 13322
- Thank you received: 1740
9 years 1 month ago #87068
by Dang Thuc Dam
Replied by Dang Thuc 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
9 years 1 month 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: Dang Thuc 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.