Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch provides an admin setting to limit the display of terms from vocabularies that use free-tagging by implementing a threshold on node counts. The motivation is the sitemap page is very long on sites with that have a lot of tags (similar issues #178968 and #192066). Showing and subscribing to these tags may only be useful if the node count is greater than 0. This patch adds a configurable number (threshold to check against node count) to limit those terms by.
Comment | File | Size | Author |
---|---|---|---|
#1 | site_map_count_threshold-5-dev.patch | 5.03 KB | coltrane |
site_map_count_threshold.patch | 5 KB | coltrane | |
Comments
Comment #1
coltraneHere's the same patch against 5.x-1.x-dev.
Comment #2
cyberswat CreditAttribution: cyberswat commentedwe are using this in production ... looks good.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedWouldn't it be more useful to have paging instead of limiting the amount of tags to be displayed? Or perhaps I misunderstand and this is exactly what your patch does?
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedSorry, revisiting my previous comment I see that these are two different things - I would like to see both!
Comment #5
iva2k CreditAttribution: iva2k commentedSee also a patch in #504794: Usability patch: count thresholds, RSS links alignment, etc. for D6.
I made the name of setting variable compatible with patches in #0 and #1. I am not intending to roll it for D5 since I completely switched to D6, but if anyone wants it - fell free to pick it up and convert for D5 branch.
Comment #6
frjo CreditAttribution: frjo commentedNo new features will go in to the Drupal 5 version. For the Drupal 6 version please see https://drupal.org/node/504794.