← Back to Content Plus Support
info21575
How to add the custom pagination for the portfolio? {{ this.page.baseFileName|page({ (pageParam): page }) }} this is not making any links.
gergo85
Hi,
Have you tried the following pagination code? https://github.com/rainlab/blog-plugin/blob/master/components/posts/default.htm#L24
info21575
I am using this for the Porfolio List. It is not making link ?page=2 in the URL.
Below is the code {% set posts = SELF.posts %}
{% for post in posts %}
{% else %}
{{ noPostsMessage }}
{% endfor %}
{% if posts.lastPage > 1 %}
{% endif %}
gergo85
Sorry for delay. The pagination of RainLab Blog is works with this plugin:
- Insert the code from the RainLab Blog posts component.
- Add the :page to the url of the portolio list page (eg.: /portfolios/:page).
- Remove the {{ posts.render|raw }} code from the portfoliolist component.
Last updated
1-4 of 4