|
Number of items 8 Months, 3 Weeks ago
|
|
|
When I try to enable the "show number of items", this message comes out:
Fatal error: Call to undefined function jtext() in /home/.../components/com_jcollection/views/category/tmpl/default.php on line 56
Actually, is the line that gathers information about categories, subcategories with items and counts them... but I don't really know what is wrong.
|
|
|
|
|
|
|
Re: Number of items 8 Months, 3 Weeks ago
|
|
|
Fixed!!
There were some ".._" missing and I defined Categories, Items and And on the language files too.
This is the final code:
echo '<br/><small>'.count($this->cat->subcategories).JText::_('Categories').'
'.JText::_('and').'
'.count($this->items).'
'.JText::_('Items').'</small>'
I introduced some breaks in order to find where the problem was.
In the end, I just realised this isn't working as expected. I expected the number of items next to each category and subcategory...
After a while I've just realised it isn't counting the items. It counts the number of subcategories, but it doesn't count the items, it's always 0.
|
|
|
|
Last Edit: 2011/08/28 11:04 By alejo.Reason: Added 0 items issue
|
|
|
Re: Number of items 8 Months, 3 Weeks ago
|
|
|
Hi,
you are correct, sorry about this!
Thanks for the fix,
Thorsten.
|
|
|
|
|
|
|