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

searchForTemplate not working? #68

Open
alancwoo opened this issue Oct 11, 2021 · 3 comments
Open

searchForTemplate not working? #68

alancwoo opened this issue Oct 11, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@alancwoo
Copy link

alancwoo commented Oct 11, 2021

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

@bnomei bnomei moved this from To do to In progress in Open Source - Kirby 3 Projects Oct 16, 2021
@bnomei bnomei self-assigned this Oct 16, 2021
@bnomei bnomei added the bug Something isn't working label Oct 16, 2021
@bnomei
Copy link
Owner

bnomei commented Oct 16, 2021

autoid should store the intendedtemplate as well so i would have expected that to work.

'template' => (string) $object->intendedTemplate(),

i will take a look asap.

bnomei added a commit that referenced this issue Oct 16, 2021
@bnomei
Copy link
Owner

bnomei commented Oct 16, 2021

i took a look at the tests and did a manual check. seems to be working. maybe i am missing something. can you send me the sqlite file?
mail to b@bnomei.com

@bnomei bnomei closed this as completed Oct 16, 2021
Open Source - Kirby 3 Projects automation moved this from In progress to Done Oct 16, 2021
@bnomei bnomei reopened this Oct 16, 2021
Open Source - Kirby 3 Projects automation moved this from Done to In progress Oct 16, 2021
@bnomei
Copy link
Owner

bnomei commented Oct 23, 2021

sorry still can not replicate this issue. i could take a better look if you PM me your SQLite file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

2 participants