Tailor records not found when using tailor component

OC 4.1.16

I created simpliest tailor from examle below. When I place component in page using {% component “collection” %} i got “Records not found”. Records are added and published.

uuid: b0be8e76-c715-44eb-8d43-2898f92009fa
handle: MyEntry
type: entry
name: Entry
drafts: false

primaryNavigation:
    label: Entries
    icon: icon-magic
    order: 110

navigation:
    parent: MyEntry
    icon: icon-magic
    order: 10

fields:
    description:
        label: Entry description
        type: textarea
        size: small
1 Like

Oh, you found a bug in the default markup.

Try again in v4.1.17

I updated to 4.1.17. Still no luck. It doesn’t work for me in OC 3.7.4 with the same blueprint example.

I don’t know what am i doing wrong.

  • installed clean OC v4.1.17
  • created new bluperint from example
  • insert component int layout template
  • no records found
public function onStart()
{

    $this->page['entry'] = Tailor\Models\EntryRecord::inSection('MyEntry')
        ->orderBy('created_at', 'desc')
        ->whereNotNull('published_at_date')
        ->get();

}

This code returns inserted records.