infolist not woking?
I am using infolist on a custom page but the model is not loading.
Page
18 Replies
🧐
Anyone around?
I believe this guide is for opening views in separate pages; however, I am attempting to open this in the model.
In demo they display infolist.. check their demo git and you can have an idea, ref https://github.com/filamentphp/demo/blob/main/app/Filament/Resources/Blog/PostResource.php#L196
Nope, this link you shared is for resource however I am using it on custom page
Look this, they display in modal. Resource and custom page should not be much different https://github.com/filamentphp/demo/blob/main/app/Filament/Resources/Blog/CategoryResource.php#L93
I tried almost same thing, but same result.😢
Is there anyone else who can assist me in resolving this issue?
Where should the infolist appear in your example?
See the code and gif above
Can you to explain where you want the infolist to appear? I don't see any infolist in your gif.
I want data to appear in the model like this, and I hope you understand what I mean.
Thanks, I understand now
I see 2 things...
1. the modal doesn't work with your ViewAction
2. the infolist doesn't really belong on the Page class, it will be inside of the action
So, what should i do?
Make the modal work, then add the infolist to the modal
Can you get a ViewModal working with regular form fields?
Maybe I got 2. wrong... let me do a quick test
Ok got it
So you're right, this is a bit different because you're inside of a custom page (and not a resource class)
I think all you need is to move the infolist entries on the ViewAction instead of the page class:
Working now, many thanks for your assistance.