Pagination on Query field with multiple rows output?

9 years 3 months ago #258406 by NicoFaaij
Hello,

It is very nice how you can design the header, row and footer of output from a multiple row Query field in the display tab. What I am missing is pagination. Sometimes the query field returns to much rows for just one page. Is there a way to create multiple pages with a predefined amount of rows?

With kind regards,
Nico

Please Log in to join the conversation.

9 years 2 months ago #258420 by nant

NicoFaaij wrote: Hello,

It is very nice how you can design the header, row and footer of output from a multiple row Query field in the display tab. What I am missing is pagination. Sometimes the query field returns to much rows for just one page. Is there a way to create multiple pages with a predefined amount of rows?

With kind regards,
Nico


This is not a definitive answer, but I do not think you can do such pagination without using PHP code.

If this statement I made is correct, you would need to create a new CB plugin to handle what you are attempting to do with a query field.

Please Log in to join the conversation.

9 years 2 months ago #258423 by NicoFaaij
Hi Nant,

I was used to do it another way around with customized php-code. But as Query fields are so complete with the display tab for multiple row output I thought it should be there (but I was not seeing it).

With CB2.0 your product is really complete and mature so I try to get rid of all my hacks with custom injected code.

Kind regards,
Nico

Please Log in to join the conversation.

9 years 2 months ago - 9 years 2 months ago #258426 by nant

NicoFaaij wrote:
With CB2.0 your product is really complete and mature so I try to get rid of all my hacks with custom injected code.


Yup - that is the point - the need to hack is no longer there (well I guess it is for those who just want something quick and dirty and do not care if it hack is over-written on next upgrade).

A new plugin is also a clean solution ;-)

P.S. I think Kyle has on his 2do list to create a PHP field type ;-)

Please Log in to join the conversation.

9 years 2 months ago #258427 by NicoFaaij
I already started with writing my own plugins. But I want as less as possible tailor made software as the maintenance and testing for new Joomla and CB versions will then rest on my shoulders :S

Please, don't interrupt Kyle for this. let our guru first do the important stuff like the new GroupJive version.

....however the PHP field would be very useful for me :laugh: :laugh: :laugh:

Please Log in to join the conversation.

9 years 2 months ago #258485 by krileon
I've around 20 projects planned after the current plugins are upgraded. A PHP Fieltype is absolutely planned. It'll likely be one of the first new projects I release after current plugin upgrades are done given how simple it is as CB Query Field can be used as a base for it.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: NicoFaaij

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.183 seconds

Facebook Twitter LinkedIn