It would be ideal for theming purposes to separate the record count for taxonomy terms as they are now shown in one line which makes it impossible to theme.

Comments

barrett’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have some approach in mind for trying to accomplish that?

Wrapping the count in a span is the most obvious approach but doesn't work within the scope of this module, since the content of the link title is check_plain'ed before being displayed, so if you include html when the link is saved you end up with stuff like:

<a href="/taxonomy/term/43" title="Things (12)">
Things &lt;span class=&#039;taxonomy-menu-term-count&#039;&gt;(0)&lt;/span&gt;
</a>

You may have to do your theming on the way out, as a theme_link() implementation. <IANAT />

hles’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Postponed (maintainer needs more info) » Active

Moving to 7.x-2.x and making it active. A solution for this would be awesome because requested by many.

johnv’s picture

Title: Separate the record number count in menus » Separate the theming of 'number of items count' from 'link title' in menus

More explicit title.

joefry’s picture

A cheesy way to do this might be to intercept at output, parse string backwards looking for ")" and "(" snip the tail and theme. I don't have the ability to do it, but I'm throwing it out as an idea for more experienced coders.

arx-e’s picture

I am searching for this functionality too.
Would there be anyway to do it now?

vladimiraus’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Thank you for your contributions.
Drupal 7 is no longer supported.
Closing this issue as outdated.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.