I'm trying to customize Phoca Download and I have a question (as topic subkect): I would like to insert some text before SUBCATEGORY NAME (obviously when a subcategory is present).
I succeded in doing it for PARENT CATEGORY
Code: Select all
$pdTitle = 'Categoria principale: <a href="'. JRoute::_(PhocaDownloadRoute::getCategoryRoute($value->id, $value->alias)).'">'. $value->title.'</a>';
I've try to edit localsite\components\com_phocadownload\views\categories\tmpl\default.php in the following but I can't do what i want:
Code: Select all
if ($this->t['displaynumdocsecsheader'] == 1) {
$numDocAll = (int)$numDoc + (int)$value->numdoc;
//$numDoc ... only files in subcategories
//$value->numdoc ... only files in the main category
//$numDocAll ... files in category and in subcategories
$pdTitle .= ' <small>('.$numSubcat.'/' . $numDocAll .')</small>';
}
$pdDesc = '';
$pdSubcategories = '';
if ($this->t ['displaymaincatdesc'] == 1) {
$pdDesc .= $value->description;
} else {
if ($catOutput != '') {
$pdSubcategories .= $catOutput ;
} else {
$pdSubcategories .= '<div class="pd-no-subcat">'.JText::_('COM_PHOCADOWNLOAD_NO_SUBCATEGORIES').'</div>';
}
}
$pdClear = '';
if ($i%3==0) {
$pdClear .= '<div class="pd-cb"></div>';
}
$i++;
Any suggestion?
Thanks