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 no longer working

March 29, 2011 12:49pm

Subscribe [4]
  • #1 / Mar 29, 2011 12:49pm

    PhireGuys

    525 posts

    I’m not completely sure why our pagination stopped working but I have a feeling it has to do with url segments?

    This is our url: http://site.com/company/news/P20

    This is the code for the page:

    {exp:channel:entries channel="news_events" search:ne_type="News" status="open" orderby="date" sort="desc" limit="10" paginate="bottom"}
    {title}
    {/exp:channel:entries}

    Pagination shows up on http://site.com/company/news/ and shows 4 pages.  When we click a page, we get no results for entries.

    Our URL above is not using a template group, company is the template, and news is used within to define what to show (via IF statements).

    We had this working fine, through the process of updating other things, this stopped working and I’m not sure why.

    Also, expression engine is recognizing this as a pagination page.  I’m using md_detect_page_type and it is returning TRUE for it being a pagination page.

    Edit:  I have two sites running with the same code.  One site with the same exact template works with the paginate, while the other doesn’t.  The only difference between the two test sites are the servers and possibly the entries for the channel within the database.  The site we need to have working isn’t working.

  • #2 / Mar 29, 2011 4:25pm

    Jason Ferrell

    33 posts

    Have you tried adding the site param to the non-working site?

    Example: site=“site_short_name”

    Also, where is your template code for the paging info, I don’t see it listed in the template code above?

  • #3 / Mar 29, 2011 5:13pm

    PhireGuys

    525 posts

    Hey Jason, thanks for replying.

    I haven’t put any site info, I’m not using MSM and site is not a parameter for the channel:entries tag so I’m not sure where you mean it should be.

    My paginate code is standard:

    {paginate}
        <br class="clearit" >
        <div class="panel_name">Page {current_page} of {total_pages} pages {pagination_links}</div>
    {/paginate}

    Also, I do have enough entries to warrant pagination.

  • #4 / Mar 29, 2011 5:21pm

    Jason Ferrell

    33 posts

    My apologies, I assumed you had MSM because you stated you had two sites.

    Here are some more things to check:
    1.) Did you try clearing all EE caches?
    2.) Have you verified you have over 10 entries that have the custom field value of “News” for the custom field ne_type?
    3.) Have you tried specifying dynamic=“off”?

  • #5 / Mar 29, 2011 6:15pm

    PhireGuys

    525 posts

    Thanks for the reply again, I appreciate the help.

    I just tried clearing the cache, didn’t fix it.
    I’ve verified there are more than 10 entries.  I change the limit to 100 and I see maybe 40+ entries.
    I tried toggling dynamic=“off” and nothing changed either.

    This is really stumping me…

  • #6 / Mar 29, 2011 6:35pm

    Jason Ferrell

    33 posts

    Ok, a couple other things to check:

    1.) Make sure you don’t have disable=“pagination” in your exp:channel:entries template code.
    2.) Try taking out the search param and see if paging works.
    3.) Is the site accessible for me to view, I’d be happy to give it a look if you want. Just PM me the log in details, etc.

    - Jason

  • #7 / Mar 30, 2011 10:00am

    Sue Crocker

    26054 posts

    Thanks for the assist, Jason.

    Phire_SK - Just out of curiosity, is there a reason you aren’t using a template group?

    Are you using strict urls in both sites?

    http://ellislab.com/expressionengine/user-guide/cp/design/templates/global_template_preferences.html

  • #8 / Mar 30, 2011 10:23am

    PhireGuys

    525 posts

    @Jason

    disable=“pagination” is not set.  I took off the search param and still get nothing on extra pages.  The site is behind a VPN so unfortunately I can’t get you into it.

    @Sue

    We never use template groups in our URLs for the default template.  This makes our URLs shorter and is a great feature of EE in my opinion.  I could make ‘Company’ its own template group and then split up each of the sections within it, but at this point I can’t.  The section kept growing…

    I checked and strict URL is set to No on both sites.

    It is just so strange that if I swap the template information the newer server just doesn’t work while the older one does.  The site is an exact copy although we’ve been developing on this new server for maybe a week.

  • #9 / Mar 30, 2011 10:44am

    PhireGuys

    525 posts

    Looks like it was an issue with Dynamic=”“.  What is strange is that I’m looking at the code on the old server and it does not have dynamic=“no” but the new one requires it.

    Btw, is it dynamic=“no” or is it dynamic=“off”?  I’ve always used ‘off’ but looking at the docs it says to use ‘no’. Do both work?

    Thanks Jason for the help 😊.

  • #10 / Mar 30, 2011 11:55am

    Jason Ferrell

    33 posts

    My pleasure, for EE 2 it is dynamic=“no” (I’m still trying to get use to the new syntax as well), http://ellislab.com/expressionengine/user-guide/modules/channel/parameters.html#par_dynamic

  • #11 / Mar 31, 2011 12:43pm

    Lisa Wess

    20502 posts

    Yep, it was changed in EE 2 for consistency with other parameters.  I still type “off” all the time by accident.

    So at this point, you’re up and running, Phire_SK?

  • #12 / Mar 31, 2011 1:01pm

    PhireGuys

    525 posts

    Yeah, I’m all set.  Thanks for the assistance.

  • #13 / Apr 01, 2011 12:37am

    John Henry Donovan

    12339 posts

    Greta stuff 😊 Feel free as always to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases