Saltar navegación

[Resuelto] Views table sort without page reload

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
How to sort table on screen without page reload?

Solution:

There isn't such kind of built-in feature within Toolset plugins, each time you resort the result in frontend, Views need to query the database again, and get the sorted results, setup the pagination as well.

If you don't need pagination, you can consider custom codes, for example:

https://www.w3schools.com/howto/howto_js_sort_table.asp

Relevant Documentation:

This support ticket is created hace 2 años, 10 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Tiit Sau hace 2 años, 10 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#2317983

Hi,

I guess there is a way to sort table on screen without page reload. Mine makes full refresh.

Tiit

#2318125

Hello,

There isn't such kind of built-in feature within Toolset plugins, each time you resort the result in frontend, Views need to query the database again, and get the sorted results, setup the pagination as well.

If you just need one page of pagination , you can consider custom codes, for example:
enlace oculto

You need to output the views result with HTML codes according to above document.

#2318151

My issue is resolved now. Thank you!