Make Tagadelic more modular

Bèr Kessels - May 1, 2008 - 13:52
Project:Tagadelic
Version:HEAD
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

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

mercmobily - May 6, 2008 - 02:55

Hi,

I think this sounds fantastic. I will definitely use the new structure to expand the module when it's available!

Merc.

#2

leafish_paul - August 18, 2008 - 11:38
Title:MAke tagadelic more modular» Make Tagadelic more modular

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

brenda003 - July 16, 2008 - 20:05

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

Bèr Kessels - August 15, 2008 - 15:02

http://drupal.org/node/264921 was marked a duplicate of this issue

#5

Bèr Kessels - August 15, 2008 - 15:04

http://drupal.org/node/182343 was marked duplicate of this issue

#6

Yorirou - September 29, 2008 - 11:36

I need the "tags by content type" feature. Can I help you with something?

#7

Bèr Kessels - November 11, 2008 - 13:21

http://drupal.org/node/315197 ws marked duplicate of this.

#8

jstoller - November 14, 2008 - 02:24

I also need the "tags by content type" feature. Has there been any movement in this direction?

#9

tignux - December 4, 2008 - 14:49

I'm also interested in #128277: Tag cloud for node terms

Anyone know a non official way to do this?

#10

d0t101101 - February 17, 2009 - 07:26

subscribing.

 
 

Drupal is a registered trademark of Dries Buytaert.