I have implemented a new entity type that requires paged access to DB and meet a probem with several pagers for independent entities on the same theme page.
The problem is that that entity can be used along with the node, thus two (or more) pagers may co-exist on the same page. The element
property of PagerDefault
apparently does not work (see discussion). In addition, PagerDefault
simply uses $_GET['page'])
to find required page number, which leads to even bigger confusion - both absolutely independed DB queries share same HTTP page query parameter.
What do you believe is good solution of this problem?
Further investigations have revealed a bug with EntityFieldQuery::pager()