This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
92 Posts
SimonD
21 days 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 Book for SEBLOD
92 Posts
SimonD
20 days ago
0
Level 1

Hello everybody,

Friendly bump.

Best regards

16 days 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

1262 Posts
Bucklash
16 days ago
0
Level 1

until seblod can do it might be able to donthis:

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

16 days ago
0
Level 1

Hi

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

This is what I feared

Thanks

Cyril

Get a VIP membership