• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Pagination bug / module bug

dyvel

New Member
I've been messing around with pagination the last couple of days and found some bugs. To confirm that it wasn't something I have creted myself, I've overwritten all files in com_fabrik and the bug is still there.

The problem is: When using a tableview in a module, the pagination does not work. However it does work if I'm on a page with a tableview in mainbody(component). But if I try use paging in my module while also looking at a table in mainbody(component) the paging in the module also affects the paging in the component.

Module and component are displaying 2 different tables, but are using data from the same database table.
You can see the problem in action here: d-form.dk/dev/index.php?option=com_fabrik&Itemid=12

And the pagination failure when not looking at a table in mainbody(component) here: d-form.dk/dev/index.php?option=com_content&task=view&id=3&Itemid=3

I'm using the latest SVN trunk from today

................

Altso I found a bug in the mod_fabrik_table.php

a " ' " should be removed in line 35/36. Change:
require_once( "'components/com_fabrik/views/form/view.html.php" );
require_once( "'components/com_fabrik/views/table/view.html.php" );

to this:

require_once( "components/com_fabrik/views/form/view.html.php" );
require_once( "components/com_fabrik/views/table/view.html.php" );
 
I guess the bug has something to do with the missing scripts in the header when not viewing a table in mainbody(component).

I'm thinking of these:
<script type="text/javascript" src="http://domain/components/com_fabrik/libs/mootools.js"></script>
<script type="text/javascript" src="http://domain/components/com_fabrik/libs/mootools-ext.js"></script>
<script type="text/javascript" src="http://domain/components/com_fabrik/libs/slimbox.js"></script>
<link rel="stylesheet" type="text/css" href="http://domain/components/com_fabrik/css/slimbox.css" media="screen" />
<script type="text/javascript" src="components/com_fabrik/views/table/table.js"></script>

But I don't that will adress the pagination bug where the paging in the module affect the paging in the component and visa versa.
 
I guess the pagination bug where module affects component and visa versa is due to them both using the same anchor links and therefore they both get affected when paging.
 
Will do. I have a few other bugs ahead of you in the queue, so if I don't get round to this within a day or three, please bump this thread to remind me.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top