Content Plus

Complete solution for Blog, News, Portfolio, Slideshow, Testimonials in one plugin! Support many RainLab plugins.

Back to Content Plus Support

info21575
info21575

How to add the custom pagination for the portfolio? {{ this.page.baseFileName|page({ (pageParam): page }) }} this is not making any links.

gergo85
info21575
info21575

I am using this for the Porfolio List. It is not making link ?page=2 in the URL.

{{ page }}

Below is the code {% set posts = SELF.posts %}

{% for post in posts %}
{{ post.title }}
{% else %}
{{ noPostsMessage }}
{% endfor %}

{% if posts.lastPage > 1 %}

{% endif %}

gergo85
gergo85

Sorry for delay. The pagination of RainLab Blog is works with this plugin:

  1. Insert the code from the RainLab Blog posts component.
  2. Add the :page to the url of the portolio list page (eg.: /portfolios/:page).
  3. Remove the {{ posts.render|raw }} code from the portfoliolist component.

Last updated

1-4 of 4