Pagination Vertical Issue

Status
Not open for further replies.
Well - not sure exactly which template you are using for this ... but looking at what the Bootstrap documentation says:
  • This template has code of the following format:
    Code:
    <ul class="pagination"><li>...</li></ul>
  • The bootstrap documentation says it should be of the form:
    Code:
    <div class="pagination"><ul><li>...</li></ul></div>
When I try the second definition, it seems to work.
What I cannot work out is where this HTML is generated from as it does not seem to match any of the Fabrik code.
Can you confirm which List Template you have selected?
S
 
Did you try with a standard Joomla template (e.g. protostar)?
I assume your Joomla template does HTML overriding on pagination.php (creating the "wrong" pagination code).
 
I am using the bootstrap template for the list. I've contacted support for my template (Rockettheme) to see if they have a fix for it.

Also, I can't change the template now because it's a live site with tons of users.
 
HAHA. I was able to fix it!!!! (I'm not good at php - but I FOUND IT!)

In the pagination.php file under the "com_fabrik>helpers>", there was a coding error:
Code:
protected function _list_render($list)
    {
        // Reverse output rendering for right-to-left display.
        $html = '<ul class="pagination">';
Which I changed to this:
Code:
protected function _list_render($list)
    {
        // Reverse output rendering for right-to-left display.
        $html = '<div class="pagination"><ul>';
and also the closing tags accordingly. It worked! Thanks so much for the help. I would not have been able to do it without your tips, Sophist!
 
I fear that you pagination.php is out of date. The current F3.1 pagination.php says:
Code:
protected function _list_render($list) {
    // Reverse output rendering for right-to-left display.
    $html = '<div class="pagination">';
    $html .= '<ul class="pagination-list">';

Perhaps you should do an update from GitHub?

S
 
You really need to update from GitHub - the Fabrik 3.1b (b for beta) install is quite old and the beta code has changed quite a lot - so you are likely to encounter other issues which have been fixed in the last few months if you do not update from GitHub.

S
 
Status
Not open for further replies.

Members online

No members online now.
Back
Top