Records from resources not showing #14

Closed
opened 2022-11-03 14:44:18 +00:00 by EmilioBravo · 7 comments
EmilioBravo commented 2022-11-03 14:44:18 +00:00 (Migrated from github.com)

When I search for a record for it's title it doesn't show up in the spotlight results

When I search for a record for it's title it doesn't show up in the spotlight results
pxlrbt commented 2022-11-03 15:25:36 +00:00 (Migrated from github.com)

Did you select the Edit/View entry first before searching? The navigation is nested.

Did you select the Edit/View entry first before searching? The navigation is nested.
studiowizjo commented 2022-11-11 09:26:28 +00:00 (Migrated from github.com)

I got the same. At first I select "Website - Edit" and then records on list shows only when I type letters containing "website":

Zrzut ekranu 2022-11-11 10

If I translate it in my WebsiteResource:

protected static ?string $label = 'strona';

then it searchs in my translated word: "strona" and presents it in search results.

I don`t see anything special in my resource, which could be related.

Thought it might make a difference to not use Model::unguard(); and list attributes in $fillable in model, but that didn't help either.

I got the same. At first I select "Website - Edit" and then records on list shows only when I type letters containing "website": ![Zrzut ekranu 2022-11-11 10](https://user-images.githubusercontent.com/3818874/201307505-4fda057f-ce1a-4e8d-b7be-1c0aff48780f.jpg) If I translate it in my **WebsiteResource**: ```php protected static ?string $label = 'strona'; ``` then it searchs in my translated word: "strona" and presents it in search results. I don`t see anything special in my resource, which could be related. Thought it might make a difference to not use `Model::unguard();` and list attributes in `$fillable` in model, but that didn't help either.
pxlrbt commented 2022-11-11 10:39:10 +00:00 (Migrated from github.com)

Thanks @studiowizjo. I just checked it and confirm that this is a bug. I think it used to work, so maybe there was a change in Filament that broke this. I will look into this.

Thanks @studiowizjo. I just checked it and confirm that this is a bug. I think it used to work, so maybe there was a change in Filament that broke this. I will look into this.
michabbb commented 2023-01-30 05:22:22 +00:00 (Migrated from github.com)

i would be happy as will, if you could fix that 😏

i would be happy as will, if you could fix that 😏
pxlrbt commented 2023-01-30 06:13:58 +00:00 (Migrated from github.com)

@michabbb Are you on the latest version? I think this should have been fixed with v0.3.6. I just tested with the Filament Demo and it works.

@michabbb Are you on the latest version? I think this should have been fixed with v0.3.6. I just tested with the Filament Demo and it works.
michabbb commented 2023-01-30 06:16:32 +00:00 (Migrated from github.com)

@pxlrbt pardon, a few minutes ago i found out that i had to set $recordTitleAttribute in my resource to get any findings 😏

@pxlrbt pardon, a few minutes ago i found out that i had to set `$recordTitleAttribute` in my resource to get any findings 😏
pxlrbt commented 2023-01-30 06:23:20 +00:00 (Migrated from github.com)

I updated the readme to explain this.

I updated the readme to explain this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pxlrbt/filament-spotlight#14
No description provided.