SHARE
TWEET

Untitled

a guest Sep 13th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {% paginate craft.entries({
  2.    section : 'dealDirectory',
  3.    limit   : pageSize,
  4.    startDate : '<=' ~ now
  5. }) as pageInfo, dealEntries %}
  6.    
  7. {% paginate craft.entries({
  8.    section : 'dealDirectory',
  9.    limit   : pageSize,
  10.    startDate : '<=' ~ now
  11.    endDate : '>=' ~ now
  12. }) as pageInfo, dealEntries %}
  13.    
  14. {% paginate craft.entries({
  15.    section : 'dealDirectory',
  16.    limit   : pageSize,
  17.    startDate : '<=' ~ now
  18.    endDate   : '>= ' ~ now ~ 'or is null'  // but this syntax incorrect
  19. }) as pageInfo, dealEntries %}
RAW Paste Data
Top