News & Newsletter

Simple news (or blog) and newsletter plugin with statistics, mail logs, components and export & import.

← Back to News & Newsletter Support

I've searched through the code but cannot find this.

Could you please explain how or where I can change the paging markup code?

<ul class="pagination">
 <li><a href="/latest-news/2?page=1" rel="prev">«</a></li>
 <li><a href="/latest-news/2?page=1">1</a></li>
 <li class="active"><span>2</span></li>
 <li><a href="/latest-news/2?page=3">3</a></li>
 <li><a href="/latest-news/2?page=4">4</a></li>
 <li><a href="/latest-news/2?page=3" rel="next">»</a></li>
</ul>

Last updated

Hi,

Please try this solution: https://github.com/rainlab/blog-plugin/blob/master/components/posts/default.htm#L24

Last updated

Thank you very much for the reply and suggestion gergo85, that was exactly what I needed.

Do you have a little example from the code markup? Copying the code from the blog plugin isn't helpful and neither is {{ post.prev.slug }}. Any help would be great.

Use the {{ post.prev().slug }} format. I will update the plugin tomorrow with this example.

Oke so the pagination ul appears on the blog page when the number of blog posts is more then PostsPerPage, however, the links behind the 1 and 2 don't work. What am I doing wrong here?

FIXED: For pagaination to work I had to set the Url to : /blog/:page?/:slug

Last updated

1-6 of 6