ну например если задача вывести на главную страницу общее количество объявлений то идёшь components/board/ открываешь frontend.php находишь там
// Отдаем в шаблон категории $smarty = $inCore->initSmarty('components', 'com_board_cats.tpl'); $smarty->assign('pagetitle', $pagetitle); $smarty->assign('cats', $cats); $smarty->assign('cat', $category); $smarty->assign('root_id', $model->root_cat['id']); $smarty->assign('is_user', $inUser->id); $smarty->assign('maxcols', $model->config['maxcols']); $smarty->display('com_board_cats.tpl');
$smarty->assign('alltotal', $total);
// Отдаем в шаблон категории $smarty = $inCore->initSmarty('components', 'com_board_cats.tpl'); $smarty->assign('pagetitle', $pagetitle); $smarty->assign('cats', $cats); $smarty->assign('cat', $category); $smarty->assign('alltotal', $total); $smarty->assign('root_id', $model->root_cat['id']); $smarty->assign('is_user', $inUser->id); $smarty->assign('maxcols', $model->config['maxcols']); $smarty->display('com_board_cats.tpl');
и после
<h1 class="con_heading">{$pagetitle} <a href="/rss/board/{if $root_id==$cat.id}all{else}{$cat.id}{/if}/feed.rss" title="{$LANG.RSS}"><img src="/images/markers/rssfeed.png" border="0" alt="{$LANG.RSS}"/></a></h1>
{if $root_id}Всего объявлений: {$alltotal}{/if}
Всего объявлений: {$alltotal}