SimonH
SimonH
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
Now i got to learn more about tailwind and asset management in filament to get it sized just right
26 replies
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
working nice and snappy now thanks @_andypeacock
26 replies
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
I thought that ->url(null) would work, but it is not enought to override default behaviour. ->url("#") did however work
26 replies
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
Did you disable the row click for the entire table or did you find a way to disable it just for this column?
26 replies
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
I want to use this on multiple panels so i created a middleware for it, seems to be orking but now on click it shows the modal but then immediatley directs to teh record view page.
26 replies
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
thanks
26 replies
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
Once again @Povilas K with the detailed performance breakdown. Looks like i am running into a known issue with modals on large livewire tables. In this case, the image URL is already available on the frontend so it should not require a roundtrip to the server to render the modal, it could be done with JS on the FE, looks like that is what you ultimately went with @_andypeacock
26 replies
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
thanks, I really appreciate your help
26 replies
FFilament
Created by bionary on 6/26/2024 in #❓┊help
Anybody find a decent solution for table images to a lightbox?
Just came across this as i am also trying to implement a lightbox in tables and infolists, i used the solution that @_andypeacock posted and it worked well on the infolist, but is very slow on tables. Looking at the network tab it seems like it is reloading all images for the entire table, below is my action code, what can i do to only load the clicked on image?
Tables\Columns\ImageColumn::make('artboard_url')
->label('Artboard')
->action(
Action::make('viewThumbnail')
->icon('heroicon-o-photograph')
->modalHeading(fn ($record) => "Artboard: {$record->title}")
->modalContent(fn ($record) => view('filament.modals.lightbox', [ 'imageUrl' => $record->artboard_url ]))
->modalSubmitAction(false)
->modalCancelAction(false)
),
Tables\Columns\ImageColumn::make('artboard_url')
->label('Artboard')
->action(
Action::make('viewThumbnail')
->icon('heroicon-o-photograph')
->modalHeading(fn ($record) => "Artboard: {$record->title}")
->modalContent(fn ($record) => view('filament.modals.lightbox', [ 'imageUrl' => $record->artboard_url ]))
->modalSubmitAction(false)
->modalCancelAction(false)
),
26 replies
FFilament
Created by TegarJK on 9/23/2024 in #❓┊help
is it possible to use single login page to redirect to their own panel based on role?
I wonder if this can be extended so that a user with multiple roles would get directed to a configured 'default' panel, and if we can have a picker that will allow a user to pick from any panel they have access too.
16 replies
FFilament
Created by TegarJK on 9/23/2024 in #❓┊help
is it possible to use single login page to redirect to their own panel based on role?
I was looking for the same functionality and came accross this video https://www.youtube.com/watch?v=9hRgCjDQDGw Goes throught the solution in a bit more detail but at the core it uses @Leandro Ferreira method of creating a CustomLoginResponse class
16 replies
FFilament
Created by hsnww on 9/24/2024 in #❓┊help
Issue with Filament Session on Production after Deploying with Laravel Forge on DigitalOcean
working locally is not a good indicator of a proper setup as by default any authenticated user can access a panel in local https://filamentphp.com/docs/3.x/panels/users#overview Try setting your env on your local machine to somthing like test and see if it still works
6 replies
FFilament
Created by AlokDev on 9/24/2024 in #❓┊help
I am unable to upload images after deploying Filament Admin panel on server
The issue might be related to the signature validation when installing in a sub-folder. You can see this discussed in this issue with a possible solution https://github.com/livewire/livewire/discussions/3084#discussioncomment-8621020
6 replies