Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Get First three items

Started by Binal 7 years ago · 0 replies · 462 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 Andy Miller, 6 days ago
0 106 6 days ago
General · by lynbor, 4 weeks ago
3 436 2 weeks ago
General · by lynbor, 3 weeks ago
7 555 2 weeks ago
General · by Harry, 2 weeks ago
0 159 2 weeks ago
General · by Old Man Umby, 1 month ago
2 308 3 weeks ago