Categories > TinyButStrong general >

Problem with "Display by page" plug-in

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Vladimir
Date: 2006-10-20
Time: 18:56

Problem with "Display by page" plug-in

I have encountered the following problem with "Display by page" plug-in when using it with MySQL query based block: when I call PageNum beyond the last page it displays the last page, instead of empty page. With array-based blocks it behaves as expected.
By: neverpanic
Date: 2006-10-21
Time: 22:43

Re: Problem with "Display by page" plug-in

The only question is: Is this a bug or a feature? ;-)
By: Vladimir
Date: 2006-10-22
Time: 22:16

Re: Problem with "Display by page" plug-in

=) Yes,
In old version of TBS the empty result was given. It seems to me, that optimum would be to choose this behaviour.
By: Skrol29
Date: 2006-10-23
Time: 02:09

Re: Problem with "Display by page" plug-in

I think it is a feature to display the last page instead of an empty page. I'll watch and see why it doesn't work for array.
Vladimir, can you explain why you prefere the empty page instead of the last page ?
By: Vladimir
Date: 2006-10-23
Time: 22:49

Re: Problem with "Display by page" plug-in

Its simple: I display result of several query's "by page" on one site page. So, in new TBS data was showed twice on page.
By: Skrol29
Date: 2006-10-24
Time: 19:29

Re: Problem with "Display by page" plug-in

Ok, but you must admit that in case you are displaying only one page, it's no good to have it blank when page number is too hight. Otherwise, you have to do several clicks to found the real last page when you go too far. You can notice that quite all Search Tools do this way (Google for example).

If you display several pages using several blocks, maybe you can get the number of record displayed and use is to see if you display the next block or if you delete the block.