![]() |
![]() |
![]() |
|
|||||||
| User interface Discuss eSyndiCat templates here. All the questions regarding eSyndiCat [FREE] Front end |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Jan 2007
Posts: 57
![]() |
I want to show on very page TOTAL (not category based) number of links.
I know Smarty so i can add into templates but how i can get total number of links into directory ? Thanks |
|
|
|
|
|
#2 |
|
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
![]() |
***Open index.php and find code***
Code:
/** get related categories **/
if ($config->get('related'))
{
$related_categories = $Category->getRelated($id);
$related_categories = $related_categories ? $gDirLayout->print_categories($related_categories) : '';
$gDirSmarty->assign_by_ref('related_categories', $related_categories);
}
Code:
$total_num_category = $Category->row("*","`id`='0' and status='active'");
$gDirSmarty->assign('total_num_links', $total_num_category['num_all_links']);
In the template files you can use the {$total_num_links} variable. |
|
|
|
|
|
#3 |
|
Join Date: Jan 2007
Posts: 57
![]() |
Thanks.
I am wondering, is not much easier to add all those questions and replies as a FAQ (categorized) on site ? Or even on a eSynd installation. I mean you guys spending lot of time replying on forums. Is good, but with an online FAQ will be much easier for all i guess... This doesn't means forum is not useful, i just think is harder to search answers by searching here than looking over a categorized FAQ. ANd for you less time spent on support. |
|
|
|
|
|
#4 |
|
Join Date: Jul 2006
Location: St. Petersburg
Posts: 2,567
![]() |
We already have the Knowledgebase and we fill it up with the most frequent problems and aspire to build up an useful section for frequently asked questions.
Also we're preparing our manual, and I believe that it will be ready soon. ![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|