- Posts: 1
- Thank you received: 0
All questions about EDocman extension
EDocman Modifications and futures requests
- Marcelo
- Topic Author
- Offline
- New Member
-
Less
More
8 years 7 months ago #86067
by Marcelo
EDocman Modifications and futures requests was created by Marcelo
Hi,
I have done some modifications in EDocman to fill it to my purposes. My site is here . And EDocman is here and here .
My template have a menu on the left side.
First, when I click on the Latest Documents on the front page , the Left Menu do not expand . When you click a file shown in the latest plugin, the system can not identify where the file belongs, in the case which category, which prevents the template to tailor the lateral menu navigation.
Second, in EDocman documentation says you can edit the layout files, without affecting its operation when updating. However, if we put the folder "view", located in "components/com_edocman", within the template in use, changes made in this folder "template/website_template/view" do not show any effect.
Third, the module "Edocman Documents", set to the type "Latest Documents", by default it only identifies the file name. To make it more useful, I added the date of the file and its category (please, see screenshot01). The modified file was "modules/mod_edocman_documents/tmpl/lastest.php". Next the changes.
And finally, I think it's pretty important, is the lack of an icon to move up to the parent category. If you opened a category, such as recent announcements, you can not get back to the category that contains it.
Please, all comments and suggestions to improve my site is very welcome!
I have done some modifications in EDocman to fill it to my purposes. My site is here . And EDocman is here and here .
My template have a menu on the left side.
First, when I click on the Latest Documents on the front page , the Left Menu do not expand . When you click a file shown in the latest plugin, the system can not identify where the file belongs, in the case which category, which prevents the template to tailor the lateral menu navigation.
Second, in EDocman documentation says you can edit the layout files, without affecting its operation when updating. However, if we put the folder "view", located in "components/com_edocman", within the template in use, changes made in this folder "template/website_template/view" do not show any effect.
Third, the module "Edocman Documents", set to the type "Latest Documents", by default it only identifies the file name. To make it more useful, I added the date of the file and its category (please, see screenshot01). The modified file was "modules/mod_edocman_documents/tmpl/lastest.php". Next the changes.
Code:
<?php
/**
* @package Edocman
* @subpackage Module Edocman Documents
*
* @copyright Copyright (C) 2010 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<div class="edocmandocuments<?php echo $moduleclass_sfx; ?>">
<?php
if (count($rows)) {
jimport('joomla.filesystem.file') ;
?>
<?php
$tabs = array('sectiontableentry1' , 'sectiontableentry2');
$k = 0 ;
foreach ($rows as $row) {
$tab = $tabs[$k] ;
$k = 1 - $k ;
if ($row->filename) {
$ext = JFile::getExt($row->filename) ;
} else {
$ext = '' ;
}
if ($linkType && $row->canDownload) {
if ($linkType == 2 && $row->canView)
$url = JRoute::_('index.php?option=com_edocman&task=document.viewdoc&id='.$row->id.'&Itemid='.$itemId) ;
else
$url = JRoute::_('index.php?option=com_edocman&task=document.download&id='.$row->id.'&Itemid='.$itemId) ;
} else {
$url = JRoute::_('index.php?option=com_edocman&view=document&id='.$row->id.'&Itemid='.$itemId);
}
?>
<div class="edocman_latest_documents">
<div class="document_title">
<a href="<?php echo $url; ?>" class="edocman_document_link">
<?php
if ($ext) {
if (JFile::exists(JPATH_ROOT.'/components/com_edocman/assets/images/icons/32x32/'.$ext.'.png')) {
$imgSrc = JURI::base().'components/com_edocman/assets/images/icons/32x32/'.$ext.'.png' ;
} else {
$imgSrc = JURI::base().'components/com_edocman/assets/images/icons/32x32/zip.png';
}
?>
<img src="<?php echo $imgSrc ; ?>" border="0" width="24" height="24" align="middle" />
<?php
}
?>
<?php echo $row->title ; ?>
</a>
</div>
<?php
$db =& JFactory::getDBO();
$sql = "select category_id from #__edocman_document_category where document_id=".$row->id."";
$db->setQuery($sql);
$cat_id = $db->loadResult();
$sql2 = "select title from #__edocman_categories where id=".$cat_id."";
$db->setQuery($sql2);
$cat_title = $db->loadResult();
$sql3 = "select parent_id from #__edocman_categories where id=".$cat_id."";
$db->setQuery($sql3);
$parent_id = $db->loadResult();
if($parent_id != 0)
{
$sql4 = "select title from #__edocman_categories where id=".$parent_id."";
$db->setQuery($sql4);
$parent_cat_title = $db->loadResult();
}else{
$parent_cat_title = "";
}
?>
<div class="document_category"><?php echo $parent_cat_title ." - " .$cat_title ?></div>
<div class="document_created_time"><small><?php echo JHtml::_('date', $row->created_time, "d-m-Y"); ?></small></div>
</div>
<?php
}
?>
<?php
} else {
?>
<div class="eb_empty"><?php echo JText::_('EDOCMAN_NO_DOCUMENTS') ?></div>
<?php
}
?>
</div>
And finally, I think it's pretty important, is the lack of an icon to move up to the parent category. If you opened a category, such as recent announcements, you can not get back to the category that contains it.
Please, all comments and suggestions to improve my site is very welcome!
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.