F
Filament3w ago
Mike

Custom fields based on page type?

Hi, i have a filament resource called pages. Each page has a type db column, eg home, about, contact or general etc. I want that for pages that are not general to have the ability to declare custom fields for them only. Eg, general pages have the post content text editor among many others but custom pages dont need the post content but custom fields only. I do not have many custom pages, max 5 atm but i would like to have a streamlined setup and not having to conditionally show/hide them in the resource. Is there any plugin or way to do so? I tried fabricator but seems overkill and it conflicts with my current pages. Im using filamentphp v3. Thank you
4 Replies
Dennis Koch
Dennis Koch3w ago
Filament
Custom Fields by Relaticle - Filament
Eliminate custom field migrations forever. Let your users create and manage form fields directly in Filament admin panels with 20+ built-in field types, validation, and zero database changes.
Mike
MikeOP3w ago
@Dennis Koch was just testing it out. It seems their docs have completely removed documentation for filament v3 and i cannot upgrade to v4 atm due to other plugins not having v4 version yet
Mike
MikeOP2w ago
@Dennis Koch thanks, not sure how i missed that. I tried it out but it cannot show fields based on page type, it displays them all. Im resorting to having a key:value custom_fields json column for now. Thank you

Did you find this page helpful?