Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Gantry

[gantry] Contentarray particle renders nothing when more than one category given

Started by Rolf 8 years ago · 1 replies · 1009 views
8 years ago

Dear all,

with the latest Gantry 5 (Helium theme) I'm trying to use the basic contentarray particle on the home page, however, if I enter more than one category in the "Categories" field, it just disappears (on the frontend) and nothing is shown at all.
One category displays fine, any one of those I have as long as only one single category is entered. Two or more - nothing.

I can't even figure where to start searching for errors.

Any ideas? Much appreciated!

PS. It just renders empty space:
<section id="g-container-main" class="g-wrapper">
<div class="g-container"> <div class="g-grid">

HTML
        <div class="g-block size-100">
             <main id="g-mainbar">
                                        <div class="g-grid">                        

        <div class="g-block size-100">
             <div id="contentarray-6519-particle" class="g-content g-particle">            <div class="g-content-array g-grav-pages">

            </div>
            </div>
        </div>
            </div>

    </main>
        </div>
            </div>
    </div>

    </section>
8 years ago

By now, I found out that if you enter more than one category, the contentarray particle only displays articles that are in BOTH categories each, not articles FROM both categories.

E.g. Contentarray set to display categories blog1, blog2
Will display only articles that have

YAML
taxonomy:
    category:
        - blog1
        - blog2

Is this intended behavior?
Is there any easy way to change it to an OR regarding categories?

Suggested topics

Topic Participants Replies Views Activity
Gantry · by Chris, 11 months ago
1 172 11 months ago
Gantry · by Sam, 1 year ago
7 220 1 year ago
Gantry · by Dima, 2 years ago
2 75 2 years ago
Gantry · by KimTaeWoong, 9 years ago
2 1883 3 years ago
Gantry · by stani, 6 years ago
2 831 3 years ago