use forEach
itemsPerPage can be empty
wid is computed after customFields
Merge branch 'master' of https://github.com/castorjs/castor-core