ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Outputting "Displaying X to XX entries"

February 26, 2011 8:06pm

Subscribe [3]
  • #1 / Feb 26, 2011 8:06pm

    municipal

    165 posts

    What combination of EE tag wizardry will output the following on a multiple entry page:

    First page: “Displaying 1 to 50”
    Second page: “Displaying 51 to 100”
    Third page: “Displaying 101 to 150”
    etc. etc.

    Scenario: You’ve got 500 entries, you’re displaying 50 per page with pagination at the bottom. At the top of the page, I need to remind the person of how many records they are viewing/have viewed as they make their way through the pages.

    I’ve tried everything I can think of with every variable I could think of…

  • #2 / Feb 28, 2011 2:37am

    John Henry Donovan

    12339 posts

    municipla,

    You can’t do this out of the box I’m afraid. There is a solution using a plugin here though

  • #3 / Feb 28, 2011 3:14am

    Mark Bowen

    12637 posts

    Here’s a link to the plugin as that post doesn’t link to it, just shows how to go about doing it.

    Best wishes,

    Mark

  • #4 / Feb 28, 2011 3:15am

    John Henry Donovan

    12339 posts

    Thanks Mark. Moving this thread to the CodeShare Corner as more appropriate there

  • #5 / Feb 28, 2011 4:08am

    municipal

    165 posts

    Thanks guys…unfortunately, that’s for EE2 (this was posted in the EE1 forum before being exiled to the Code Share Corner).

  • #6 / Feb 28, 2011 4:27am

    Mark Bowen

    12637 posts

    Sorry for that. I didn’t even see that it was in the 1.x forum.

    I’ve not used them but I’m wondering if either of these might help in that case :

    Simple Math

    or

    Math Plus

    I’m not sure if they work with variables or not but it might be worth giving them a go.

    Best wishes,

    Mark

  • #7 / Feb 28, 2011 6:10am

    municipal

    165 posts

    I was hoping for a solution that didn’t cost anything since this is such a somewhat unimportant but helpful addition. The funny thing is that reading about one of those plugins you posted about led me to an earlier post of yours Mark with another math-related plugin. I just can’t figure out what it does 😊

    Plugin:// Mathematical operations

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases