Pagination

danoshea

Member
Ran across this pagination tutorial http://fabrikar.com/forums/showthread.php?t=22140&highlight=bootstrap

However, there is a part of the php in pagination.php that seems moot from fabrik 2.0 -

[FONT=&quot]Replace the file pagination.php ( ./components/com_fabrik/helpers/pagination.php)

Line: [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]PHP Code:[/FONT]
[FONT=&quot]$list[/FONT][FONT=&quot][[/FONT][FONT=&quot]'pageslinks'[/FONT][FONT=&quot]] = [/FONT][FONT=&quot]"<ul class=\"pagination\">"[/FONT][FONT=&quot].[/FONT][FONT=&quot]$this[/FONT][FONT=&quot]->[/FONT][FONT=&quot]getPagesLinks[/FONT][FONT=&quot]([/FONT][FONT=&quot]$tableid[/FONT][FONT=&quot], [/FONT][FONT=&quot]$tmpl[/FONT][FONT=&quot]).[/FONT][FONT=&quot]"</ul>"[/FONT][FONT=&quot]; [/FONT][FONT=&quot][/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]on: [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]PHP Code:[/FONT]
[FONT=&quot]$list[/FONT][FONT=&quot][[/FONT][FONT=&quot]'pageslinks'[/FONT][FONT=&quot]] = [/FONT][FONT=&quot]"<div class=\"pagination\"><ul>"[/FONT][FONT=&quot].[/FONT][FONT=&quot]$this[/FONT][FONT=&quot]->[/FONT][FONT=&quot]getPagesLinks[/FONT][FONT=&quot]([/FONT][FONT=&quot]$tableid[/FONT][FONT=&quot], [/FONT][FONT=&quot]$tmpl[/FONT][FONT=&quot]).[/FONT][FONT=&quot]"</ul></div>"[/FONT][FONT=&quot]; [/FONT][FONT=&quot][/FONT]
The current 3.1 pagination.php code reads:

$list['pageslinks'] = $this->getPagesLinks($listRef, $tmpl);

Does this mean the tutorial is now obsolete??
 
quiet possibly yes, its for fabrik 2 and there have been a lot of changes since then. THe pagination now follows the bootstrap required markup.
 
Please you solve this problem?
I have many numbers in field.
It does not look good.
How to define range eg 1-3?
Thank you very much!
 

Attachments

  • 2.jpg
    2.jpg
    45.4 KB · Views: 270
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top