Views Cloud Randomize Not Working Properly

fawkstrot - June 29, 2009 - 21:49
Project:Views Cloud
Version:6.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:fixed
Description

Maybe this is a bug, I'm not quite sure.

Basically the problem exists in that if you have a large set of terms you are creating your cloud from (say 100+ or what not) but only want to display 20 of those terms, there appears to be a break down in the logic.

Instead of getting 20 randomized terms from all 100 terms you get the top 20 terms (alphabetically) and then only those are randomized. So I end up with tag clouds of only terms with A-C being randomized.

Sorting by date doesn't appear to have any effect on views cloud in general, nor does the additional global random filter do anything to change the results.

Am I doing something wrong or is this a problem in views cloud? I've tried all sorts of different methods without much luck either way.

#1

fawkstrot - June 29, 2009 - 21:50

In the first paragraph I mean "but only want to display 20 of those terms RANDOMLY", just for clarification.

#2

ivanckt - July 22, 2009 - 09:30

I got the same problem. You can reproduce the problem by setting the maximum number of tags to 1 or 2, then you will see everytime you refresh you get the same tags. I want them to randomly choose from all tags.

#3

quicksketch - November 17, 2009 - 22:32
Status:active» fixed

You just need to add the "Global: Random" option to the "Sort Criteria" section. The Randomize option within Views Cloud only randomizes the items it's given, you need to tell the entire view to return random items.

 
 

Drupal is a registered trademark of Dries Buytaert.