CMS Development

pixelilly
Teilnehmer/-in | Platinum Partner
Teilnehmer/-in | Platinum Partner

HubDB Question

lösung

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 Upvotes
1 Akzeptierte Lösung
stefen
Lösung
Autorität | Partner
Autorität | Partner

HubDB Question

lösung

@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

Lösung in ursprünglichem Beitrag anzeigen

1 Antwort
stefen
Lösung
Autorität | Partner
Autorität | Partner

HubDB Question

lösung

@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