Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

searchForTemplate not working? #68

@alancwoo

Description

@alancwoo

I'm not sure if I am doing something wrong, but I have a page structured so:

Issue 1 (template: issue)
  - Feature 1 (template: feature)
  - Feature 2 (template: feature)
Issue 2 (template: issue)
  - Feature 3 (template: feature)
  ...

I'm trying to collect all the features together in a controller like $site->searchForTemplate('feature') but keep getting an empty collection.

Both the Issue and Feature have autoid's that are visible in their respective .txt files.

$site->index()->filterBy('intendedTemplate', $template); is working.


Kirby 3.5.7.1
kirby3-autoid 2.7.7

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions