Forums » Alpha Release Candidate

No pagination on Item/Browse page or in Admin area

(7 posts)
  • Started 11 months ago by niceoutfit
  • Latest reply from davelester
  • This topic is closed
  • This topic is not a support question

Tags:

  1. 11 months ago # | |

    I've been working on a site:

    http://www.catawbariverdocs.com

    and everything has gone smooth until I started uploading "Items". Once I reached more then 10 it looks as if there is supposed to be pagination but it is not showing up. This seems to be an issue on the front end and within the admin area. I do get pagination when I perform a search and the results are greater then 10 though.

    If you guys could let me know a fix or just give me a patch to fix it for now that would be a great help.

    I tried different themes to make sure it wasn't something I did in the theme and it was broken in all themes.

    thanks,
    Ben

  2. 11 months ago # | |

    Hey Ben,

    The site looks great! Keep us posted on any future sites you build using Omeka.

    It looks like you've modified the Thanks, Roy theme - which calls the pagination_links function on line 10. Is that correct? Make sure you're echoing the function. Have you changed the number of items that display per page? There is a variable in the config.ini file, inside the application/config/ folder that changes the default value for your entire install, which can be overridden by the $per_page variable in the pagination_links function. Here is the pag function..

    pagination_links( $num_links = 5, $menu = null, $page = null, $per_page = null, $total_results=null, $link=null, $page_query = null );

    By default, 10 items should be displayed per item browse page.

    Best,
    Dave Lester

  3. 11 months ago # | |

    Ben,
    Your site looks awesome!

    When are you launching? We'd like to showcase it on the Omeka blog when you're ready for the world to see it, and the pagination issue is resolved.

    We are really impressed with your design, and hope that at some point once you've launched the exhibit that you would share your new theme. It will be credited to you in the theme directory with a link to your homepage.

    Thanks,
    Sheila

  4. 10 months ago # | |

    Dave,

    I took a little time away from the site but am wanting to get the issue resolved. Below is the code pulled from the browse.php file located in the items folder (Thanks Roy theme).

    <div class="pagination top"><?php echo pagination_links(5, null, null, 5, null, null, null ); ?></div>

    I found the actual function that it calls and that remains unmodified (same as it was from install). I did change the $per_page variable in the config.ini file as a temporary fix to display everything, but once we get all of the files in there, that won't be a very efficient option for us.

    This issue seems to be the same in the admin area as well. Here is a screenshot of the admin area. There are actually 30 items but I can choose only 10 because there is no pagination:

    http://www.niceoutfit.us/sandbox/random/omeka_nopage.jpg

    If you need more access or code samples let me know and I'll be happy to give you access to things through email.

    thanks a bunch,
    Ben

  5. 10 months ago # | |

    Hi Ben,

    You're the only person who is experiencing this problem, so at this time I'm assuming it's a problem with Omeka conflicting with some type of server setting. Could you create a php file with the following code,

    <?php phpinfo(); ?>

    and post the link? Is anything else a little quirky or not working? Additionally, you're running RC3, correct?

    One thing I've noticed is that on your admin page, you're pulling in an incorrect number of items from your archive. That's likely the cause of all your pagination problems. Here's an example of what pagination should look like on the admin side (http://chnm.gmu.edu/staff/dave/files/omeka_pagination.png), including pulling in the correct number of items. If I hear back on your server information, then maybe we can begin to tackle why that's occurring in the first place.

    I believe the pagination_links function still needs some tweaking to work properly, and I'll look closer to improve that, or perhaps offer a simplified version that's easier to use rather than passing so many null values.

    Best of luck,
    Dave Lester

  6. 9 months ago # | |

    After upgrading the RC4 this problem has been fixed. Thanks!

  7. terrific news!

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.