FilamentF
Filament3y ago
Finn

One record resource

I am currently creating a website for a customer which should be able to edit content on the website. Now I had the idea to make everything managable through Filament (it will act as a CMS like Wordpress basically) because it's such easy to use and great looking.

My original thought was: I will create a Database table called "home" which just has 1 record in it with columns such as: title, description, contact_button_text, header_image etc. which will be managable through Filament.
Once the home page loads it will get the first record out of the database and send that to the page to load the text and images etc from those variables out of the database.

Now to make it directly available without a "table view" within Filament when clicking on the resource in the menu, my thought was to make a custom navigation item which directly points to: project.test/home-page/1/edit this will edit record 1 because it only will have one record of course.
But sounds kinda hacky to me, which doesn't matter, but maybe someone else achieved making something like this and has better idea's on making site content managable through Filament? I would love to hear that!

I also know Filament's purpose isn't to be a CMS, but I think it would be perfect for this project.
Solution
use a custom page with the form builder on it
Was this page helpful?