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 Issues

November 11, 2010 1:20pm

Subscribe [4]
  • #1 / Nov 11, 2010 1:20pm

    futuristonline

    43 posts

    Hi

    Having some issues with Pagination at the moment. Have used the code from the docs to put the code in:

    {paginate}
    Page {current_page} of {total_pages} pages {pagination_links}
    {/paginate}

    Also have dynamic=“off” and pagination=“bottom”

    So on the page, I get the pagination at the bottom which is okay. When I click on the link for page 2, I get /P3/ at the end of the URL, and nothing shows underneath. Am I missing something?

    Do I need an article template / archive templates etc like what you would use for weblog articles?

    Thanks for you help.

    Regards

    Steve

  • #2 / Nov 11, 2010 7:07pm

    Sue Crocker

    26054 posts

    Hi, Steve. How many entries are you setting for pagination?

    As an example, if you go to http://eehowto.com/P10 you’ll see that I have P10 in my url structure, I paginate at 10 entries. So in other words, that’s expected behavior.

    What’s NOT expected behavior is a blank template. Which version/build of EE1.x are you using? You can see that at the bottom of any control panel page.

    Is there an .htaccess in the mix?

  • #3 / Nov 12, 2010 5:33am

    futuristonline

    43 posts

    Hi Sue,

    The template I get back basically does not have the continuation of the lists. I have set to P3 to test the pagination but plan on expanding this to 10 when the site goes live.

    Version 1.6.9

    Yeah - there is an .htaccess in the mix. I have tired taking that out, but still get the same results.

    My .htaccess looks like this:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    Any thoughts?

    Regards

    Steve

  • #4 / Nov 12, 2010 10:09am

    Ingmar

    29245 posts

    Pagination will not work with dynamic=“off”. Please try it without.

  • #5 / Nov 12, 2010 11:11am

    futuristonline

    43 posts

    Hi Ingmar,

    Have switched dynamic=“off” and now I loose all the posings and don’t get any of them.

    Code is

    <div id="content">
    {exp:weblog:entries weblog="index" dynamic="on" rdf="off" sticky="yes" limit="1" disable="trackbacks"}
    <h1>{title}</h1>
    {fo_index__summary}
    {/exp:weblog:entries}
    
    {exp:weblog:entries weblog="lb_foundations_projects" dynamic="on" limit="3" paginate="bottom" orderby="date"}
       <div id="project_space">
             <div id="project_images">
                {related_entries id="fo_foundations_projects__image_1"}
                   {image_url}</span>
                {/related_entries}
    
                {related_entries id="fo_foundations_projects__image_2"}
                   {image_url}</span>
                {/related_entries}
             </div>
    
          <h2>{title}</h2>
    <p>         Client: {fo_foundations_projects__client}<br />
             Scope of work: {fo_foundations_projects__scope}<br />
       </div><br />
    {paginate}<br />
    Page {current_page} of {total_pages} pages {pagination_links}<br />
    {/paginate}<br />
    {/exp:weblog:entries}<br />
    </div>

    Any ideas?

    Regards

    Steve

  • #6 / Nov 12, 2010 4:58pm

    Lisa Wess

    20502 posts

    Turn dynamic back off and try with paginate=“bottom”, not pagination=“bottom”. =)

  • #7 / Nov 15, 2010 4:49pm

    futuristonline

    43 posts

    Paginate is already set e.g.

    paginate=“bottom” and dynamic=“off”

    Any further ideas?

    Regards

    Steve

  • #8 / Nov 16, 2010 4:51am

    John Henry Donovan

    12339 posts

    Steve,

    Have you got a link to the page in question?

  • #9 / Nov 16, 2010 11:49am

    futuristonline

    43 posts

    Hi John,

    Page where this is - http://www.lbcivils.co.uk/lb_foundations/projects/

    Site is still work in progress 😊

    Regards

    Steve

  • #10 / Nov 16, 2010 12:05pm

    futuristonline

    43 posts

    Hi

    Okay, got it working now - added in the paginate_base=“FOO” tag in the weblog:entries line and it works.

    Now, when you go to the projects page, I get no text above the project listing (which there shouldnt be anyway!), but when you click through the pagination links at the bottom, I get text from another page showing above.

    Help!

    Regards

    Steve

  • #11 / Nov 16, 2010 5:52pm

    Ingmar

    29245 posts

    Pagination seems to be working fine for me. I suspect you’re referring to this code block:

    {exp:weblog:entries weblog="index" dynamic="on" rdf="off" sticky="yes" limit="1" disable="trackbacks"}
    <h1>{title}</h1>
    {fo_index__summary}
    {/exp:weblog:entries}

    Just remove it if you don’t want or need it, wouldn’t that work?

  • #12 / Nov 16, 2010 6:20pm

    futuristonline

    43 posts

    Hi Ingmar

    Yay! That helped.

    Sometimes its another persons point of view and eyes that help.

    Thanks to all at EE for their help… until next time!

    Regards

    Steve

  • #13 / Nov 17, 2010 9:15am

    Sue Crocker

    26054 posts

    Glad things are all working again. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases