CMS Development

pixelilly
Participante | Parceiro Platinum
Participante | Parceiro Platinum

HubDB Question

resolver

Hello Developer community! I recently set up a HubDB to easily display customer testimonials.  The page was intended to show rows 1-3 and the remainding ones in a hidden div (like a show/hide jquery thing). I toyed with writing a query to manually display the row I want, but that could get pretty cumbersome considering we have 10 rows now and are expecting to add more.  Is there a more efficient way to do this? I'd imagine I can change the query in the module, but I'm not entirely sure how to do this. Any answers will be very much appreciated! Thanks in advance! 

0 Avaliação positiva
1 Solução aceita
stefen
Solução
Conselheiro(a) de destaque | Parceiro
Conselheiro(a) de destaque | Parceiro

HubDB Question

resolver

@pixelilly you would need to add a limit parameter to your query. You can do this in HubL like so:

{% set table = hubdb_table_rows(123456,'&limit=3') %}

 Hope that helps!

Stefen Phelps, Community Champion, Kelp Web Developer

Exibir solução no post original

1 Resposta 1
stefen
Solução
Conselheiro(a) de destaque | Parceiro
Conselheiro(a) de destaque | Parceiro

HubDB Question

resolver

@pixelilly you would need to add a limit parameter to your query. You can do this in HubL like so:

{% set table = hubdb_table_rows(123456,'&limit=3') %}

 Hope that helps!

Stefen Phelps, Community Champion, Kelp Web Developer