ma secondo te se associo a docman itemid 28
come quello a cui rimandano i moduli latestdown
dovrei visualizzare il modulo dei sondaggi?
non c'è un modo per cambiare questo itemid
non so dal database, da qualche parte, oppure no?
questo è il file latestdown
non dovrebbe essere difficile fare la modifica
perchè sono poche righe... o è difficile?
<?php
/**
* DOCman Latest Downloads 1.4.x
* @version $Id: mod_docman_latestdown.php 478 2007-11-16 02:42:02Z mjaz $
* @package DOCmanModules_1.4
* @copyright (C) 2003-2007 The DOCman Development Team
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.joomlatools.org/ Official website
**/
defined('_VALID_MOS') or die('Restricted access');
// you can define the following parameters at administration:
// limits = number of downloads to display (default = 3);
// show_icon = displays a generic icon near the name of the document
// show_category = displays the category of the document
include_once( $mosConfig_absolute_path."/administrator/components/com_docman/docman.class.php");
//DOCman core interaction API
global $_DOCMAN, $_DMUSER;
if(!is_object($_DOCMAN)) {
$_DOCMAN = new dmMainFrame();
$_DMUSER = $_DOCMAN->getUser();
}
$_DOCMAN->setType(_DM_TYPE_MODULE);
$_DOCMAN->loadLanguage('modules');
require_once($_DOCMAN->getPath('classes', 'utils'));
require_once($_DOCMAN->getPath('classes', 'file'));
require_once($_DOCMAN->getPath('classes', 'model'));
// get the parameters
$limits = abs($params->def( 'limits', 3 ));
$show_icon = abs($params->def( 'show_icon', 1 ));
$show_category = abs($params->def( 'show_category', 1 ));
$moduleclass_sfx = $params->get( 'moduleclass_sfx' );
$menuid = $_DOCMAN->getMenuId();
$html = '<div class="mod_docman_catdown'.$moduleclass_sfx.'">';
$rows = DOCMAN_Docs::getDocsByUserAccess(0, 'date', 'desc', $limits);
if (count($rows)) {
$html .= '<ul class="mod_docman_latestdown">';
foreach ($rows as $row)
{
$doc = new DOCMAN_Document($row->id);
$catid = $doc->getData('catid');
$url = sefRelToAbs( "index.php?option=com_docman&task=cat_view&Itemid=$menuid&gid=$catid&orderby=dmdate_published" );
$html .= '<li><a href="'.$url.'">';
if ($show_icon)
$html .= '<img border="0" src="'.$doc->getPath('icon', 1, '16x16').'" alt="file icon" />';
$html .= $doc->getData('dmname');
if ($show_category)
$html .= ' ('.$row->cat_title.')';
$html .= '</a></li>';
}
$html .='</ul>';
} else {
$html .= "<br />"._DML_MOD_NODOCUMENTS;
}
$html .= '</div>';
echo $html;