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 not working

March 03, 2008 7:41pm

Subscribe [2]
  • #1 / Mar 03, 2008 7:41pm

    dlife

    6 posts

    Hello,

    I would really appreciate some help with this problem.  The pagination links on only one page of our site have stopped working.  The links appear on the page but do not lead to the additional content.

    This is the page that the pagination has stopped working on:
    http://escondidoexperience.com/site/news

    Here is the code for this page as well

    <div id=“yui-main”>
              <div class=‘yui-b’ id=‘sub-col’>   
                  <div id=“sub-top”>

    News

                  </div>         
                  <div id=“sub-ft”><div id=“sub-bg”>
                    {exp:weblog:entries orderby="date" limit="6" weblog="default_site" disable="categories|member_data|trackbacks" dynamic="off"}
                    <div class=‘news-entry’>

    {title}

                    <div class=“news-entry-date”>{entry_date format="%M %d, %Y"}</div>
                    <div class=‘news-entry-summary’>{summary}</div>
                    <div class=‘news-entry-more’>MORE</div>
                    </div>
                 


      {paginate}
                    <div id=‘paginate’>
                    {pagination_links}
                    </div>
                    {/paginate}


        {/exp:weblog:entries}
                  </div></div>
              </div>
            </div>

    {embed="embeds/footer"}

    Thank You for your time!

  • #2 / Mar 03, 2008 7:49pm

    Sue Crocker

    26054 posts

    Do you actually have more than 6 articles in that weblog that meet your conditions? If you change limit to limit=“2”, do you get pagination then?

  • #3 / Mar 03, 2008 7:55pm

    dlife

    6 posts

    I changed the value to 2 and there is not any pagination. 
    There is a problem with the links created.

    When you click on “1” the url becomes http://escondidoexperience.com/site/news/P2/
    but the additional content is not displayed.

    I have a total of 14 news stories that should be paginated.

  • #4 / Mar 03, 2008 7:59pm

    Sue Crocker

    26054 posts

    Then you do have pagination, but the links aren’t correct.. different issue.

    Take off dynamic=“off” - that may be why you aren’t getting pagination.

  • #5 / Mar 03, 2008 8:00pm

    dlife

    6 posts

    Also, it doesnt look like the links generated go anywhere.  Each time you click on a pagination link, “1 2”  it keep adding P7 to the url like this: http://escondidoexperience.com/site/news/P7/P7/P7/

  • #6 / Mar 03, 2008 8:02pm

    dlife

    6 posts

    that worked!  you are aweseome thank you for the quick reply.  can you tell me what dynamic=“off” is used for then?

  • #7 / Mar 03, 2008 8:04pm

    Sue Crocker

    26054 posts

    Dyamic=“off” is used for the times when you *don’t* want whatever is in the URL to affect your page. In the case of Pagination, you need to have EE “see” the URL to determine where things are at.

  • #8 / Mar 03, 2008 8:06pm

    dlife

    6 posts

    Ok well thanks again for the fast reply.  Client happy. 😊

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

ExpressionEngine News!

#eecms, #events, #releases