Forum
"Paging" always true
I've come across a possible bug with pagination.
Basically, the Perch variable "paging" always seems to be set to 1, so the standard <perch:if exists="paging"> test doesn't work correctly.
It's occurring while listing posts in the Blog app v4.1, with Perch v2.6.0.
It's not a serious problem - I'm using the countermeasure <perch:if id="number_of_pages" match="gt" value="1"> to get round the problem.
Just thought you ought to be aware. Let me know if you need further details.
Thanks, Jon
Thanks Jon, I'll take a look into it.
Just wanted to chip in that the 2.6.2 update fixed the same issue I was having when paginating in core Pages using
perch_content_custom
-- the<perch:if exists="paging">
works again.Also, big thanks to Jon for the clever work-around.