Issue with getPrevAndNextRecords() and hidden records

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 26, 2013   (RSS)

By Jason - June 26, 2013

Hi,

Yes, getPrevAndNextRecords() can run into issues when a hidden field is present.  The way to work around this is to add this to your where clause:

ie

'where'  =>  'hidden = 0',

That should take care of the issue for you. Please let me know if you need anything else.

Thanks,

---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By mizrahi - June 26, 2013

That worked. Thanks.