How do make pagination a list instead of span

Permalink
I'm desperate trying to get this pagination work with the bootstrap styling. I'm trying to make a file manager-esque picture loop. The file manager pagination works exactly how i would think it would, but mine doesn't.

I'm also 99% sure i'm doing the pagination wrong in the first place, but the documentation and helps are very hard to understand for a newb.

<?php
            //Loaders
            Loader::library('item_list');
            //Make New Fileset & File List
            $fl = new FileList();
            //Set Up Pagination Settings
            //Set File List Filter
            $fl->filterBySet($fs);
            $fl->sortByFileSetDisplayOrder();
            $fl->setItemsPerPage(1);
            $fileListPages = $fl->getPage();
            $filesList = $fl->get();
               if (count($filesList) > 0) {
                 $paginator = $fl->getPagination();
                 $pageListing = $paginator->getPages();

That is my full code above. I tried to overwrite the helper controller with li instead of span, it only works if i edit the core file or the concrete/helpers/pagination.php

I have tried every override class name known on these forums and I have spent a long time trying to get this to work.

Any ideas? It's sorta silly to spend so much on a simple pagination, but I want it to be a certain way, so that it appears exactly like what's in the file manager. Thank you.

emirii
 
emirii replied on at Permalink Best Answer Reply
emirii
Literally right after I posted this, I found a solution.

For those who don't want their pagination to be wrapped in <span>, all you have to do is change your $paginator->getPages().

You just insert whatever you want the wrapper to be in the $paginator->getPages('li')

$pageListing = $paginator->getPages('li');
 $pageListing = $paginator->getPages('span');
 $pageListing = $paginator->getPages('div');


Sigh :P
jordanlev replied on at Permalink Reply
jordanlev
Glad you figured it out. FYI, I have a blog post about this too (has a few extra details that might be of interest to people):http://concrete5tricks.com/blog/pagination-with-the-page-list-class...
emirii replied on at Permalink Reply
emirii
Yes! Thank you for posting your blog, I have added it to my favorites :)

And also try to integrate my searches into functions so that my view page isn't a mile long! LOL