99 Posts
SimonD
4 years ago
4
Topic

Hello,

I would like to know how I could randomize the display of items in a list.

I'm using the component list (not the list module).

I've tried to play with random + shuffle menu parameter but it shuffles the items per pagination page.
I mean, if I set the pagination to display 12 items per page, the random + shuffle parameter randomizes the display of these 12 items only.
I would like to randomize all items of the list.

I've tried to add 'shuffle($items);' code in seb_list template as explained in the forum, but it breaks the list.

Best regards

Get a VIP membership
99 Posts
SimonD
4 years ago
0
Level 1

Hello everybody,

Friendly bump.

Best regards

4 years ago
0
Level 1

Hi

Same thing here. 

I can't sort the WHOLE results in a random order and only THEN apply the pagination. SO far it seems the random/shuffle settings only apply on each page separately.

thanks

cyril

1283 Posts
Bucklash
4 years ago
0
Level 1

until seblod can do it might be able to donthis:

https://www.mysqltutorial.org/select-random-records-database-table.aspx

4 years ago
0
Level 1

Hi

Yes, using the seblod search query field then ...

This is what I feared

Thanks

Cyril

Get a VIP membership