Make Tagadelic more modular
| Project: | Tagadelic |
| Version: | HEAD |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
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.

#1
Hi,
I think this sounds fantastic. I will definitely use the new structure to expand the module when it's available!
Merc.
#2
Great 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:
#3
What 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?
#4
http://drupal.org/node/264921 was marked a duplicate of this issue
#5
http://drupal.org/node/182343 was marked duplicate of this issue
#6
I need the "tags by content type" feature. Can I help you with something?
#7
http://drupal.org/node/315197 ws marked duplicate of this.
#8
I also need the "tags by content type" feature. Has there been any movement in this direction?
#9
I'm also interested in #128277: Tag cloud for node terms
Anyone know a non official way to do this?
#10
subscribing.