CMS Development

Ltkhaw
参加者

Displaying three out of >100 hubdb items

解決

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 いいね!
1件の承認済みベストアンサー
jonchim
解決策
ガイド役 | Diamond Partner
ガイド役 | Diamond Partner

Displaying three out of >100 hubdb items

解決

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
VP of Design & Development
Hypha HubSpot Development


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

元の投稿で解決策を見る

0 いいね!
1件の返信
jonchim
解決策
ガイド役 | Diamond Partner
ガイド役 | Diamond Partner

Displaying three out of >100 hubdb items

解決

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
VP of Design & Development
Hypha HubSpot Development


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