Would it be possible to exclude specific content types from the clouds? I have a hardware inventory that has restricted access, but greatly distorts the cloud.

Comments

Bèr Kessels’s picture

Category: feature » support

Yes this is possible, tagadelic has all the APIs for you, all you need to do is craft your own queries and pass the result trough these APIS.

biohabit’s picture

How? There isn't a single reference to content type in the code?

Bèr Kessels’s picture

Status: Active » Fixed

/**
* API that returns an array with weighted tags
* This is the hard part. People with better ideas are very very welcome to send these to ber@webschuur.com. Distribution is one thing that needs attention.
* @param $result. a query result, any query result that contains an object with the following attributes: $tag->count, $tag->tid, $tag->name and $tag->vid. Refer to tagadelic_get_weighted_tags() for an example."
* @param $steps. The amount of tag-sizes you will be using. If you give "12" you sill get six different "weights". Defaults to 6 and is optional.
* @return An unordered array with tags-objects, containing the attribute $tag->weight;
*/

Bèr Kessels’s picture

oh.. and feel free to commit a howto at http://drupal.org/handbook/modules/Tagadelic once you have got this going :)

Anonymous’s picture

Status: Fixed » Closed (fixed)