5 next events on home page
This commit is contained in:
@@ -78,7 +78,7 @@ class HomeController extends ControllerBase {
|
|||||||
->condition('status', 1)
|
->condition('status', 1)
|
||||||
->condition('type', 'evenement')
|
->condition('type', 'evenement')
|
||||||
->condition('field_date', $now->format(DATETIME_DATETIME_STORAGE_FORMAT), '>=')
|
->condition('field_date', $now->format(DATETIME_DATETIME_STORAGE_FORMAT), '>=')
|
||||||
->range(0,3)
|
->range(0,5)
|
||||||
->sort('field_date');
|
->sort('field_date');
|
||||||
|
|
||||||
$events = $query->execute();
|
$events = $query->execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user