I seem to have a pagination problem in the news section adding / index / when using the {pagination_links} tag.
My news page has a news / index template, and the message template has news / messages.
I use the news / publication structure as a list attached to the news / index page to add | edit posts.
If you look at the website: http://www.wilbyltd.co.uk/news scroll down, you will see a pagination if you click either 1 | 2 | 3 or on the next page or on the last page you get the requested page, the URL looks like / news / P 6, however now on this next page, if you go back to the pagination and click on any of them, you will notice that it returned to page 1 and the url has / news / index, it seems to add / insert between / index / links.
I tried paginate_base = "" in the channel record, but adding a base stops the categories from working pagination, do the categories also add / index / between links?
I thought about cracking the kernel, but it seems like the wrong approach just in case when it is ever updated.
I tried .htaccess to remove an index that did not work.
RewriteRule ^/news/index/(.+)$ /news/$1 [L]
I looked at the configuration for index.php, which was removed, and .htaccess was used.
I looked at the channel settings.
I tried dynamic = "off" | dynamic = "on"
I understand that news / indexes its the right way to view the page, but if so, why doesn't it choose pagination?
If anyone could shed light on this, I would be very grateful, here is the code that contains the pagination.
{exp:channel:entries channel="posts" limit="6" dynamic="on" paginate="bottom" orderby="entry_date" sort="desc"} <div class="news-snippet span9"> <a href="{url_title_path="> <div class="date-published textalign-center"> <span class="day">{entry_date format="%d"}</span><span class="day-suffix">{entry_date format="%S"}</span> <span class="month">{entry_date format="%F"}</span> </div> </a> <div class="news-snippet-body pull-right"> <div class="news-snippet-top-shadow"> <div class="news-snippet-bottom-shadow"> <a href="{url_title_path="> <div class="news-snippet-content clearfix"> <div class="title"> <h3>{title}</h3> </div> {if news_feature_image} <div class="clearfix image"> <img src="{news_feature_image}" /> </div> {/if} <p>{news_short_description}</p> </div><!-- end content --> </a> <div class="news-snippet-options clearfix"> <div class="news-tags pull-left"> <i class="icon-tags"></i> {exp:tagger:tags entry_id="{entry_id}" } <a href="/news/tags/{tagger:urlsafe_tagname}" title="{tagger:tag_name}"><span class="label label-inverse tags">{tagger:tag_name}</span></a> {/exp:tagger:tags} </div> <div class="social-share pull-right textalign-center"> <i class="icon-random"></i> <a class="addthis_button"url="{url_title_path="title="{title}" href="http://www.addthis.com/bookmark.php?v=300&pubid=ra-5141a60a37fa6e4e">Share</a> </div> </div> </div><!-- end bottom-shadow --> </div><!-- end top-shadow --> </div><!-- end snippet-body --> </div><!-- end news-snippet --> {paginate} <div class="clearfix paginate"> {pagination_links} <div class="total-pages pull-left"> <p>Page {current_page} of {total_pages} pages</p> </div> <div class="pagination pagination-mini pull-right"> <ul> {first_page} <li><a href="{pagination_url}" class="page-first">First Page</a></li> {/first_page} {previous_page} <li><a href="{pagination_url}" class="page-previous">Previous Page</a></li> {/previous_page} {page} <li><a href="{pagination_url}" class="page-{pagination_page_number} {if current_page}active{/if}">{pagination_page_number}</a></li> {/page} {next_page} <li><a href="{pagination_url}" class="page-next">Next Page</a></li> {/next_page} {last_page} <li><a href="{pagination_url}" class="page-last">Last Page</a></li> {/last_page} </ul> </div> {/pagination_links} </div><!-- end clearfix --> {/paginate} {/exp:channel:entries}
I also had this on the Ellis Labs forum for a couple of weeks: http://ellislab.com/forums/viewthread/237601/