Skip to content

Instantly share code, notes, and snippets.

@pavel-one
Created April 20, 2018 01:56
Show Gist options
  • Save pavel-one/992f18897b28a2dc57f1fd3dce5f8426 to your computer and use it in GitHub Desktop.
Save pavel-one/992f18897b28a2dc57f1fd3dce5f8426 to your computer and use it in GitHub Desktop.
Вывод выше текущей даты
{'!pdoResources' | snippet: [
'parents' => 53,
'limit' => 10,
'includeTVs' => 'eventDate, eventImage, eventPrice',
'depth' => 5,
'sortby' => 'eventDate',
'sortdir' => 'ASC',
'tvPrefix' => '',
'tpl' => '@FILE tpl/latestEvent.tpl',
'showLog' => 0,
'where' => 'template = 9 AND UNIX_TIMESTAMP(eventDate) > UNIX_TIMESTAMP()'
]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment