Shroomteller
Filament Language Switch not visible outside panels
Well, it turns out this is extremely simple with a direct include of the file as per my first post. With the following configuration, the language menu will show up wherever the component is included on the page:
3 replies
Translatable plugin locale switcher not working
I think the problem is coming from the fact that I'm using a relationship. I've been able to duplicate this problem in a fresh installation with no other plugins. The "meta" relationship works fine without the translatable plugin, but I'm not sure how to use it with the plugin, e.g. in the
$translatable
array, should I put "meta" or meta.title, meta.description, etc.? Also, should I change what trait I'm using in the resource pages because it's a relationship?7 replies
Disable reordering when user not on "all" tab
You have to use a closure to pass the boolean value, like so:
->reorderable('sortable_column', fn (Table $table): bool => $table->getLivewire()->activeTab !== 'all')
I've tested it and this works for me, so all that's required is to customize the logic inside the closure.2 replies