Hey,

I know you guys are quite busy with this support que, so I'll try to make this as quick and simple as possible.

I have a view which returns nodes based on a few filters, none of which are important except for the Node: Distinct filter, and sort data randomly, under sort data. Lets say I have 10 nodes which I want to display randomly in a block of 5. So I set sort criteria to random, figuring that this would make it work. The problem is, nodes repeat themselves in the block, they aren't all unique. Thus I look at the Node: Distinct filter, which I assume from its description ensures that every node appears only once.

The problem is, that its not working. If sort criteria is set to random, the node: distinct doesn't seem to work. Remove random, then it does. But then nodes don't appear randomly. How do I force views to display a random number of nodes, as set by the parameters of my current view, but display a node only ONCE in the block. (I.E. Once a node has been randomly selected out of the applicable nodes, ensure that it is not selected a second time).

Thoughts?

Thanks!

Comments

rc2020’s picture

Duplicate of other posts, the solution I found is here:

"Ok, I think I *might* have found a solution.

If Node: Distinct is the FIRST filter in the filter option, and sort: criteria is set to random, I am not showing any repeats of nodes, regardless of taxonomy tags. So far so good... I'll post this in the duplicate forum as well. "

Leeteq’s picture

Status: Active » Closed (duplicate)