Custom titles or warning banners in admin dashboard

eg, I want to make something like the screenshot. I tried this, but didnt work https://filamentphp.com/docs/3.x/panels/pages#customizing-the-page-title
No description
6 Replies
awcodes
awcodes4mo ago
Check the plugins on the website. I thinks there’s several options to do this.
trovster
trovster4mo ago
Filament
Plugins - Filament
Community made packages for Filament projects, which give you access to awesome new features.
Marcel
Marcel4mo ago
Try using a render hook (https://filamentphp.com/docs/3.x/support/render-hooks#registering-render-hooks). Make a view called something like 'banner'.
use Filament\Support\Facades\FilamentView;
use Filament\View\PanelsRenderHook;
use Illuminate\Contracts\View\View;

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('banner'),
);
use Filament\Support\Facades\FilamentView;
use Filament\View\PanelsRenderHook;
use Illuminate\Contracts\View\View;

FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('banner'),
);
atabegruslan
atabegruslanOP4mo ago
I actually just need to add additional texts, eg, hints, temporary warnings, or any random text. Does it need to be this complicated (to the extent that we have to use plugins?)
Dennis Koch
Dennis Koch4mo ago
Does it need to be this complicated
For many this is easier. If you don't want to do this, just use a render hook as Marcel proposed.
Want results from more Discord servers?
Add your server