Displaying three out of >100 hubdb items

SOLVE
Ltkhaw
Participant

I have >100 hubdb list items and I would like to display three items at a time based on the latest date and time. 

 

Are there any code snippets to help me achieve this?

 

Thanks !

0 Upvotes
1 Accepted solution

Accepted Solutions
jonchim
Solution
Guide | Diamond Partner

Hi @Ltkhaw ,

This article from SmartBug might be helpful https://www.smartbugmedia.com/blog/creating-event-listing-using-hubdb

 

As far as displaying three items, you'll probably need a loop statment.

{% if loop.index <=3 %}

 

Let me know if that helps!






Jon Chim
Design Director
Morey Creative Studios


check Did my post help answer your query? Help the Community by marking it as a solution

View solution in original post

0 Upvotes
1 Reply 1
jonchim
Solution
Guide | Diamond Partner

Hi @Ltkhaw ,

This article from SmartBug might be helpful https://www.smartbugmedia.com/blog/creating-event-listing-using-hubdb

 

As far as displaying three items, you'll probably need a loop statment.

{% if loop.index <=3 %}

 

Let me know if that helps!






Jon Chim
Design Director
Morey Creative Studios


check Did my post help answer your query? Help the Community by marking it as a solution

View solution in original post

0 Upvotes