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.

Pagination issue for author pages

March 31, 2013 8:04pm

Subscribe [1]
  • #1 / Mar 31, 2013 8:04pm

    kenpom

    1 posts

    Hi,

    I’m having a problem getting pagination working for author pages. The main author page works fine, and the pagination links are constructed as I would expect.

    Author link: http://kenpom.com/blog/index.php/weblog/author/2/
    Pagination link: http://kenpom.com/blog/index.php/weblog/author/2/P3

    But the pagination link shows the same entries as the original link. For the main blog channel pagination works as expected. Any idea what could be going wrong? I’m using EE 2.5.

    Thanks,
    Ken

  • #2 / Mar 31, 2013 10:47pm

    Bhashkar Yadav

    727 posts

    Hi Ken,

    Are you making the pagination link manually?

    In the pagination link, you would like to show 3 entries of the first page but the author link is showing more than 3 entries. To get working this pagination, you need to pass the limit parameter with value 3 in the channel entry tag.

  • #3 / Apr 01, 2013 2:51am

    kenpom

    1 posts

    Hi Bashkar,

    Right now I’m showing ten entries because that’s more than this particular author has written and it gets me around the problem. Here’s the code I have for pagination…

    {exp:channel:entries channel="{master_channel_name}" dynamic="no" author_id="{segment_3}" orderby="date" sort="desc" limit="3"} 
    
    <h2 class="title"><a href="http://{title_permalink=weblog/index}">{title}</a></h2>
    {date_heading}
    <h3 class="date">by <a href="http://{path=weblog/author/{segment_3}}">{author}</a> on {entry_date format=' %l, %F %j, %Y '}</h3>
    
    {/date_heading}
    
    {body}
    
    {paginate}
    
    Page {current_page} of {total_pages} pages {pagination_links}
    
    {/paginate}
    
    {/exp:channel:entries}
  • #4 / Apr 01, 2013 12:07pm

    Bhashkar Yadav

    727 posts

    Could you check by removing the parameter dynamic=“no”.

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

ExpressionEngine News!

#eecms, #events, #releases