Tagadelic already has two nice API functions. One to build a cloud from ANY query-result, the other to theme that result. Thus allowing you to make, e.g. a small module that shows usernames in a cloud based on, say, amount of posted comments. (but also tags only for user X, only tags for promoted nodes etc).
The way this is baked into the module, however, makes this hard to grok and maintain.
Lets take the module apart and make this a simple two-fased thing: cloud.module and tagadelic.module.
Cloud.module does hard lifting, such as caching, calculating weights, theming clouds, sorting etc etc.
Tagadelic.module ships in the same tarball and displays a tagcloud. Just like now.
any other module could then be made, such as tagadelic_only_promoted.module, or user_tags.module etc.
Comments
Comment #1
mercmobily commentedHi,
I think this sounds fantastic. I will definitely use the new structure to expand the module when it's available!
Merc.
Comment #2
pfaocleGreat idea. I've collated all the relevant "can I display blah as a tag cloud?" type issues to consider here. Some of these can possibly be marked duplicate to centre discussion here.
Also possibly related to this slice n' dice proposal is allowing custom sorting of tags, for example sort types (weight, name, number of nodes, others) and allowing different sorts per user, block, page or vocabulary:
Comment #3
brenda003What about somehow separating it so that it's not limited to just tags, or clouds? I recently had to write a module to simply get a list of categories displayed various ways; most recent, most popular, as well as via tagcloud. It occurs to me it might be nice to have this all in one module.
Potentially it could be a general module to display terms in blocks and pages sorted various ways. What do you think?
Comment #4
Bèr Kessels commentedhttp://drupal.org/node/264921 was marked a duplicate of this issue
Comment #5
Bèr Kessels commentedhttp://drupal.org/node/182343 was marked duplicate of this issue
Comment #6
tamasd commentedI need the "tags by content type" feature. Can I help you with something?
Comment #7
Bèr Kessels commentedhttp://drupal.org/node/315197 ws marked duplicate of this.
Comment #8
jstollerI also need the "tags by content type" feature. Has there been any movement in this direction?
Comment #9
tignux commentedI'm also interested in #128277: Tag cloud for node terms
Anyone know a non official way to do this?
Comment #10
d0t101101 commentedsubscribing.
Comment #11
adam_c commentedHas this got anywhere since it was started 2 years ago?
I could really do with the tag by node feature.
Comment #12
Bèr Kessels commented