JComments counter in category-view

More
13 years 1 month ago #23184 by mcmurdok
Is there any possibility to show the number of JComments of an item in the category-view like it is standard in combination com_content and JComment? Or have I to wait for a special field-plugin
System: Joomla 2.5.x, FLEXIContent - 2.0 - preRC3 r1110

Regards

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #23188 by micker
a solution is in forum do usse search ? ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
13 years 1 week ago #24359 by domich
Hi there,

I´ve the same problem, but can´t find a solution in the forum. Can you post here the link?

regards

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #30944 by denniskobus
I also searched the forum but no luck.
a little hint would be apreciated

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #30950 by ggppdk
something like this can be used:
Code:
$id = $items[$i]->id; $db =& JFactory::getDBO(); $query = 'SELECT COUNT(com.object_id)' . ' FROM #__jcomments AS com' . ' WHERE com.object_id = ' . (int)$id . ' AND com.object_group = ' . $db->Quote('com_flexicontent') . ' AND com.published = 1' ; $db->setQuery($query); $num_comments = $db->loadResult();


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #31030 by denniskobus
Thanks!
I have it working by adding it to my flexi template.

That's is probably not how it should have been done, but for now fine by me. Unless you say that that is very bad for performance?

Thanks again, dennis

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.357 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save