This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

PolloZen
PolloZen

I'm using Rain Lab Post in October CMS. I have no problem using the blogPost component and get post from a single category. E.g. This is a partial where show the last 5 post from a category

[blogPosts]
pageNumber = "{{ :page }}"
categoryFilter = "{{ slug }}"
postsPerPage = 5
noPostsMessage = "No news in this category"
sortOrder = "published_at desc"
categoryPage = 404
postPage = "singlePost"
==
<li> <a href="#">{{category.name}}</a>
<ul class="drop-down">
    <li class="validation">
        <h2 class="title">{{category.name}}</h2>
    </li>
    {% for post in posts %}
    <li>
        {% for image in post.featured_images|slice(0,1) %}
            <a href="{{ post.url }}"><img src="{{ image.path }}" alt=""></a>
        {% endfor %}
        <h3><a href="{{ post.url }}">{{post.title}}</a></h3>
    </li>
    {% endfor %}
</ul>
</li>

But now, I'm working in the home page and want to display the last post from all categories. 1 per category, 5 categories, combined.

Somebody knows how to do this?

Thanks in advanced.

PolloZen

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.