#INFOLIST TO VIEW DOCUMENT

7 messages · Page 1 of 1 (latest)

austere elm
#

I want to view a list of document using infolists, Is it possible? Do I need to create a custom entries or any tricks?

hidden orbitBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

slim wren
#

Have you tried repeatable entry?

austere elm
#

what is the component to click button for view the document?

slim wren
#

are you talking about a view page?

austere elm
#

no, view uploaded view

#

i solved with below tricks

$document_entries = [];
        foreach($documents as $index => $document){
            $document_entries[] = \Filament\Infolists\Components\TextEntry::make("document_{$index}")
                ->label('Document')
                ->state($document->name)
                ->url($document->url)
                ->openUrlInNewTab();
        }