Bienvenido, Invitado
Recordarme

TEMA:

Content builder limit results in list view 1 año 1 mes antes #247699

  • Autor del tema
  • anthi
  • Fuera de línea
  • Fresh Breezer
  • Fresh Breezer
  • Mensajes: 6
  • Gracias recibidas: 0
Hello everyone,

I was wondering if it's possible to limit the results in content builder list view.
We have a breezing form associated with the view and we need the view to display the last 20 entries of the form. I have already tried by creating an override but I can only manipulate the results per page and not the total results.

So for example if there are in DB 100 records we want only to bring the last 20. Is that possible?

Thanks in advance!

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Content builder limit results in list view 1 año 1 mes antes #247742

  • Avatar de TheMuffinMan
  • TheMuffinMan
  • Fuera de línea
  • Developer
  • Developer
  • Mensajes: 10064
  • Karma: 167
  • Gracias recibidas: 808
Hi,

without hacking I would suggest using overrides and remove the pagination and max record selection.

By default it will sort by ID, descending and show the last 20 entries (please see view => advanced options => sorting settings).

Regards,
Markus

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Content builder limit results in list view 1 año 1 mes antes #247756

  • Autor del tema
  • anthi
  • Fuera de línea
  • Fresh Breezer
  • Fresh Breezer
  • Mensajes: 6
  • Gracias recibidas: 0
Hello and thank you for your quick reply!

I can see the pagination but I can not see the max record selection :)(Not so Php familiar)
Do you mean the row
$n = count( $this->items );


And also the records we have are about 100, and the performance is very slow (about 20sec) do you think if we limit the results will solve also the performance problem? In the future the results would be a lot more that's why we needed to limit the results.

Thanks in advance!

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Content builder limit results in list view 1 año 1 mes antes #247796

  • Avatar de TheMuffinMan
  • TheMuffinMan
  • Fuera de línea
  • Developer
  • Developer
  • Mensajes: 10064
  • Karma: 167
  • Gracias recibidas: 808
Hi,

this is even with 100 records way way too slow.
Please install the component attached over your existing installation.
It includes some performance improvements that hopefully affect yours positively, too.

The per-page dropdown is basically included in the whole block that deals with pagination at the bottom of the template file.

Regards,
Markus

Archivo Adjunto:

Nombre del Archivo: com_conten...9-04.zip
Tamaño del Archivo:1,730 KB
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
Tiempo de carga de la página: 0.053 segundos