Always "views-cloud-size-7"

larskhansen - October 14, 2008 - 12:03
Project:Views Cloud
Version:6.x-1.0
Component:User interface
Category:bug report
Priority:normal
Assigned:larskhansen
Status:closed
Description

Hi,

First of all - it seems to be a great module for creating a tag cloud. I just have one problem.

I would like to have a tag cloud with 10 nodes in different sizes...
I've selected node:title and node: Post date. In the "Cloud Weight field" I've selected the node: Post date.

The cloud appears and seems to be working except for the sizing. I selects views-cloud-size-7 for every single link.
I've tried changing the date in the DB, but nothing happens in the Cloud...

Any ideas?

Regards,
Lars Hansen, Denmark

AttachmentSize
The view tag_cloud.jpg112.07 KB

#1

quicksketch - November 17, 2009 - 21:34
Category:support request» bug report
Status:active» fixed

This was actually a combination of problems, not the least of which was Views Cloud assuming 1000 was the larges number it would come across. This has been fixed in the attached patch.

To make a cloud of items by the time they were posted, edit your "Node: Date posted" field and set the format of the field to "Custom", then use the format "U" to output a timestamp. This makes it easy for Views Cloud to compare submitted times, since they'll all be integers instead of dates (which don't compare well with PHP's comparison operators).

AttachmentSize
views_cloud_min_max.patch 921 bytes

#2

System Message - December 1, 2009 - 21:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.