Skip to content

Question: Understanding section.entry-type? #60

@phillipsandoveracademy

Description

@phillipsandoveracademy

I am running 5.7.2.1 and trying to understand what section.entry-type is doing in the collection code.

'section' => ['page.oneColumn','page.twoColumn', 'news.default'], //section handle + entry type handle

At top we can specify the specific sections and entry-types.

->criteria(function(\craft\elements\db\EntryQuery $query) { return $query->section(['page','news']); }),

At bottom, the query runs based on the sections array.

I have found in the entries sent to Typesense, a section entry-type not specified in the top section array. Is this an error? or expected behavior?

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions