Sauravisus
Display all translations
Turns out https://filamentphp.com/plugins/mvenghaus-translatable-inline exists, and is perfect for my usecase.
6 replies
Display all translations
So far I've got this:
And while it does make the fields for each of my locales, for some reason the translation obtained is the one for my applanguage, not the locale we're currently on in the loop. I'm quite confused as to why that'd be the case.
6 replies
how to, livewire form save button to header in filament custom page
Alternatively, the one and only Dan Harrin just shared a solution to putting the submit button into header actions over here: https://discord.com/channels/883083792112300104/1166754657310355456/1166766327072051241
11 replies
TextColumn vanishes when using dot notation
I tried working around this, by making a new column and then loading in the data in another manner, but uh, that resulted in the url part working, but no text being displayed, even if I did
formatStateUsing()
10 replies
Is there a way to add pagination to a repeater component?
That's the weird part. This is on my table in the relation manager:
But they don't show up in the table at all. I do have policies on my resources and whatnot, but I'm on a user with a role that gives access to everything
9 replies
Is there a way to add pagination to a repeater component?
Yeah that makes sense. I've replaced my repeater (and the insanity of the toggle switch) with a Relations Manager.
Now I've got a follow-up question: How the heck do I add a delete button to the modal that pops up? For some reason my only option for deleting is via bulk actions. I've got no delete button in the table itself, or in the modal that shows up when clicking an entry.
9 replies
Toggling editability on fields in a repeater
So, for others trying to do insanity like me: Remember that inside repeaters you gotta use
../../
if you wanna use $get
- This is covered in the documentation here: https://filamentphp.com/docs/3.x/forms/fields/repeater#using-get-to-access-parent-field-values20 replies
Toggling editability on fields in a repeater
So I tried with the toggle again, without
->live()
, and now it does seem to toggle when using ->disabled(fn (Get $get) => $get('unlock_fields') !== true)
and ->hidden(fn (Get $get) => $get('unlock_fields') !== true)
- but the checkbox isn't actually being shown, just the container for it.
Using ->live()
briefly unlocks the textarea and shows the container for the checkbox, but half a second later it's like it was toggled back to the original state.20 replies