在使用{pagination_links}标记时,我似乎在添加/ index /的新闻部分中出现分页问题.
我的新闻页面有新闻/索引的模板路径,帖子模板是新闻/帖子.
我使用结构与新闻/帖子作为附加到新闻/索引页面的列表,添加|编辑帖子.
如果你看看有问题的网站:http://www.wilbyltd.co.uk/news滚动到底部你会看到分页,如果你点击1 | 2 | 3或下一页或最后一页你将获取请求的页面,网址看起来像/ news/P6,但是现在在下一页上如果你再次进入分页并点击其中任何一个,你会发现它已经回到第1页并且网址有/ news/index它似乎是在links/index /之间追加或插入.
我已尝试在频道条目中使用paginate_base ="",但添加一个基础会阻止类别进行分页,类别还会在链接之间添加/ index /吗?
我曾想过攻击核心,但似乎是错误的方法,以防万一它得到更新.
我已经尝试.htaccess删除索引,但是没有用.
RewriteRule ^/news/index/(.+)$ /news/$1 [L]
Run Code Online (Sandbox Code Playgroud)
我已经查看了index.php的配置,该配置已经被取消并且已经使用了.htaccess.
我查看了频道设置.
我试过动态="关闭"|动态="开启"
我理解新闻/索引它是页面查看的正确路径,但如果是这种情况,为什么它不接受分页?
如果有人能够对此有所了解,我将非常感激,这里是包含分页的代码.
{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}" …Run Code Online (Sandbox Code Playgroud)