Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Get First three items

Started by Binal 7 years ago · 0 replies · 435 views
7 years ago

I have some events child page

I want 3 upcoming events in one div and another in other div.

Now i facing problems is that i use |slice(0,3) for display 3 three events but if event expired then it shows only 2 in first div.

Suggested topics

Topic Participants Replies Views Activity
General · by Old Man Umby, 1 week ago
2 120 9 hours ago
General · by jeremycherfas, 2 weeks ago
5 207 21 hours ago
General · by lynbor, 7 days ago
2 140 4 days ago
General · by Sebastian, 2 weeks ago
1 136 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 257 3 weeks ago