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 works when using /group/template, but not when using /

January 31, 2013 9:36am

Subscribe [2]
  • #1 / Jan 31, 2013 9:36am

    jelle

    95 posts

    I’m breaking my head over this one. maybe it’s pretty simple, and am i just being blind. however, something is not going right with pagination. On the homepage we want to display general info, a content slider, and the lates 5 projects, with a pagination for the older projects.

    All things are parsed nicely, except when it comes to the pagination. When i call the homepage(http://www.domain.com) the pagination is not working. I see the pagination buttons, but the items are allways the same, the latest 5. However, if i call http://www.domain.com/site/index, everything works the way it should.

    {exp:channel:entries channel='algemene_teksten_nl' limit='1' dynamic="no" url_title='home'}
    {embed='_inc/.header' pagetitle='{algemene_teksten_nl_browsertitle}' pagedescription='{algemene_teksten_nl_description}'
    }
    {/exp:channel:entries}
    {embed="_inc/.home-boxes"}

    And the embed is

    {exp:channel:entries channel="projecten_nl|boxes_nl" status="not niet-op-home" limit="5" paginate="bottom" paginate_base="/" dynamic="no"}
    <h2>{if channel_short_name == "projecten_nl"}{box_title}{if channel_short_name != "projecten_nl"}{title}{/if}</h2>
    <p>{paginate}<br />
                {pagination_links}<br />
                    <ul class="pagination"><br />
                        {page}<br />
                            <li{if current_page} class="current"{/if}><a href="http://{pagination_url}">{pagination_page_number}</a></li><br />
                        {/page}<br />
                    </ul><br />
                {/pagination_links}<br />
            {/paginate}<br />
    {/exp:channel:entries}

    And oh yeah, i’m on 2.5.5…

     

  • #2 / Feb 01, 2013 7:48am

    jelle

    95 posts

    When i trim all eces awa, i’m left with this and this does not work either. only if i approach http://www.domain.com/site/index the pagination works

    {exp:channel:entries channel="projecten_nl|boxes_nl" status="not niet-op-home" limit="5" paginate="bottom"}
    {title}
    {paginate}
    {pagination_links}
      <ul class=“pagination”>
      {page}
      <li{if current_page} class=“current”{/if}>{pagination_page_number}</li>
      {/page}
      </ul>
    {/pagination_links}
    {/paginate}
    {/exp:channel:entries}

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

ExpressionEngine News!

#eecms, #events, #releases