See the number of comments per item in the album overview below each thumbnail?

dcnc

Joined: 2006-05-30
Posts: 19
Posted: Mon, 2010-07-12 17:12

http://codex.gallery2.org/Gallery2:Modules:comment#Features

Quote:
See the number of comments per item in the album overview below each thumbnail

This is a line in the features section of the comment module overview but for the life of me I can not figure out how to add the count of comments for each album. I have figured out how to add in the count of views but not comments. Anyone come across this before and know how to do this?

Here is what I have for the "View Count":
{g->block type="core.ItemInfo" item=$child showCommentCounts=true}

Is it just a simple tweak of the last bit of text in that line or a bit more involved?

Thanks for any assistance!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-07-12 18:03

View Count is different than number of comments.

Edit your album.tpl file and set showSummaries to true. Be sure to follow the link at the top about editing templates.

Clear you cache after you've changed the file:
FAQ: How can I clear cached data?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
dcnc

Joined: 2006-05-30
Posts: 19
Posted: Tue, 2010-07-13 02:00

I figured it was different.

I am using the Siruix theme and it does not have that in the album.tpl file.
If I do add that chunk it still does not give me what I want.

{g->block type="core.ItemInfo"
item=$child
showDate=true
showOwner=$showOwner
showSize=true
showViewCount=true
showSummaries=true
class="giInfo"}

What I am looking for is an output to say only the following:

Quote:
6 Comments