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.

Year/Month Archive Pagination

December 30, 2010 6:11am

Subscribe [3]
  • #1 / Dec 30, 2010 6:11am

    Benjamin Riege

    12 posts

    Hi there,

    is there any elegant way to paginate through entries with urls like:

    <a href="http://www.domain.com/section/yyyy/mm/{url_title}">http://www.domain.com/section/yyyy/mm/{url_title}</a>

    ?

    Regards
    RSIDUS

  • #2 / Dec 30, 2010 10:04am

    Sue Crocker

    26054 posts

    Do you mean create links that look like that?

  • #3 / Dec 30, 2010 10:19am

    Benjamin Riege

    12 posts

    Hi Sue,

    I already have channel entries with this url structure. But I can’t paginate with the traditional next/previous entry linking method because of missing year and month in {path='SITE_INDEX'}.

    Regards
    RSIDUS

  • #4 / Dec 30, 2010 3:06pm

    Ingmar

    29245 posts

    What version and build of EE are you using? Can you show us a little more of your code?

  • #5 / Dec 30, 2010 3:20pm

    Benjamin Riege

    12 posts

    2.1.3 Build 20101220

    {exp:channel:next_entry channel="press_releases_com" status="not closed"}
        <a href="http://{path=media/pr}">{title}</a>
    </exp:channel:next_entry}
  • #6 / Dec 30, 2010 5:04pm

    Ingmar

    29245 posts

    No, I’m afraid there is no pagination like that by default. You might be able to build something like it, but it would probably require a few lines of custom code. Let me know if you want to look into this and I can move this thread to the CodeShare Corner for additional community support.

  • #7 / Dec 30, 2010 5:12pm

    Benjamin Riege

    12 posts

    A few lines of custom code sounds good enough to go on. Yes, do it so 😊

    Thanks!

  • #8 / Dec 30, 2010 5:31pm

    Ingmar

    29245 posts

    Moving as per request.

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

ExpressionEngine News!

#eecms, #events, #releases