RustyTrombone
RustyTrombone
FFilament
Created by binaryfire on 11/10/2023 in #❓┊help
Conditionally hide individual Builder blocks from the "Add items" list
For anyone else looking, I did something like this in my resource:
$availableBlocks = self::getAvailableBlocks($form->getRecord()->template);
$availableBlocks = self::getAvailableBlocks($form->getRecord()->template);
protected static function getAvailableBlocks(string $template)
{
$blocks = [
'index' => [
// Builder blocks for my index template
],
'about' => [
// Builder blocks for my about template
],
];

return $blocks[$template] ?? [];
}
protected static function getAvailableBlocks(string $template)
{
$blocks = [
'index' => [
// Builder blocks for my index template
],
'about' => [
// Builder blocks for my about template
],
];

return $blocks[$template] ?? [];
}
Then just give that to the Builder
->blocks($availableBlocks)
->blocks($availableBlocks)
5 replies
FFilament
Created by binaryfire on 11/10/2023 in #❓┊help
Conditionally hide individual Builder blocks from the "Add items" list
Digging up an old question, but did you ever figure this out? I'm creating a page builder that has multiple pages, but each page has different Blocks - some blocks cannot be used on some pages.
5 replies
FFilament
Created by RustyTrombone on 1/29/2024 in #❓┊help
Tailwind classes getting ignored in plugin view?
Yeah it did, I didn't see it before sending! That's what I was struggling with, I think.
12 replies
FFilament
Created by RustyTrombone on 1/29/2024 in #❓┊help
Tailwind classes getting ignored in plugin view?
Yeah okay, thanks.
12 replies
FFilament
Created by RustyTrombone on 1/29/2024 in #❓┊help
Tailwind classes getting ignored in plugin view?
Ah
12 replies
FFilament
Created by RustyTrombone on 1/29/2024 in #❓┊help
Tailwind classes getting ignored in plugin view?
So, there's like no plugin that wants to use it's own grid-cols size for some modal? If there was, you'd only be able to use it if you have a custom theme?
12 replies
FFilament
Created by RustyTrombone on 1/29/2024 in #❓┊help
Tailwind classes getting ignored in plugin view?
I see
12 replies
FFilament
Created by RustyTrombone on 1/29/2024 in #❓┊help
Tailwind classes getting ignored in plugin view?
No custom theme, it's just for a plugin where the modal shows a grid of 12 items.
12 replies
FFilament
Created by RustyTrombone on 1/4/2024 in #❓┊help
Is there a way to add ->readOnly() to a Select?
Ah, dehyrdrated(false). My bad
4 replies
FFilament
Created by RustyTrombone on 12/13/2023 in #❓┊help
Is my Form Component possible?
Superstar! Ty
12 replies
FFilament
Created by RustyTrombone on 12/13/2023 in #❓┊help
Is my Form Component possible?
Is there a way to just copy the current repeater component and change the layout?
12 replies
FFilament
Created by RustyTrombone on 12/13/2023 in #❓┊help
Is my Form Component possible?
So - how would I change the design of a repeater? Is that possible?
12 replies
FFilament
Created by RustyTrombone on 12/13/2023 in #❓┊help
Is my Form Component possible?
So you can!
12 replies
FFilament
Created by RustyTrombone on 12/13/2023 in #❓┊help
Is my Form Component possible?
Would you know where I'd begin looking? I'm all for a challenge - I'm just struggling with where to look. How would I add a repeater within a repeater when someone clicks "add H2" for example. Add H2 -> Add repeater -> add H3 -> Add repeater within repeater
12 replies
FFilament
Created by RustyTrombone on 12/12/2023 in #❓┊help
Resource not appearing in Menu
I dunno
39 replies
FFilament
Created by RustyTrombone on 12/12/2023 in #❓┊help
Resource not appearing in Menu
Maybe it's just like "Admin" is reserved?
39 replies
FFilament
Created by RustyTrombone on 12/12/2023 in #❓┊help
Resource not appearing in Menu
And presumably, the navigation there would work too
39 replies
FFilament
Created by RustyTrombone on 12/12/2023 in #❓┊help
Resource not appearing in Menu
You can have multiple panels though? So I could create a new panel called "Dragons" and then my localhost/dragons/login would work
39 replies
FFilament
Created by RustyTrombone on 12/12/2023 in #❓┊help
Resource not appearing in Menu
No description
39 replies
FFilament
Created by RustyTrombone on 12/12/2023 in #❓┊help
Resource not appearing in Menu
Hmmm, I haven't changed anything else - literally just installed it and wanted to add seperate Directories for "Admin" and "Customer" resources
39 replies