-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pages search is performed only by folder name #3316
Comments
Hi @mahagr, are you sure that issue is fixed? Because if I search by title I have not expected results. |
It works for me, just searched for a title. |
Are you sure that the title is different from folder name? |
I completely forgot to test this. Will try probably after work |
Yeah, they had no common letters in them. |
For me now it searches by Page Title and Menu Title, but does not by folder name nor by slug. Is it supposed to be like this? What are |
Hi, sorry, but for me it does not work and I don't understand why... This is my page frontmatter:
The folder name is |
By any chance you have a multi-language site and search in a wrong language, @masetto? Just guessing |
I removed name (template has it's own filter) and added slug to search fields. Can you try (see the commit) if it now behaves how you expect it to? |
Now it searches exceptionally only by folder. Neither Menu/Page title nor slug works. |
@Karmalakas I cannot reproduce your issue. The search uses both title and slug, I tested that by using a different language. |
I tried on two languages 😕 Will try again later on fresh install 🤔 |
So maybe this issue is multilanguage-related... |
I can confirm that the issue is present with multilanguage, when you select another language than the default one. |
I tried both default and not 🤔 (I'll still try on fresh install) |
No, I removed the fixed tag :) Actually there were two issues:
The first one has been fixed, but the second one has not. |
My bad 🤦♂️ Thanks for the clarification :) |
Hi, |
Hello, I can confirm search is only performed by original folder name. No slug search, no tile search. |
Should now be fixed. Search and filtering in general now matches the displayed items (or current language). The fix will be released early next week. |
Confirmed working by searching both slug or title in 2nd language and not returning result for the main language (English) as expected. Fresh local 1.7.31 install just updated to 1.7.32. Thanks! |
Finally got to it 🙂 Sorry for the delay and keeping issue open. |
Am I assuming correctly, that pages search in Admin should be on these four fields?
I've tried it seems everything (even editing the system ... pages.yaml and completely emptying cache directory and then saving a page), but it searches only by
name
(it's folder I guess). Wanted to help here on Discourse, but it seems there's a bug.Other custom flex-objects I have work perfectly fine with fields defined in this config path.
Did some debugging and here's what I found:
Children pages return
null
properties$property
here istitle
, but$this
PageObject does not contain it and returnsnull
and therefore page does not match the search phrasetipo
Even though I definitely have such page. This Tipo page is a typography folder page
Here's a full view when
PageObject::getNestedProperty()
returnsnull
Beyond that point I can only guess how it's supposed to be, hence the issue :)
The text was updated successfully, but these errors were encountered: