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

01garant62848
01garant62848

Hi! Recently I've just started to test October CMS. As for starting point I've installed this theme: https://octobercms.com/theme/dodojayaraditya-photographer-colorlib Really, I don't know is a problem related to this theme, but the problem is with a filterable blog categories.

I've created two blog categories: "Photos" and "Videos", created several posts and assigned them accordingly. Featured images of two categories are displayed fine In 'Home' and 'Blog' pages but "Videos" category doesn't appear at all in 'Portfolio' page. If 'All' filter is active, the posts from second category are not displayed. The same, if I click on a "Videos" filter button - the blank page is shown. They are not loaded.

This section looks like:

<div class="portfolio-section">

    <ul class="portfolio-filter controls text-center">
        <li class="control" data-filter="all">All</li>
        {% for category in categories %}
        <li {% if category.slug == currentCategorySlug %} class="active control" {% endif %} data-filter=".{{ category.name }}">{{ category.name }}</li>
        {% endfor %}
    </ul>

    <div class="row portfolio-gallery m-0">
        {% for post in posts %}
        {% for image in post.featured_images %}
        {% for category in post.categories %}
        <div class="mix col-xl-2 col-md-3 col-sm-4 col-6 p-0 {{ category.name }}">
            <a href="{{ image.path }}" class="portfolio-item img-popup set-bg" data-setbg="{{ image.path }}"></a>
        </div>
        {% endfor %}
        {% endfor %}
        {% endfor %}
    </div>
</div>

Where is the problem and how it could be fixed? Thank you!

1-1 of 1

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