It would be nice to display the number of comments in the talk tab. I.e. "Comments (14)".

The user could use a placeholder in the title field in admin/settings/talk, i.e. "Comments (!count)".

Comments

cwgordon7’s picture

The problem with that approach would be that the link is displayed using that title with a " (!count)" appended. How about a checkbox that, if checked, would display the number of comments in the tab?

sersim’s picture

Thanks for you reply.

The checkbox was my first idea, and it would be fine too.
But I thought that the option I proposed could make the tab more customizable, in particular for translations.
I don't see where is the problem. The "!count" string (if present) should be replaced with the actual number of comments.

cwgordon7’s picture

Sure, but then for the actual link displayed at the bottom of the node, it will read something like "Talk (3) (3 comments)".

The solution here is to make two separate settings, one for the tab and the other for the link. Patches are welcome, otherwise I'll probably get to it sometime in the next month.

c0py’s picture

subscribing

Gerben Zaagsma’s picture

subscribing

greggles’s picture

I've got a patch to add "node_comment_count" as a token for token module - #511026: provide token for number of comments on a node.

If we combine that with #506658: Customizable titles everywhere using tokens then it is quite easy to provide all this and more, actually.

I think we should mark this as a duplicate of 506658 but will wait for cwgordon's feedback.

greggles’s picture

Status: Active » Closed (duplicate)

As I work on this module more it seems like a real duplicate. To those interested, please try out the patches in the linked issues.

yerboo’s picture

Title: Display the number of comments » subscribing
greggles’s picture

Title: subscribing » Display the number of comments

restoring title.

Note that this isssue is closed as a duplicate and the feature is already provided in the module.