JCollection Homepage

  • Increase font size
  • Default font size
  • Decrease font size
Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

Number of items
(1 viewing) (1) Guest
Bugs in JCollection 0.9.x beta/1.x
Go to bottomPage: 1
TOPIC: Number of items
#662
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.
alejo
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#663
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.
alejo
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/08/28 11:04 By alejo.Reason: Added 0 items issue
The administrator has disabled public write access.
 
#664
Re: Number of items 8 Months, 3 Weeks ago  
Hi,
you are correct, sorry about this!
Thanks for the fix,
Thorsten.
tcriess
Posts: 296
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Donations

If you like JCollection, please consider a small donation to help developing the component. If you don't have a PayPal account and still wish to donate, feel free to send an Amazon.de gift certificate (to thorsten.riess@sh-riess.de). Thank you very much!

Amount: 

Flattr

Advertisement